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

질문됨 2년 전485회 조회
1개 답변
0
수락된 답변

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
답변함 2년 전
  • how can I disable the required authorisation option via a lambda? I cannot find any mention of it in the api gateway client sdk

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠