-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
(api-gateway): Ability to set Per-key cache invalidation attributes #18794
Comments
Hi, @parencik. I'm not sure if I fully understand this feature request. You can already define caching per key on the integration level. For example: new apigateway.LambdaIntegration(someLambdaFunction, {
cacheKeyParameters: /* ... */
}); And to define which methods need authorization and what authorization mechanism to apply, you can use authorizers on the method level. But I presume you mean something different. Can you share some examples of what the API would look like? |
I have the same issue, I can't find a way to configure the cache invalidation from this issue aws/serverless-application-model#788 |
@otaviomacedo |
are there any progress on this issue? |
This issue is a We use +1s to help prioritize work, and are happy to reevaluate this issue based on community feedback ( number of 👍 on issue description). |
This issue has received a significant amount of attention so we are automatically upgrading its priority. A member of the community will see the re-prioritization and provide an update on the issue. |
This is not supported in CloudFormation. I've opened a ticket internally to understand what can be done. |
Stumbled recently upon this myself and the best workaround I've come up with is to use the AWS CLI as part of the CI/CD pipeline and remove this property from the API: I have seen some posts where people use wildcards to update multiple resources at the same time, but I didn't get that to work. Note that the "path" must be escaped according to the instructions here: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/apigateway/client/update_stage.html |
Please enable the feature Per-key cache invalidation along with Require authorization and Handle unauthorized requests for caching feature |
+1 I've just encountered this issue. It gets enabled by default it seems, and no way to set it in the Cloudformation config |
Description
It would be great to be able to set Per-key cache invalidation (enabled/disabled) and sub-attributes - Require authorization (true/false) and Handle unauthorized requests (1 from 3 options) globally - per stage and per method in API.
Use Case
I'm regularly deploying 20+ APIs to 3 stages and have to manually set Per-key cache invalidation behavior manually for each method separately, thats annoying.
Proposed Solution
Would be great if added these options to interface StageOptions and MethodDeploymentOptions
Other information
No response
Acknowledge
The text was updated successfully, but these errors were encountered: