aws_codepipeline_actions: not able to access outputs/variable of CloudFormationCreateUpdateStackAction #23166
Replies: 2 comments
-
if I understand your problem correctly, you are
You'll need to use Parameter Store to glue the two together: When the CodePipeline resource is generated, the HTTP API has yet to be fully deployed, and it won't know it until the whole CloudFormation stack has been reified. |
Beta Was this translation helpful? Give feedback.
-
When you need to make an SDK call to get some information, the best thing to do is to use a custom resource. Specifically, our helper construct AwsCustomResource makes it easy to make any arbitrary SDK call. The suggestion above with parameter store is also a solution. But I'm also wondering why the output artifact from this action cannot be used as an input for a later step? I think this topic will get better visibility as a discussion, converting now. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
This is application stack
This is a deploy action
Then I want to access a output (API URL) from the deployed stack and pass to a codebuild action
The CDK document does not describe how CloudFormationCreateUpdateStackAction emit outputs/variable?
Expected Behavior
CloudFormationCreateUpdateStackAction should emit outputs/variables which are accessible to subsequent actions
Current Behavior
Not able to access outputs/variable from CloudFormationCreateUpdateStackAction. The only way to work around is to using boto3, read the deployed stack (describe) and looking for the outputs given exported names.
Reproduction Steps
Just reuse the code above
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.27.0
Framework Version
No response
Node.js Version
16.15.1
OS
Amazon Linux 2
Language
Typescript
Language Version
No response
Other information
No response
Beta Was this translation helpful? Give feedback.
All reactions