Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use api_gateway_stage for managing APIGW stages with Terraform instead of api_gateway_deployment stage_name #1838

Open
jrbeilke opened this issue Nov 16, 2021 · 1 comment

Comments

@jrbeilke
Copy link
Contributor

Attempting to enhance some of the features/functionality of Chalice with Terraform during our deploys, but we're limited because Chalice does not expose the API Gateway stage (ie. for associating a WAF ACL with APIGW stage)

The AWS provider for Terraform has been updated and also no longer recommends using stage_name in api_gateway_deployment to manage API Gateway stages as Chalice does today.

@jrbeilke
Copy link
Contributor Author

Came up with a workaround for now by wrapping the chalice.tf.json with some additional Terraform that can grab the stage-name and generate an ARN for the APIGW stage ie.

"${aws_api_gateway_rest_api.rest_api.arn}/stages/${aws_api_gateway_deployment.rest_api.stage_name}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant