Skip to content
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

(cli-lib-alpha): should be able to disable cloud assembly version check #33338

Open
2 tasks
corymhall opened this issue Feb 7, 2025 · 1 comment
Open
2 tasks
Labels
@aws-cdk/cli-lib-alpha effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p2

Comments

@corymhall
Copy link
Contributor

Describe the feature

When you use the AwsCdkCli.fromCloudAssemblyDirectoryProducer() it defaults to enforcing a version check on the CloudAssembly. You should be able to disable the version check.

Use Case

For my use case I need it to create a CloudAssembly, but I don't want it to do a version check. I am using the AwsCdkCli to synth and then I will read the resulting cdk.out directory and pull the information I need from it. By enforcing a version check it requires me to keep the version of this library always up to date, otherwise users get an error if they are using a new version of aws-cdk-lib.

Proposed Solution

With the current implementation of fromCloudAssemblyDirectoryProducer it looks like we might not even need to create a cxapi.CloudAssembly. We might be able to change this line

return withEnv(async() => createAssembly(await producer.produce(context)), env);

to be:

  return withEnv(async() => await producer.produce(context), env);

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.178.0

Environment details (OS name and version, etc.)

Any

@corymhall corymhall added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Feb 7, 2025
corymhall added a commit to pulumi/pulumi-cdk that referenced this issue Feb 7, 2025
This PR does a couple of updates.

- Update the dependency on `@aws-cdk/cli-lib-alpha` due to aws/aws-cdk#33338
- Update the devDependency on `aws-cdk-lib` to the latest version
- Update the examples deps to the latest version
- Add some renovate rules to automate this

This is needed because the library will throw an error if the user is
using a version of `aws-cdk-lib` that is above the version of
`@aws-cdk/cli-lib-alpha` so we need to keep this version up to date.
@pahud pahud added the p2 label Feb 7, 2025
@pahud
Copy link
Contributor

pahud commented Feb 7, 2025

Thank you @corymhall I'll bring it up to the team.

@pahud pahud added effort/medium Medium work item – several days of effort and removed needs-triage This issue or PR still needs to be triaged. labels Feb 7, 2025
corymhall added a commit to pulumi/pulumi-cdk that referenced this issue Feb 10, 2025
This PR does a couple of updates.

- Update the dependency on `@aws-cdk/cli-lib-alpha` due to aws/aws-cdk#33338
- Update the devDependency on `aws-cdk-lib` to the latest version
- Update the examples deps to the latest version
- Add some renovate rules to automate this

This is needed because the library will throw an error if the user is
using a version of `aws-cdk-lib` that is above the version of
`@aws-cdk/cli-lib-alpha` so we need to keep this version up to date.
corymhall added a commit to pulumi/pulumi-cdk that referenced this issue Feb 10, 2025
This PR does a couple of updates.

- Update the dependency on `@aws-cdk/cli-lib-alpha` due to
aws/aws-cdk#33338
- Update the devDependency on `aws-cdk-lib` to the latest version
- Update the examples deps to the latest version
- Add some renovate rules to automate this

This is needed because the library will throw an error if the user is
using a version of `aws-cdk-lib` that is above the version of
`@aws-cdk/cli-lib-alpha` so we need to keep this version up to date.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/cli-lib-alpha effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p2
Projects
None yet
Development

No branches or pull requests

2 participants