Replies: 2 comments 1 reply
-
This seems to be an interesting use case. I'll see what I can do with your given sample. const thirdPartyBinariesDeployment = new s3deploy.BucketDeployment(
this,
"third-party-binaries-deploy",
{
sources: [s3deploy.Source.asset("./s3-assets/third-party-binaries")],
destinationBucket: thirdPartyBinariesBucket
});
const parameters = {
BuildkiteQueue: "default",
VpcId: vpc.vpcId,
Subnets: vpc.privateSubnets.map(subnet => subnet.subnetId),
InstanceRoleName: "buildkite-role",
ManagedPolicyARN: [
iam.ManagedPolicy.fromAwsManagedPolicyName(AWSManagedPolicies.AMAZON_S3_FULL_ACCESS).managedPolicyArn
],
AssociatePublicIpAddress: false,
InstanceType: "t3.medium",
MinSize: 1,
MaxSize: 1
};
const buildkiteStack = new cloudformation.CfnStack(this, "buildkite-agent", {
templateUrl: "https://s3.amazonaws.com/buildkite-aws-stack/v5.17.0/aws-stack.yml",
parameters: objectMap(parameters, v => v.toString())
});
buildkiteStack.addDependency(thirdPartyBinariesDeployment);
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
I think you probably need to use
And if you run I noticed you are using native javascript to author your CDK code. I will recommend using TypeScript instead that helps you better trouble-shooing from your IDE with strong type check capabilities. Moving this to discussion as this appears to be a general guidance issue. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Describe the bug
I am unable to add an S3 deployment as a dependency to a CfnStack as I would expect from the documentation.
Expected Behavior
I expect to be able to add an S3 deployment resource as a dependency of a CfnStack, resulting in that CfnStack not being deployed until the S3 deployment is complete.
Current Behavior
I receive the following error when running
npm run cdk -- synth
in the example project attached.Reproduction Steps
npm install
in the project directorynpm run cdk -- synth
in the project directoryPossible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.67.0 (build b6f7f39)
Framework Version
No response
Node.js Version
v19.7.0
OS
Arch Linux 6.2.2-zen1
Language
Typescript
Language Version
No response
Other information
No response
Beta Was this translation helpful? Give feedback.
All reactions