From 6323922f5642b6e3052a944f977a151b37d42168 Mon Sep 17 00:00:00 2001 From: tony griffin <54268925+tony-griffin@users.noreply.github.com> Date: Tue, 21 Jan 2025 15:28:40 +0000 Subject: [PATCH] Update codebase-pipelines/tests/unit.tftest.hcl Co-authored-by: John Stainsby --- codebase-pipelines/tests/unit.tftest.hcl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/codebase-pipelines/tests/unit.tftest.hcl b/codebase-pipelines/tests/unit.tftest.hcl index d43ea13d..6716fcce 100644 --- a/codebase-pipelines/tests/unit.tftest.hcl +++ b/codebase-pipelines/tests/unit.tftest.hcl @@ -778,6 +778,10 @@ run "test_iam_documents" { error_message = "Unexpected actions" } } + assert { + condition = one(data.aws_iam_policy_document.deploy_ssm_access.statement[0].resources) == "arn:aws:ssm:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}:parameter/codebuild/slack_*" + error_message = "Unexpected resources" + } run "test_codebuild_deploy" { command = plan