A SysOps administrator wants to configure automated cost controls for an AWS account used for experimental testing. The administrator needs to prevent developers from launching any new resources as soon as the forecasted monthly spend for the account exceeds $1500. The administrator decides to use AWS Budgets Actions to attach a restrictive IAM policy to the developers' IAM group. Which set of actions is required to successfully implement this configuration?
- Create a budget in AWS Budgets with a forecasted spend threshold of $1500. Create an IAM role with a trust policy allowing budgets.amazonaws.com to assume the role, and grant the role permissions to attach IAM policies. Grant the administrator's IAM identity iam:PassRole permissions for the role, and configure the budget action using this role to apply the restrictive IAM policy to the developers' group.Answer
- BCreate a budget in AWS Budgets with a forecasted spend threshold of $1500. Create an IAM role with a trust policy allowing budgets.amazonaws.com to assume the role. Attach an IAM policy to the role that grants it iam:PassRole permissions on itself, and configure the budget action to apply the restrictive IAM policy to the developers' group.
- CCreate an AWS Cost Anomaly Detection monitor with a threshold of $1500. Configure an anomaly action that uses an IAM role with permissions to attach the restrictive IAM policy to the developers' group when forecasted costs exceed the limit.
- DCreate an Amazon CloudWatch billing alarm for forecasted charges exceeding $1500. Configure the alarm to send a notification to an Amazon SNS topic, and subscribe the developers' IAM group to the SNS topic to automatically apply the policy.
Answer
Create a budget in AWS Budgets with a forecasted spend threshold of $1500. Create an IAM role with a trust policy allowing budgets.amazonaws.com to assume the role, and grant the role permissions to attach IAM policies. Grant the administrator's IAM identity iam:PassRole permissions for the role, and configure the budget action using this role to apply the restrictive IAM policy to the developers' group.
The correct configuration uses AWS Budgets Actions to natively attach an IAM policy to the developers' group. This requires an execution role trusted by budgets.amazonaws.com with permissions to manage IAM policies. Crucially, the administrator setting up the budget action must possess the iam:PassRole permission on the execution role, ensuring secure delegation of authority.
Step-by-Step Solution
Key Concept
Configuring AWS Budgets Actions with the appropriate IAM trust policies and PassRole permissions.