A step-by-step walkthrough of every section in the tool: what each field means, which AWS permissions to pick, how the PCI DSS controls map to what gets generated, and exactly what to do with the exported files.
When you build an AI payment system, every automated agent — whether it processes refunds, reconciles settlements, or triages fraud — needs a clearly attributable workload identity in AWS. A dedicated IAM role is usually the strongest isolation boundary, although the exact role design depends on the runtime and orchestration architecture.
PCI DSS v4.0.1 Requirement 8 covers identification and authentication, and Requirement 8.6 addresses application and system accounts. Those controls may apply to AWS identities used by automated agents when they are in scope. PCI DSS does not define a separate AI-agent account category, so applicability depends on the implementation and environment.
This tool generates editable IAM policy JSON and Terraform HCL to support implementation and documentation. The output must be reviewed, adapted, deployed, tested, and supported by evidence; it does not by itself satisfy PCI DSS or establish compliance.
pci-scope = in-scope tag as an internal scoping aid. The tag does not determine PCI DSS scope.waitForTaskToken callback pattern. Your approval service must still authenticate the reviewer, authorise the decision and protect the task token.GetItem and Query are read-only. PutItem and UpdateItem are write operations. Only add DeleteItem if your agent genuinely needs to hard-delete records.kms:Decrypt if your agent reads encrypted payment data. Select kms:GenerateDataKey if it encrypts data before storing.bedrock:InvokeModel is only needed if your agent calls an AWS Bedrock LLM directly (e.g. for fraud analysis). If Bedrock is invoked by a separate orchestration layer, don't include it here.secretsmanager:GetSecretValue is needed if your agent retrieves API keys or database passwords at runtime. The Terraform output creates the secret and rotation schedule for you.ACCOUNT_ID placeholder with your real 12-digit AWS account ID. Review every wildcard resource, including any remaining Resource: "*", and replace broad payments-* patterns with the exact resources the workload needs.terraform fmt and terraform validate, review terraform plan, test in a non-production account, and only then consider applying it.Each preset is designed around a specific payment system responsibility. Use these as starting points and adapt the AWS actions to match your exact architecture.