More Info:

Amazon CloudFormation should be used within your AWS account to automate your cloud infrastructure management and deployment.

Risk Level

Informational

Address

Operational Maturity

Compliance Standards

CBP

Triage and Remediation

Remediation

If the misconfiguration is related to not using CloudFormation (or Infrastructure as Code) in AWS, then the following steps can be taken to remediate it:

Step 1: Create a CloudFormation stack

  • Go to the AWS Management Console and navigate to CloudFormation service.
  • Click on the “Create Stack” button.
  • Choose a template source (either a sample template or a template from S3 bucket).
  • Provide required parameters and click “Next”.
  • Provide a stack name and click “Create Stack”.

Step 2: Update the stack as per requirements

  • Once the stack is created, navigate to the stack and click on “Update Stack”.
  • Choose a template source (either a sample template or a template from S3 bucket).
  • Update the template as per requirements.
  • Provide required parameters and click “Next”.
  • Review the changes and click “Update Stack”.

Step 3: Delete any manually created resources

  • Identify any resources that were created manually and not through CloudFormation.
  • Delete those resources manually.

Step 4: Monitor for compliance

  • Use AWS Config or any other monitoring tool to ensure that all resources are created through CloudFormation and are compliant with the required standards.

By following these steps, the misconfiguration related to not using CloudFormation (or IaC) can be remediated in AWS.

Additional Reading: