AWS Budgets

Hands-On

Demo

Agenda

​In this Demo, we will

  1. Create a Monthly Cost Budget.
  2. Create a Zero Spend Budget.
  3. Launch an EC2 Instance for EC2 Hours Budget.
  4. Create a Permissions Policy for Systems Manager Automation.
  5. Create an IAM Role and attach the Permissions Policy.
  6. Create a 3rd Budget of type Usage Budget.
  7. Clean up all the resources created.

Demo Overview

Monthly-Cost-Budget-1
10.00
learnpde@gmail.com

Create 2nd Budget

My Zero-Spend Budget
learnpde@gmail.com

Launch EC2 Instance

EC2-Hours-Budget-Demo
EC2-SSM-Manager-Role

Create Role for AWS Budgets to execute Automation

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "ec2:StopInstances",
                "ec2:DescribeInstances",
                "ssm:StartAutomationExecution",
                "ssm:GetAutomationExecution",
                "ssm:StopAutomationExecution"
            ],
            "Resource": "*"
        }
    ]
}
Sytems-Manager-Inline-Policy
Sytems-Manager-Inline-Policy
BudgetActions-Role

Create 3rd Budget 

EC2-Hours-Budget
1
learnpde@gmail.com

Clean Up

Delete Budgets

Terminate EC2 Instance

Delete Inline Policy

Delete Role

🙏

Thanks

for

Watching