Free plan Signups are open now. The full audytx engine — Terraform and CloudFormation — is live. The Free plan is 100 scans a month and stays free — paid tiers arrive Nov 01, 2026 from $20/month for unlimited repositories. Try it on your own code.

Hardcoded AWS account ID in resource argument

AWS_OPS_070 LOW Reliability

What it checks

Hardcoded AWS account ID in resource argument

Where it applies

Terraform: aws_iam_role, aws_iam_policy, aws_lambda_function, aws_iam_role_policy

CloudFormation: AWS::IAM::Role, AWS::IAM::ManagedPolicy, AWS::Lambda::Function

How to fix it

  1. Replace with `data.aws_caller_identity.current.account_id` or pass via variable. Use string interpolation in the policy doc.

Frameworks

These mappings are advisory, not an attestation of compliance.

Vendor documentation

All rules