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 9, 2023
1 parent 9c2ff08 commit ac29849
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -246,15 +246,15 @@ jobs:
#aws iam list-instance-profiles-for-role --role-name service-hydrocron-api-sit-service-role
# aws iam delete-policy-version --policy-arn arn:aws:iam::206226843404:policy/service-hydrocron-api-sit-service-policy --version-id v1
aws iam remove-role-from-instance-profile --instance-profile-name service-hydrocron-api-sit-instance-profile --role-name service-hydrocron-api-sit-service-role
# aws iam remove-role-from-instance-profile --instance-profile-name service-hydrocron-api-sit-instance-profile --role-name service-hydrocron-api-sit-service-role
#aws iam delete-instance-profile --instance-profile-name service-hydrocron-api-sit-instance-profile
#aws iam detach-role-policy --role-name service-hydrocron-api-sit-service-role --policy-arn arn:aws:iam::206226843404:policy/service-hydrocron-api-sit-service-policy
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-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 lambda delete-function --function-name arn:aws:lambda:us-west-2:206226843404:function:service-hydrocron-api-sit-function
#aws lambda delete-function --function-name arn:aws:lambda:us-west-2:206226843404:function:service-hydrocron-api-sit-function
#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
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
2 changes: 1 addition & 1 deletion terraform/hydrocron-lambda-iam.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# IAM roles

resource "aws_iam_instance_profile" "hydrocron-service-profile" {
name = "${local.ec2_resources_name}-instance-profile"
name = aws_iam_role.hydrocron-service-role.name
role = aws_iam_role.hydrocron-service-role.name
}

Expand Down

0 comments on commit ac29849

Please sign in to comment.