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

[pipelines]: Can't get stack outputs in subsequent steps #16036

Closed
flochaz opened this issue Aug 13, 2021 · 1 comment
Closed

[pipelines]: Can't get stack outputs in subsequent steps #16036

flochaz opened this issue Aug 13, 2021 · 1 comment
Labels
@aws-cdk/pipelines CDK Pipelines library closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p2

Comments

@flochaz
Copy link
Contributor

flochaz commented Aug 13, 2021

Can't get stack outputs in subsequent steps since Namespace is not set on Default Cloudformation Execution step generated by cdk pipelines construct.

I wasn't able to find a way to set this namespace except by adding a dummy ShellStep referencing my outputs in envFromCfnOutputs and looking at the code it looks like that only if step of type ShellStep is generating the namespace addition.

Reproduction Steps

  1. Create a pipeline with cdk pipelines construct (example)
  2. Add a step (of any kind but not ShellStep) in your stage with ref to stack outputs (example)
  3. Check if namespace is set in execute step => it won't be

What did you expect to happen?

Namespace always set to stack name in Execute CFN step

What actually happened?

Namespace not set and therefore we can't access stacks output in subsequent steps.

Environment

  • **CDK CLI Version :1.118.0
  • **Language (Version):Typescript

This is 🐛 Bug Report

@flochaz flochaz added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Aug 13, 2021
@github-actions github-actions bot added the @aws-cdk/pipelines CDK Pipelines library label Aug 13, 2021
@rix0rrr rix0rrr added effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p2 and removed bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Aug 19, 2021
@rix0rrr rix0rrr removed their assignment Aug 19, 2021
@github-actions
Copy link

This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.

@github-actions github-actions bot added closing-soon This issue will automatically close in 4 days unless further comments are made. closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. and removed closing-soon This issue will automatically close in 4 days unless further comments are made. labels Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/pipelines CDK Pipelines library closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p2
Projects
None yet
Development

No branches or pull requests

2 participants