(cli-lib-alpha): should be able to disable cloud assembly version check #33338
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
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
tosynth
and then I will read the resultingcdk.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 ofaws-cdk-lib
.Proposed Solution
With the current implementation of
fromCloudAssemblyDirectoryProducer
it looks like we might not even need to create acxapi.CloudAssembly
. We might be able to change this lineaws-cdk/packages/@aws-cdk/cli-lib-alpha/lib/cli.ts
Line 128 in 873233b
to be:
Other Information
No response
Acknowledgements
CDK version used
2.178.0
Environment details (OS name and version, etc.)
Any
The text was updated successfully, but these errors were encountered: