Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(lambda): automatic
currentVersion
conflicts with explicit `Vers…
…ion` resource (#23636) In #23225, we automatically created a `currentVersion` Version object if the `currentVersionOptions` property was specified. However, this breaks the case where a user both: * Specifies `currentVersionOptions` * Never calls `currentVersion` but instead creates a `Version` object directly. In that case, 2 `Version` resources are created, but the second one fails because Lambda will not allow creating a new Version if nothing changed since the last Version. Reverting that change. ---- ### All Submissions: * [ ] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) ### Adding new Construct Runtime Dependencies: * [ ] This PR adds new construct runtime dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-construct-runtime-dependencies) ### New Features * [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)? * [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
- Loading branch information
Showing
12 changed files
with
0 additions
and
597 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
...sion-options.js.snapshot/CurrentVersionOptionsDefaultTestDeployAssertF66C8354.assets.json
This file was deleted.
Oops, something went wrong.
36 changes: 0 additions & 36 deletions
36
...on-options.js.snapshot/CurrentVersionOptionsDefaultTestDeployAssertF66C8354.template.json
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
packages/@aws-cdk/aws-lambda/test/integ.current-version-options.js.snapshot/cdk.out
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
...lambda/test/integ.current-version-options.js.snapshot/current-version-options.assets.json
This file was deleted.
Oops, something went wrong.
99 changes: 0 additions & 99 deletions
99
...mbda/test/integ.current-version-options.js.snapshot/current-version-options.template.json
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
packages/@aws-cdk/aws-lambda/test/integ.current-version-options.js.snapshot/integ.json
This file was deleted.
Oops, something went wrong.
123 changes: 0 additions & 123 deletions
123
packages/@aws-cdk/aws-lambda/test/integ.current-version-options.js.snapshot/manifest.json
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.