chore(e2e): Always destroy iam user (#6477)

* chore(e2e): Always destroy iam user

* chore(e2e): Update service user terraform
This commit is contained in:
Michael Li authored and GitHub committed 2026-03-12 16:29:11 -04:00
1 parent eeee51dca5
commit 3f1dd3ab2a
3 files changed
+9 -4

No files matched your search

+1 -3
View File
@@ -21,9 +21,7 @@ resource "aws_iam_user" "boundary" {
name = "demo-${local.user_email}-${var.test_id}"
tags = { boundary-demo = local.user_email }
permissions_boundary = "arn:aws:iam::${data.aws_caller_identity.current.account_id}:policy/DemoUser"
# If credential rotation is used, this is necessary to delete the user since a new access
# key will be generated.
force_destroy = var.enable_credential_rotation ? true : false
force_destroy = true
}
resource "aws_iam_user_policy" "boundary" {