aws / aws/aws-cdk

Support for Docker Image Assets in Service Catalog Product Stacks

Open
#31,297 2 comments 1 reaction 0 assignees View on GitHub
@aws-cdk/assets effort/medium feature-request p2
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
2d 3h
Merged PRs (30d)
83

Description

### Describe the feature

Currently, when trying to use Docker image assets within a Service Catalog product stack, we encounter the following error:

```
Error: Service Catalog Product Stacks cannot use Assets
at ProductStackSynthesizer.addDockerImageAsset

```

### Use Case

We need to deploy a lambda function as a docker container since the packages required more storage than a lambda layer supports.

### Proposed Solution

In the api docs there's an example of regular assets that are supported: https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_servicecatalog-readme.html#using-assets-in-your-product-stack

it would be nice to also support docker image assets.

### Other Information

If you know of a workaround, that would be great!

### Acknowledgements

- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change

### CDK version used

2.155.0

### Environment details (OS name and version, etc.)

macos

Contributor guide

Open the contributing guide

Research direction

Start at ProductStackSynthesizer.addDockerImageAsset, which currently raises the reported error, and compare it with the regular asset support described in the Service Catalog API documentation. Trace how product stacks handle those assets and define completion as allowing Docker image assets for the stated Lambda container use case without the current error.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, docker, typescript
Domain
cloud, infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.