Deploying a CDK StackSet using ServiceCatalog ProductStack causes a Race Condition #30409
Unanswered
billyjbryant
asked this question in
Q&A
Replies: 1 comment
-
So i think i found a solution to this. The problem is that the template is deployed by a custom resource stackSet.node.addDependency(stackSetBucket); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Background
I am attempting to deploy a Lambda Singleton Function in a StackSet using CDK. I am using TypeScript CDK to build my stack. I am not able to use the
cdk-labs/cdk-stacksets
package because I was running into other errors with it due to our deployment strategy. I have built a template that builds a S3 Bucket, A ServiceCatalog CloudFormation Template from a ProductStack and a CfnStackSet. My issue is that the CfnStackSet is attempting to deploy before the S3 Deployment of the Service Catalog Template assets is finished, thus creating a race condition where the StackSet attempts to deploy (wherein the stack references a Lambda object in a bucket and the object does not yet exist).Does anyone have a good way of doing this?
Here is my code so far:
Code for Stack.ts
Code for app.ts
I basically get this error message:
Beta Was this translation helpful? Give feedback.
All reactions