From e6ac8fed3a31a7d2507a306968ae2a8d266d77b4 Mon Sep 17 00:00:00 2001 From: vggonzal <9Tcostoamm> Date: Mon, 7 Aug 2023 20:24:40 -0700 Subject: [PATCH] implementing the lambda function --- .github/workflows/build.yml | 4 ++-- terraform/hydrocron-lambda-iam.tf | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 557199b..8f6b42d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -239,8 +239,8 @@ jobs: echo ${{ env.THE_ENV }} echo ${{ env.THE_VERSION }} source bin/config.sh ${{ env.THE_ENV }} - aws iam delete-role --role-name service-hydrocron-api-sit-service-role - aws iam delete-role --role-name hydrocron-codebuild + #aws iam delete-role --role-name service-hydrocron-api-sit-service-role + #aws iam delete-role --role-name hydrocron-codebuild 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 diff --git a/terraform/hydrocron-lambda-iam.tf b/terraform/hydrocron-lambda-iam.tf index d3b5012..a05c30c 100644 --- a/terraform/hydrocron-lambda-iam.tf +++ b/terraform/hydrocron-lambda-iam.tf @@ -1,4 +1,4 @@ -#IAM roles +#IAM roles resource "aws_iam_role" "hydrocron-service-role" { name = "${local.ec2_resources_name}-service-role"