-
Notifications
You must be signed in to change notification settings - Fork 4k
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
cdk cli: removing trust, needs --untrust
flag and a clarification that this is safe
#22703
Comments
Thanks for reporting this @microblag, this is an interesting problem. As far as I can tell, there's no officially supported method to remove a trust relationship from a bootstrap stack. You can normally adjust the trust relationship by redeploying with We should provide a cleaner option to remove the trust option, and also document this option so that users don't have to pass in a comma. Thanks again for reporting this! |
Are you sure that is true, and did you test this? Because that doesn't sound like an API I would design 😬.
|
A |
--untrust
flag and a clarification that this is safe
@rix0rrr I did test this! Though I think that's more a general CLI quirk than something that was intentionally designed for this project? |
I'm inferring that rico wanted me to verify if
And it did in fact create the stack so yeah, that works. We probably should still do |
Comments on closed issues and PRs are hard for our team to see. |
1 similar comment
Comments on closed issues and PRs are hard for our team to see. |
Add a new option, `--untrust`, to the `bootstrap` command. Passing a list of account IDs as values to this option removes those account IDs from the trust relationships in the bootstrap roles. Closes #22703. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* (cherry picked from commit 4713bdd)
Add a new option, `--untrust`, to the `bootstrap` command. Passing a list of account IDs as values to this option removes those account IDs from the trust relationships in the bootstrap roles. Closes #22703. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* (cherry picked from commit 4713bdd)
Add a new option, `--untrust`, to the `bootstrap` command. Passing a list of account IDs as values to this option removes those account IDs from the trust relationships in the bootstrap roles. Closes #22703. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* (cherry picked from commit 4713bdd)
Add a new option, `--untrust`, to the `bootstrap` command. Passing a list of account IDs as values to this option removes those account IDs from the trust relationships in the bootstrap roles. Closes #22703. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* (cherry picked from commit 4713bdd)
Add a new option, `--untrust`, to the `bootstrap` command. Passing a list of account IDs as values to this option removes those account IDs from the trust relationships in the bootstrap roles. Closes #22703. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* (cherry picked from commit 4713bdd)
Describe the issue
I've had a look through the docs, and asked in the discussion section #22067 but unfortunatly didn't get an answer. I'm trying to find out how to remove a trust relationship from one account to another and if it's safe to do this with existing stacks that were using that trust relationship.
I assume editing the parameter in the cloudformation template for the bootstrap would remove the trust relationship but as this is a very manual type of thing to do I'm concerned what the implications might be.
Some documentation of either how to do this (if it's safe/possible) and the ramifications of doing so. Or alternativly, some documentation on this not being possilbe/safe as a caveat to the --trust docs so that users can be aware this is a non-reversable action.
Links
https://docs.aws.amazon.com/cdk/v2/guide/bootstrapping.html
The text was updated successfully, but these errors were encountered: