Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

Commit

Permalink
implementing the lambda function
Browse files Browse the repository at this point in the history
  • Loading branch information
vggonzal authored and vggonzal committed Aug 8, 2023
1 parent 88d410c commit b00969f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ jobs:
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
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
7 changes: 6 additions & 1 deletion terraform/hydrocron-lambda-iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ resource "aws_iam_role" "hydrocron-service-role" {
"Version": "2012-10-17",
"Statement": [
{
"Action": "sts:AssumeRole",
"Action": [
"sts:AssumeRole",
"ec2:CreateNetworkInterface",
"ec2:DescribeNetworkInterfaces",
"ec2:DeleteNetworkInterface"
],
"Principal": {
"Service": "lambda.amazonaws.com"
},
Expand Down

0 comments on commit b00969f

Please sign in to comment.