Autofix: CCA Rule Automations (AWS)
Autofix is also included in the CCA to automate some rules. When activating Autofix in the indicated services, it is the same as automating what would previously have been done manually. It evaluates the rule and its trigger in all accounts and if it finds the rule's "error", the trigger will then be activated. It all depends on which service is activating it.

If the "" tool is selected in the “Accounts with Autofix” option, it will show the list of accounts from the provider. Then there will be a button to activate, as soon as it is activated, Autofix will perform the action automatically.


The rules that cover Autofix within the CCA are:
S3 Bucket without Intelligent Tiering: List all S3 buckets that do not have Intelligent-Tiering configured. Enabling Autofix will transform all listed buckets and put them into Intelligent Tiering.
RDS without data connections: When enabling Autofix, it will remove all RDS that are without connection, but first it will make a snapshot
EBS Snapshots available longer than the specified period: Autofix will remove these snapshots.
S3 Multipart with Incomplete Upload: Autofix will abort all open incomplete S3 multiparts.
Auto Scaling Group without Tags: Autofix will add the Pier:ASG:Name tag to the listed resources.
CDN Distribution without compression enabled: Removes the CDN that does not have compression enabled.
Detached EBS: Autofix will delete the detached EBS, but a snapshot of the action is performed first.
Migration from EBS GP2 to GP3: Autofix will migrate all GP2 Volumes pointed to GP3.
Stopped EC2 instances: Autofix will remove all EC2 instances that have been stopped for more than 15 days, but before removal an AMI is performed.
Detached Elastic IP: Autofix removes detached EIP.
Unused ELB: Autofix will remove ELBs that do not have instances, target groups or Listeners configured.
ELB without requests: Autofix removes ELBs that have not received requests for more than 15 days.
RDS GP2 to GP3 migration: Autofix performs the GP2 to GP3 migration
RDS non-Graviton: Autofix migrates an RDS instance to Graviton, but a snapshot is taken before the migration.
RDS Snapshot: Autofix exports the Instance Snapshot to S3 and deletes the Snapshot.
Inactive VPC Endpoint: Autofix removes inactive VPC Endpoints.
Last updated