-
Notifications
You must be signed in to change notification settings - Fork 216
feat: not output cloudformation outputs section #324
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
feat: not output cloudformation outputs section #324
Conversation
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.
@CM-Kajiwara
Thank you for sending this PR 👍 Cool 🕶
The specification and implementation is good from my perspective and two comments left about test and doc as my review. Please check it out.
}; | ||
serverlessStepFunctions.compileStateMachines(); | ||
expect(Object.keys(serverlessStepFunctions.serverless.service.provider | ||
.compiledCloudFormationTemplate.Outputs).length).to.equal(0); |
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.
Could you add a test case which noOutput: false
is explicitly set as well?
README.md
Outdated
@@ -351,6 +351,15 @@ stepFunctions: | |||
validate: true | |||
``` | |||
|
|||
### Disable Output Cloudformation Outputs section | |||
|
|||
Disables output in Outputs section. |
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.
It may lack the explanation in what kind of situation would it be possible to use this.
What about updating something like this?
Disables output in the CloudFormation Outputs section. if you define many state-machines in serverless.yml, there is a possibility of reaching out a CloudFormation limits in which the maximum number of outputs is 60. If you define `noOutput: true`, you can prevent automatically output by this plugin.
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.
@CM-Kajiwara
Thank you for the updates 👍
LGTM! will release a new version with this soon 💯
🎉 This PR is included in version 2.18.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
…ut-option feat: not output cloudformation outputs section
This option suppresses output to the Outputs section of Cloudformation.
https://dev.classmethod.jp/articles/serverless-framework-stepfunctions-many-statemachine-workaround/