Skip to content

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

Merged
merged 3 commits into from
Apr 8, 2020

Conversation

CM-Kajiwara
Copy link
Contributor

This option suppresses output to the Outputs section of Cloudformation.

https://dev.classmethod.jp/articles/serverless-framework-stepfunctions-many-statemachine-workaround/

Copy link
Collaborator

@horike37 horike37 left a 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);
Copy link
Collaborator

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.
Copy link
Collaborator

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.

Copy link
Collaborator

@horike37 horike37 left a 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 💯

@horike37 horike37 merged commit 5d8d417 into serverless-operations:master Apr 8, 2020
@horike37
Copy link
Collaborator

horike37 commented Apr 8, 2020

🎉 This PR is included in version 2.18.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

ss-betseqnzr pushed a commit to BetSEQNZR/serverless-step-functions that referenced this pull request Sep 8, 2023
…ut-option

feat: not output cloudformation outputs section
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants