-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstage-variables-commands.sh
More file actions
9 lines (6 loc) · 1.3 KB
/
Copy pathstage-variables-commands.sh
File metadata and controls
9 lines (6 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
# For the DEV alias (replace the region and account number accordingly)
aws lambda add-permission --function-name "arn:aws:lambda:eu-west-2:387124123361:function:lambda-api-gateway-proxy-root-get:DEV" --source-arn "arn:aws:execute-api:eu-west-2:387124123361:kfz6b0ty9i/*/GET/stagevariables" --principal apigateway.amazonaws.com --statement-id eb4791cf-60c1-4a0f-b519-bbdb1ff13114 --action lambda:InvokeFunction --region eu-west-2
# For the TEST alias (replace the region and account number accordingly)
aws lambda add-permission --function-name "arn:aws:lambda:eu-west-2:387124123361:function:lambda-api-gateway-proxy-root-get:TEST" --source-arn "arn:aws:execute-api:eu-west-2:387124123361:kfz6b0ty9i/*/GET/stagevariables" --principal apigateway.amazonaws.com --statement-id eb4791cf-60c1-4a0f-b519-bbdb1ff13114 --action lambda:InvokeFunction --region eu-west-2
# For the PROD alias (replace the region and account number accordingly)
aws lambda add-permission --function-name "arn:aws:lambda:eu-west-2:387124123361:function:lambda-api-gateway-proxy-root-get:PROD" --source-arn "arn:aws:execute-api:eu-west-2:387124123361:kfz6b0ty9i/*/GET/stagevariables" --principal apigateway.amazonaws.com --statement-id eb4791cf-60c1-4a0f-b519-bbdb1ff13114 --action lambda:InvokeFunction --region eu-west-2