AWS Fundamentals Logo
AWS Fundamentals
AWS::ComputeOptimizer::AutomationRule

ComputeOptimizer AutomationRule

Creates 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.

Properties

10 configurable properties. 5 required. Click a row to see details.

Filter:
PropertyTypeFlags
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>

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
AccountIdstringThe AWS account ID that owns the automation rule.
CreatedTimestampstringThe timestamp when the automation rule was created.
LastUpdatedTimestampstringThe timestamp when the automation rule was last updated.
RuleArnstringThe Amazon Resource Name (ARN) of the automation rule.
RuleIdstringThe unique identifier of the automation rule.
RuleRevisionstringThe revision number of the automation rule.

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
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"

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

aco-automation:CreateAutomationRuleaco-automation:GetAutomationRuleaco-automation:TagResource

read

aco-automation:GetAutomationRule

update

aco-automation:UpdateAutomationRuleaco-automation:GetAutomationRuleaco-automation:TagResourceaco-automation:UntagResource

delete

aco-automation:DeleteAutomationRuleaco-automation:GetAutomationRule

list

aco-automation:ListAutomationRules

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

ServiceComputeOptimizer
Properties16
Required5
TaggingSupported
Primary IDRuleArn

Supported Operations

CreateReadUpdateDeleteList

External Links