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): add option of role to stackExists call #29495

Open
1 of 2 tasks
scanlonp opened this issue Mar 14, 2024 · 0 comments
Open
1 of 2 tasks

(cli): add option of role to stackExists call #29495

scanlonp opened this issue Mar 14, 2024 · 0 comments
Labels
cli Issues related to the CDK CLI feature-request A feature should be added or improved. p2 package/tools Related to AWS CDK Tools or CLI

Comments

@scanlonp
Copy link
Contributor

Describe the feature

The stackExists call always uses the deploy role. It may be best to allow configuration to use a different role.

Use Case

Least privilege.

Proposed Solution

Pass a role instead of undefined on this line:

const { stackSdk } = await this.prepareSdkFor(options.stack, undefined, Mode.ForReading);
.

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.132.0

Environment details (OS name and version, etc.)

Mac

@scanlonp scanlonp added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Mar 14, 2024
@github-actions github-actions bot added the package/tools Related to AWS CDK Tools or CLI label Mar 14, 2024
@scanlonp scanlonp added cli Issues related to the CDK CLI p2 and removed needs-triage This issue or PR still needs to be triaged. labels Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Issues related to the CDK CLI feature-request A feature should be added or improved. p2 package/tools Related to AWS CDK Tools or CLI
Projects
None yet
Development

No branches or pull requests

1 participant