Skip to content

fix: Eliminate perpetual Terraform drift in 4 AWS resources#59

Merged
sam-at-luther merged 1 commit into
mainfrom
fix/eliminate-terraform-drift-58
Feb 26, 2026
Merged

fix: Eliminate perpetual Terraform drift in 4 AWS resources#59
sam-at-luther merged 1 commit into
mainfrom
fix/eliminate-terraform-drift-58

Conversation

@sam-at-luther

Copy link
Copy Markdown
Member

Summary

  • Add luthername tags to admin IAM role and Route53 zone in aws-platform-ui-bootstrap (previously untagged, causing tags = {} drift)
  • Add lifecycle { ignore_changes = [managed_policy_arns] } on admin role to prevent drift from console-attached policies
  • Add lifecycle { ignore_changes = [server_side_encryption_configuration, versioning] } on S3 bucket to suppress deprecated inline attribute drift
  • Set bucket_key_enabled = false on S3 encryption config to match AWS default and prevent drift

Closes #58

Test plan

  • terraform fmt -check -recursive passes
  • terraform validate passes in both aws-platform-ui-bootstrap/ and aws-s3-bucket/
  • terraform plan on clean cloud-provision stage shows zero drift on these 4 resources
  • New luthername tags appear on admin role and Route53 zone after apply

🤖 Generated with Claude Code

Add luthername tags to admin IAM role and Route53 zone (previously
untagged), add lifecycle ignore for managed_policy_arns on the admin
role, add lifecycle ignore for deprecated inline S3 bucket attributes,
and set bucket_key_enabled = false on S3 encryption config to match
AWS defaults.

Closes #58

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sam-at-luther sam-at-luther merged commit a61f39a into main Feb 26, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: eliminate perpetual Terraform drift in 4 AWS resources (IAM tags, S3 lifecycle)

1 participant