From e2558c2c18bd68b0c95943a197ea1dbc1f7cdf45 Mon Sep 17 00:00:00 2001 From: vggonzal <9Tcostoamm> Date: Wed, 9 Aug 2023 13:08:04 -0700 Subject: [PATCH] implementing the lambda function --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 485e306..a3525ef 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -240,10 +240,10 @@ jobs: echo ${{ env.THE_VERSION }} source bin/config.sh ${{ env.THE_ENV }} # aws iam delete-policy --policy-arn arn:aws:iam::206226843404:policy/service-hydrocron-api-sit-service-policy - aws iam delete-role --role-name service-hydrocron-api-sit-service-role - aws iam delete-role --role-name hydrocron-service-role aws iam list-instance-profiles | grep service-hydrocron-api-sit-instance-profile aws iam delete-instance-profile --instance-profile-name service-hydrocron-api-sit-instance-profile + aws iam delete-role --role-name service-hydrocron-api-sit-service-role + aws iam delete-role --role-name hydrocron-service-role terraform init -reconfigure -backend-config="bucket=podaac-services-${{ env.THE_ENV }}-terraform" -backend-config="region=us-west-2" terraform plan -var-file=tfvars/${{ env.THE_ENV }}.tfvars -var="app_version=${{ env.THE_VERSION }}" -out="tfplan" terraform apply -auto-approve tfplan