-
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): Service Catalog does not support assets out of the box! #20361
Comments
@padaszewski |
In regards to |
@wanjacki According to |
@padaszewski In regards for Edit: Okay I think I understand you are trying to use |
@wanjacki According to |
I'm going to close this as a duplicate of the feature request #20690. Thanks for the discussion all! I'd appreciate it if we could keep this all in the FR thread 🙂 |
|
Describe the bug
The docs states:
But unfortunately this is not the case. Each resource that creates S3 assets, like eg. complex bundled lambdas, can not be created in the desired customer (target) account.
This applies to the game changer method
fromProductStack()
and also (found today) to thefromAsset()
method.Expected Behavior
fromProductStack()
: The behaviour of ProductStack containing assets in the target account is the same as of Stack in the development account.fromAsset()
: The product containing assets is successfully deployed in the target accountCurrent Behavior
fromProductStack()
: Not even synthable, because theProductStackSynthesizer
throws the following error:Service Catalog Product Stacks cannot use Assets
fromAsset()
: before we create the product we presynth the App with following stack synthesizer:and put the result into the
fromAsset()
method. This leads to actually generating the product but if we try to launch the product we got the error that the cdk-bootstrap-bucket in the target account does not exists (what is correct, we do not want to bootstrap the account, just launch the CFN product) and the asset, obviously, can not be created. So this leads to an error during the launch.Reproduction Steps
Lets consider the following simple stack:
This construct creates the custom resource lambda for auto deleting objects, so it fits perfect as a small example.
Now the actual portfolio stacks:
fromAsset()
:fromProductStack()
:Just simply exchange the product creation method and ignore
getTemplate()
Possible Solution
Currently the only solution we got is to have one application wich contains the assets in the specified S3 buckets, provide read permissions for the target account and then create the assets like:
But as You can see this is kind of ironic.
If You have any better solution please share it here.
fromProductStack()
is a very big game changer for using the Service Catalog with CDK so we want to encourage You to provide a clean solution for this.Additional Information/Context
No response
CDK CLI Version
2.23.0 (build 50444aa)
Framework Version
No response
Node.js Version
v16.15.0
OS
Windows
Language
Typescript
Language Version
TypeScript (4.6.4)
Other information
No response
The text was updated successfully, but these errors were encountered: