Interview Prep/SRE & Reliability/Chaos Mesh, Litmus & AWS FIS

FIS fails with `is not authorized to perform: ec2:TerminateInstances on resource: arn:aws:ec2:ap-south-1:123456789012:instance/i-0abc...`.

BeginnerTroubleshootingChaos Mesh, Litmus & AWS FIS
Answer

Likely causes → The IAM role in the experiment template lacks permissions for the action, or an SCP or permission boundary denies it.

Diagnose →

aws fis get-experiment-template --id EXT123 --query 'experimentTemplate.roleArn'
aws iam simulate-principal-policy --policy-source-arn <role-arn> \
  --action-names ec2:TerminateInstances

Fix → Attach the AWS managed policy for the relevant FIS action category (for example the EC2 access policy for FIS) or a scoped custom policy, conditioned on the chaos tag.

Prevent → Keep FIS roles in IaC with least privilege scoped by tags, and test templates in a sandbox account.

All SRE & Reliability questions Roadmap: SRE & incident response

More on Chaos Mesh, Litmus & AWS FIS