How do you stop engineers from applying from their laptops?
AdvancedProductionCI/CD and Automation
Answer
Remove the permission, not just the habit. Humans get read-only roles in prod; only the CI role can assume the apply role, restricted by OIDC sub claim to the protected branch. Backend IAM denies state writes to everyone else. Document a break-glass role with MFA, session recording and alerts.
More on CI/CD and Automation
Why run Terraform from a pipeline instead of laptops?BeginnerWhat stages does a good Terraform pull-request pipeline have?BeginnerHow do you make sure the apply runs exactly what was reviewed?IntermediateHow do you serialize applies to the same stack in CI?AdvancedShow a minimal GitHub Actions workflow for plan on PR.BeginnerHow does OIDC authentication from GitHub Actions to AWS work?Intermediate