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
add BodyS3Location property to AWS::ApiGateway::RestApi #8425
Conversation
510c40b
to
1faf6c5
Compare
1faf6c5
to
dd0649b
Compare
dd0649b
to
7cc6140
Compare
7cc6140
to
81aa7f2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for extending this!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for extending this!
81aa7f2
to
f573e97
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks @bentsku
@@ -241,6 +241,8 @@ def update_rest_api( | |||
|
|||
@handler("PutRestApi", expand=False) | |||
def put_rest_api(self, context: RequestContext, request: PutRestApiRequest) -> RestApi: | |||
# TODO: take into account the mode: overwrite or merge |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, no "mode" means "merge" - not necessarily a fix for now, but we could return a non-supported error if the mode is overwrite
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, but right now we are not merging but always overwriting I believe? we do the following in the importer:
# Remove default root, then add paths from API spec
rest_api.resources = {}
f573e97
to
df720b7
Compare
Depends on #8371
Implementing the
BodyS3Location
property toAWS::ApiGateway::RestApi
as requested by a customer.This property allows Cloudformation to directly fetch the "Body" property from an S3 bucket.
However, I am not sure how to do negative testing with Cloudformation, so for now any S3 exception is going to bubble up?
Small note: I've also removed a line from the API Gateway importer because it was erasing tags after updating a RestAPI, which is not the default mode anymore.
Resource:
https://docs.aws.amazon.com/fr_fr/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-restapi-s3location.html