From 087fdeec4d89bf5f5ccde45ccae1d3bcae9260f5 Mon Sep 17 00:00:00 2001 From: Mark Ridgwell Date: Fri, 4 Oct 2024 20:44:39 +0100 Subject: [PATCH] Adding tags --- .github/actions/cloudformation-deploy/action.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/actions/cloudformation-deploy/action.yml b/.github/actions/cloudformation-deploy/action.yml index 244b1865..0971f341 100644 --- a/.github/actions/cloudformation-deploy/action.yml +++ b/.github/actions/cloudformation-deploy/action.yml @@ -116,6 +116,8 @@ runs: --template-file "${{inputs.CLOUD_FORMATION_TEMPLATE_FILE}}" \ --stack-name "${{inputs.CLOUD_FORMATION_STACK}}" \ --parameter-overrides file://TemplateParameters.json \ + --tags "App=${{inputs.CLOUD_FORMATION_STACK}}" \ + "Version=${{inputs.BUILD_VERSION}}" \ --notification-arns "${{inputs.CLOUDFORMATION_SNS_ARN}}" - if: inputs.CLOUDFORMATION_SNS_ARN == '' @@ -126,7 +128,9 @@ runs: cloudformation deploy \ --template-file "${{inputs.CLOUD_FORMATION_TEMPLATE_FILE}}" \ --stack-name "${{inputs.CLOUD_FORMATION_STACK}}" \ - --parameter-overrides file://TemplateParameters.json + --parameter-overrides file://TemplateParameters.json \ + --tags "App=${{inputs.CLOUD_FORMATION_STACK}}" \ + "Version=${{inputs.BUILD_VERSION}}" - name: "AWS Enable Stack termination protection" shell: bash