From 7da45e8dba0ddb4cc80dc311ac2c0f309da4c9ca Mon Sep 17 00:00:00 2001 From: Ben Larabie Date: Thu, 14 Nov 2024 15:21:24 -0500 Subject: [PATCH 1/2] enable create lambda in dev [review] --- .../terragrunt_create_dev_environment.yml | 54 +++++++++---------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/.github/workflows/terragrunt_create_dev_environment.yml b/.github/workflows/terragrunt_create_dev_environment.yml index b6918da1c..3b4d10e8d 100644 --- a/.github/workflows/terragrunt_create_dev_environment.yml +++ b/.github/workflows/terragrunt_create_dev_environment.yml @@ -401,35 +401,35 @@ jobs: terragrunt apply --terragrunt-non-interactive -auto-approve # terragrunt-apply-lambda-api: - # if: | - # always() && - # !contains(needs.*.result, 'failure') && - # !contains(needs.*.result, 'cancelled') - # runs-on: ubuntu-latest - # needs: [terragrunt-apply-common,terragrunt-apply-eks,terragrunt-apply-ecr,terragrunt-apply-rds] + if: | + always() && + !contains(needs.*.result, 'failure') && + !contains(needs.*.result, 'cancelled') + runs-on: ubuntu-latest + needs: [terragrunt-apply-common,terragrunt-apply-eks,terragrunt-apply-ecr,terragrunt-apply-rds] - # steps: - # - name: Checkout - # uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 - - # - name: setup-terraform - # uses: ./.github/actions/setup-terraform - # with: - # role_to_assume: arn:aws:iam::${{env.ACCOUNT_ID}}:role/notification-terraform-apply - # role_session_name: NotifyTerraformApply + steps: + - name: Checkout + uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 + + - name: setup-terraform + uses: ./.github/actions/setup-terraform + with: + role_to_assume: arn:aws:iam::${{env.ACCOUNT_ID}}:role/notification-terraform-apply + role_session_name: NotifyTerraformApply - # - name: Install 1Pass CLI - # run: | - # curl -o 1pass.deb https://downloads.1password.com/linux/debian/amd64/stable/1password-cli-amd64-latest.deb - # sudo dpkg -i 1pass.deb - # sudo mkdir -p aws - # cd aws - # op read op://4eyyuwddp6w4vxlabrr2i2duxm/"TERRAFORM_SECRETS_${{env.ENVIRONMENT}}"/notesPlain > ${{env.ENVIRONMENT}}.tfvars - - # - name: terragrunt apply lambda-api - # run: | - # cd env/${{env.ENVIRONMENT}}/lambda-api - # terragrunt apply --terragrunt-non-interactive -auto-approve + - name: Install 1Pass CLI + run: | + curl -o 1pass.deb https://downloads.1password.com/linux/debian/amd64/stable/1password-cli-amd64-latest.deb + sudo dpkg -i 1pass.deb + sudo mkdir -p aws + cd aws + op read op://4eyyuwddp6w4vxlabrr2i2duxm/"TERRAFORM_SECRETS_${{env.ENVIRONMENT}}"/notesPlain > ${{env.ENVIRONMENT}}.tfvars + + - name: terragrunt apply lambda-api + run: | + cd env/${{env.ENVIRONMENT}}/lambda-api + terragrunt apply --terragrunt-non-interactive -auto-approve terragrunt-apply-lambda-admin-pr: if: | From a093d1ba9529a59bd636e61df09ef9c65860a57f Mon Sep 17 00:00:00 2001 From: Ben Larabie Date: Thu, 14 Nov 2024 15:25:43 -0500 Subject: [PATCH 2/2] syntax [review] --- .github/workflows/terragrunt_create_dev_environment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/terragrunt_create_dev_environment.yml b/.github/workflows/terragrunt_create_dev_environment.yml index 3b4d10e8d..dbf23c2b7 100644 --- a/.github/workflows/terragrunt_create_dev_environment.yml +++ b/.github/workflows/terragrunt_create_dev_environment.yml @@ -400,7 +400,7 @@ jobs: cd env/${{env.ENVIRONMENT}}/rds terragrunt apply --terragrunt-non-interactive -auto-approve - # terragrunt-apply-lambda-api: + terragrunt-apply-lambda-api: if: | always() && !contains(needs.*.result, 'failure') &&