-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR adds support for cfn outputs. You can specify a Cfn Output as an environment variable like so: ```ts pipeline.addStage(myStage, { pre: [new ShellStep('Pre', { commands: ['echo hello'], })], post: [new ShellStep('Post', { envFromCfnOutputs: { FN_NAME: myStage.fnName, }, commands: ['echo FN_NAME equals: $FN_NAME'], })], }); ``` This translates to a `deploy.yml` file with an output for the deploy step: ```yaml outputs: myout: \${{ steps.Deploy.outputs.myout }} ``` As well as sets the environment variable for the Post step: ```yaml env: FN_NAME: \${{ needs.StageA-FunctionStack-Deploy.outputs.myout }} steps: - run: \\"echo FN_NAME equals: $FN_NAME\\" ```
- Loading branch information
Showing
7 changed files
with
131 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters