Missing property in CloudFormation AWS::ApiGateway::Stage?

0

I'm trying to create an APIGateway Stage that does not require authorization for cache control, I see that this property exists in the AWS Console but it does not exist in CloudFormation MethodSettings? Is there a reason for it not to exist in CloudFormation?

MethodSetting definition for CloudFormation: https://docs.aws.amazon.com/pt_br/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-stage-methodsetting.html

demandé il y a 2 ans485 vues
1 réponse
0
Réponse acceptée

Hello,

At this time, CloudFormation doesn't support disabling the Require authorization option under "Per-key cache invalidation" natively.

As a workaround via CloudFormation, you could use a Lambda backed custom resource to disable the "Require authorization" option. More information about custom resources can be found here and here.

There is an existing feature request with the service team for this functionality to be implemented and I have included your request to it. While I am unable to comment on if/when this feature may get released, I request you to keep an eye on our What's New and Blog pages for any new feature announcements.

AWS
répondu il y a 2 ans
  • how can I disable the required authorisation option via a lambda? I cannot find any mention of it in the api gateway client sdk

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions