Skip to content
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

Expose stack outputs to Action #16

Open
HappyEinara opened this issue Jul 12, 2020 · 2 comments
Open

Expose stack outputs to Action #16

HappyEinara opened this issue Jul 12, 2020 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@HappyEinara
Copy link

Hi there, not so much an issue as a feature request or question.

I am experimenting with using Actions + CDK to deploy a Lambda function with API Gateway, and as you probably know, on success the URL of the API is output as a "stack output" by CDK.

Is it currently possible, or could you consider making it possible, to somehow capture such stack outputs for re-use in the Action, perhaps as an environment variable?

Example use case: I deploy my api with gitops and would like to receive a Slack post (sent by the action) which includes the API url from the stack output later in the workflow on a successful deployment.

@ScottBrenner ScottBrenner added enhancement New feature or request help wanted Extra attention is needed labels Jul 12, 2020
@ScottBrenner
Copy link
Owner

This can be done with outputs, although it might be tricky to capture the API URL from the CDK output.

@HappyEinara
Copy link
Author

cdk seems to output the line Outputs: followed by key-value pairs in the format key = value. Perhaps they could be mapped up to Action outputs generally, just passing through the CDK outputs as Action outputs (with a prefix?), and leaving the job of understanding them to the downstream jobs.

E.g.:

Outputs:
test001.Endpoint*** = https://***.execute-api.ap-southeast-2.amazonaws.com/prod/

TBH I'll probably be doing this sort of thing with custom domain names most of the time anyway so I wouldn't consider this urgent, but it would be nice to have. Getting the stack outputs accessible might be pretty useful generally though,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants