Describe the bug
Profiles specified in IntegTests like so:
new IntegTest(someApp, "sometest", {
...
cdkCommandOptions: {
deploy: {
args: {
profile: "some-profile",
},
...
seems to be ignored during deploy. I believe it happens here:
https://github.com/aws/aws-cdk-cli/blob/main/packages/%40aws-cdk/integ-runner/lib/runner/integ-test-runner.ts#L249
where actualTestCase.cdkCommandOptions.deploy.args.profile is completely disregarded.
This is a problem that has occurred before, and I believe it was fixed somewhere around 2.194.2, but I can't seem to find the corresponding issue right now, maybe there never was one. I know the fix was commited the exact. same day I pinpointed the problem back then.
Regression Issue
Last Known Working CDK Version
2.194.2
Expected Behavior
Profile from cdkCommandOptions should be used if specified.
Current Behavior
Default profile (or from --profiles on command line) is used.
Reproduction Steps
- Specify test with cdkCommandOptions.deploy.args.profile
- Run test with some other default profile
- Check cloudtrail for example for ExecuteChangeSet and not the userIdentity
Possible Solution
profile: actualTestCase.cdkCommandOptions?.deploy?.args?.profile ?? this.profile,
Additional Information/Context
We use this to test deployment with different sets of permissions.
CDK CLI Version
2.1027.0 (build 5fc1b13)
Framework Version
No response
Node.js Version
v22.22.1
OS
All
Language
TypeScript
Language Version
No response
Other information
No response
Describe the bug
Profiles specified in IntegTests like so:
seems to be ignored during deploy. I believe it happens here:
https://github.com/aws/aws-cdk-cli/blob/main/packages/%40aws-cdk/integ-runner/lib/runner/integ-test-runner.ts#L249
where
actualTestCase.cdkCommandOptions.deploy.args.profileis completely disregarded.This is a problem that has occurred before, and I believe it was fixed somewhere around 2.194.2, but I can't seem to find the corresponding issue right now, maybe there never was one. I know the fix was commited the exact. same day I pinpointed the problem back then.
Regression Issue
Last Known Working CDK Version
2.194.2
Expected Behavior
Profile from cdkCommandOptions should be used if specified.
Current Behavior
Default profile (or from --profiles on command line) is used.
Reproduction Steps
Possible Solution
Additional Information/Context
We use this to test deployment with different sets of permissions.
CDK CLI Version
2.1027.0 (build 5fc1b13)
Framework Version
No response
Node.js Version
v22.22.1
OS
All
Language
TypeScript
Language Version
No response
Other information
No response