Ensure valid account number format is used in AWS IAM Policy

LOW

Description

The resource ARN account ID is not valid. Incorrect ARNs may cause issues in DevOps processes.

Remediation

IAM Policies need to be changed. In AWS Console -

  1. Sign in to the AWS console and go to the IAM console.
  2. In the Navigation pane, select Policies.
  3. In the list of policies, select the policy to edit.
  4. Select the Permissions tab, and then choose Edit policy.
  5. On the review page, review the changes and click Save. In Terraform - Review the policy attached to the resource and ensure necessary changes are made.

Policy Details

Rule Reference ID: AC_AWS_0030
CSP: AWS
Remediation Available: No
Resource: aws_iam_policy
Resource Type: Policy