-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
Caching cannot be enabled in the default deployment for API Gateway #1607
Comments
Probably better to have I'm running into the sample problem now here, with added bonus that the creation of a seconds stage, pointing to my earlier deployment fails with: So I have no way to enable caching on my api as I can't control the stage settings. |
Based on the API reference it might not be possible to create a deployment without a stage. |
I was able to enable cache settings with a local provisioner like this:
|
dudemcbacon's workaround is fine if you're happy not specifying a stage variable. The problem I have though is I really want to use a Then when you want to use a The AWS API dependencies between deploy and stage resources is very weird and not fun to manage. |
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
As the AWS SDK for Go documentation shows, it is possible to specify whether the cache cluster for the default deployment is enabled (and its size). By default deployment I refer to the one created with
aws_api_gateway_deployment
as opposed toaws_api_gateway_stage
.However, as the current Terraform code shows, the fields to specify the cache cluster settings are not used:
This forces us to create two stages whenever we need caching. The one created with
aws_api_gateway_deployment
will not have caching enabled, while the one created withaws_api_gateway_stage
will have caching enabled (as that resource allows for the configuration of the cache cluster).Given that
CreateDeploymentInput
actually has fields to configure the cache cluster, it would be nice to let users configure the cache cluster in the default deployment.The text was updated successfully, but these errors were encountered: