
Cloud
Learning Level
AWS provides tools to monitor, analyze, and optimize cloud spending.
By the end of this lesson, you'll understand:
# Get cost and usage
aws ce get-cost-and-usage \
--time-period Start=2024-01-01,End=2024-01-31 \
--granularity DAILY \
--metrics "UnblendedCost" \
--group-by Type=DIMENSION,Key=SERVICE# Get RI recommendations
aws ec2 describe-reserved-instances-offerings \
--instance-type t3.micro \
--offering-type "All Upfront"
# Purchase RI
aws ec2 purchase-reserved-instances-offering \
--reserved-instances-offering-id xxxxx \
--instance-count 1# Request Spot Instance
aws ec2 request-spot-instances \
--spot-price "0.03" \
--instance-count 1 \
--type "one-time" \
--launch-specification file://launch-spec.json# Tag resource
aws ec2 create-tags \
--resources i-1234567890abcdef0 \
--tags Key=Environment,Value=production Key=Project,Value=myapp
# Get costs by tag
aws ce get-cost-and-usage \
--group-by Type=TAG,Key=Project# Create budget
aws budgets create-budget \
--account-id ACCOUNT \
--budget file://budget.json \
--notifications-with-subscribers file://notifications.jsonImplement comprehensive cost optimization strategy, or explore advanced AWS services.
Resources
Ojasa Mirai
Master AI-powered development skills through structured learning, real projects, and verified credentials. Whether you're upskilling your team or launching your career, we deliver the skills companies actually need.
Learn Deep • Build Real • Verify Skills • Launch Forward