Expose execution ARN from aws_api_gateway_rest_api resource #3967
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/apigateway
Issues and PRs that pertain to the apigateway service.
Milestone
Hi,
Currently, in order to create for example a Lambda permission for API Gateway one has to create an
aws_api_gateway_deployment
resource and obtain theexecution_arn
attribute.However, this approach couples the deployment (stage) with specific permission.
Alternatively one could use a block like this
to calculate the ARN not restricted to specific stage, or even create the ARN by hand according to the specification.
But either way we end up with messy expressions and/or permission coupled to the deployment.
I feel that the
aws_api_gateway_rest_api
resource should exposeexecution_arn
in a fashion similar toaws_api_gateway_deployment
.The text was updated successfully, but these errors were encountered: