-
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
servicecatalog: Product containing BucketDeployment: AWS CLI Layer asset stored in wrong bucket #25733
Comments
@wanjacki Could You take a look on this? Any idea for a workaround without manual copying? |
You defined You don't need any of that code in All you have to do is define the asset in |
Hi @wanjacki,
Also I want to point out, that the problem isn't the Asset containing the Anglular files. They are correctly stored in the second bucket (AssetBucket) and retrieved on product launch. However - manually moving the zip-file (AwsCliLayer) from the boostrap bucket (1) to the correct assetBucket (2) makes the product launchable. All other assets are stored correctly - the only problem is this specify zip-file. Thanks in advance |
I see, so when an asset is detected to be created directly in ProductStack it will call: So I am assuming the assets for Not sure what the solution is, but maybe you can make an additional BucketDeployment yourself to copy it over yourself? |
Hi @wanjacki |
Hi @padaszewski, Sorry unfortunately I'm no longer with AWS/Service Catalog so my ability to help is limited, but best of luck in figuring this out :/ |
Would just like to bump this thread and say we are facing almost the exact same problem on our team (but using Python CDK). We have an assets bucket initialised and trying to utilise the When launching the Service Catalog product that is created, we are getting the same "NoSuchKey" error from the AwsCliLayer component of the bucket deployment method. |
Hi @ArneScherhag |
Hi there, thought I would chime in since we have had chance to try the latest cdk version (v2.88.0) with our solution. Unfortunately we still receive the same aformentioned error of NoSuchKey when trying to access the build folder zip from the assets bucket in the bucket deployment |
Describe the bug
The product is made with the
fromProductStack
functionality and it contains theBucketDeployment
Resource.When trying to launch this product in the target account it fails to deploy because one part of the error:
The object is correctly referenced in the template, however the assets bucket does not contain the corresponding .zip file.
After investigation the file was found in the standard cdk bootstrapping bucket (cdk-assets).
When the .zip file is copied to the product assets bucket then the product launches correctly.
This asset contains the AWSCliLayer files needed for the BucketDeployment.
Expected Behavior
The required assets is stored in the product stack assets bucket and the product launches.
Current Behavior
The required asset is stored in the cdk bootstrapping bucket and while launching of the product the product cannot find the asset in the assets bucket, because obviously this file is missing there.
Reproduction Steps
Full minimal example:
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.80.0
Framework Version
No response
Node.js Version
18.15.0
OS
Windows
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: