-
Notifications
You must be signed in to change notification settings - Fork 4k
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
generated content (using cdk synth) in cdk.out cannot be reused for deploying infrastructure in another region #27063
Comments
I'm not sure why you would expect this to work. Do we have any documentation on this topic? |
I would expect it, because looking into the s3 bucket (created by bootstrap), each time I deployed, the whole directory cdk.out will be uploaded to the s3 bucket and from there, CloudFormation references the resources, creating my whole scenario. Or perhaps I 'm assuming to much ?. :\ |
It's probably close to working, I've just never heard of the use case and am not sure if this is supposed to work. When you get the |
This thread seems to be related https://stackoverflow.com/questions/64720224/s3-error-access-denied-when-deploying-cfn-template-with-nested-stacks |
OK, I think what you're encountering is that you're uploading the assets directly as they are to S3. The names of the assets in the CloudFormation template differ from as they appear in |
I followed some steps for testing the deployment based on cdk.out.
I think this kind of deployment could be considered as near new feature. Projects with IaC should also be available via Marketplace. For this, the user gets normally an URL of the related cloud template and the infrastructure will be by the used deployed. |
Describe the bug
generated content in cdk.out cannot be reused for deploying infrastructure in another region.
Expected Behavior
With the generated content within cdk.out should be also possible to deploy the App (Intrastrukture) in another Region.
Current Behavior
I have a simple Infrastrukture with nested stacks. Its deployment from console is possible, using cdk deploy.
I uploaded the content of cdk.out into a s3-bucket. This contains all files, template and assets.
From the AWS-Console in Cloud Formation (located in another region), I try to deploy/create a stack with the S3 URL of that template . But I get the error "S3 error: Access Denied For more information check http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html".
The S3 bucket allows public access and the full content of cdk.out was uploaded in that bucket
Reproduction Steps
Using the creation of a new stack from CloudFormation:
Try with the S3 URL of the bucket where is located the content of cdk.out.zip
cdk.out.zip
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
aws-cli/2.13.12 Python/3.11.4 Windows/10 exe/AMD64 prompt/off
Framework Version
No response
Node.js Version
9.5.1
OS
Windows
Language
Java
Language Version
Java 17
Other information
No response
The text was updated successfully, but these errors were encountered: