AWS::ComputeOptimizer::AutomationRuleCreates an AWS Compute Optimizer automation rule that automatically implements recommended actions based on your defined criteria and schedule. Automation rules are global resources that manage automated actions across all AWS Regions where Compute Optimizer Automation is available. Organization-level rules can only be created by the management account or delegated administrator.
10 configurable properties. 5 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
Name | string | Required |
RecommendedActionTypes | Array<string> | Required |
RuleType | string | Required |
Schedule | Schedule | Required |
Status | string | Required |
Criteria | Criteria | |
Description | string | |
OrganizationConfiguration | OrganizationConfiguration | |
Priority | string | |
Tags | Array<Tag> |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
AccountId | string | The AWS account ID that owns the automation rule. |
CreatedTimestamp | string | The timestamp when the automation rule was created. |
LastUpdatedTimestamp | string | The timestamp when the automation rule was last updated. |
RuleArn | string | The Amazon Resource Name (ARN) of the automation rule. |
RuleId | string | The unique identifier of the automation rule. |
RuleRevision | string | The revision number of the automation rule. |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::ComputeOptimizer::AutomationRule
Resources:
MyResource:
Type: AWS::ComputeOptimizer::AutomationRule
Properties:
Name: "my-name"
RuleType: "AccountRule"
RecommendedActionTypes: []
Schedule: "value"
Status: "Active"
Tags:
- Key: Environment
Value: Production
Description: !Ref "AWS::StackName"Permissions CloudFormation needs in your IAM role to manage this resource.
aco-automation:CreateAutomationRuleaco-automation:GetAutomationRuleaco-automation:TagResourceaco-automation:GetAutomationRuleaco-automation:UpdateAutomationRuleaco-automation:GetAutomationRuleaco-automation:TagResourceaco-automation:UntagResourceaco-automation:DeleteAutomationRuleaco-automation:GetAutomationRuleaco-automation:ListAutomationRulesOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterRuleArn