-
Notifications
You must be signed in to change notification settings - Fork 5.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
Support API Gateway stage deployment description #5509
Support API Gateway stage deployment description #5509
Conversation
@@ -14,6 +14,7 @@ module.exports = { | |||
Properties: { | |||
RestApiId: this.provider.getApiGatewayRestApiId(), | |||
StageName: this.provider.getStage(), | |||
Description: this.provider.getApiGatewayDescription(), |
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.
Speaking up because I thing this feature will actually fix #3495 (comment) if implemented correctly.
The cloud formation resource for this is not a string but a structured type
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-deployment.html
It's the structured type that enables turning on active tracing for the gateway https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription.html
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.
I take that back. That's StageDescription vs Description. You may get more bang for your buck if you add them both here. I'd but happy to add a follow pull that just mirrors this with StageDescription if that's too much scope.
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.
Yes, I can add StageDescription
I will create new PR which will be based on this one
UPD: I have looked on stage description and it's very complex task.
I would like to do it but not right now.
Can we finish the first with this PR ?
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.
I'd prefer if it only sets the description if it's provided instead of setting it to an empty string if it's not
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.
@dschep I've done
Any eta on this? I looks pretty solid to me |
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.
looks good with one small change request.
@@ -14,6 +14,7 @@ module.exports = { | |||
Properties: { | |||
RestApiId: this.provider.getApiGatewayRestApiId(), | |||
StageName: this.provider.getStage(), | |||
Description: this.provider.getApiGatewayDescription(), |
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.
I'd prefer if it only sets the description if it's provided instead of setting it to an empty string if it's not
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.
Thanks for working on this @vkkis93 👍
I just pulled this today and tested it thorougly. Works like a charm. Merged master
into it so that it's up to date and pushed some doc updates.
Will merge once Travis says everything is fine
What did you implement:
Closes #5400
How did you implement it:
Allowed to be used property
Description
inAWS::ApiGateway::Deployment
How can we verify it:
Need to add field
description
inand after deployment - description will be added to deployment histrory tab
Todos:
Is this ready for review?: YES
Is it a breaking change?: NO