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

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南