From aa43d021f637cf383f682d973ff983076a0e50dc Mon Sep 17 00:00:00 2001 From: Michael Li Date: Wed, 11 Mar 2026 22:40:54 -0400 Subject: [PATCH] chore(e2e): Always destroy iam user --- enos/modules/aws_iam_setup/main.tf | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/enos/modules/aws_iam_setup/main.tf b/enos/modules/aws_iam_setup/main.tf index e1fd5862f8..792b8cf966 100644 --- a/enos/modules/aws_iam_setup/main.tf +++ b/enos/modules/aws_iam_setup/main.tf @@ -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" {