gpt4 book ai didi

amazon-web-services - AWS 信任策略澄清

转载 作者:行者123 更新时间:2023-12-03 07:37:25 24 4
gpt4 key购买 nike

AWS 服务究竟如何采用信任策略。该文档正在融化我的大脑 - 请点击此链接,然后按圈圈点击该链接。

有人可以结束痛苦并告诉我,如果我配置了管理员权限,如何从我的终端强制 AWS 服务采用信任策略。

例如,如果我使用 aws cloudformation deploy args 通过 AWS CLI 更新 CloudFormation 堆栈,如何确保 cloudformation 假定我为其配置的信任策略的权限,而不是我当前使用的直接凭据?

非常感谢

最佳答案

来自AWS CloudFormation Service Role :

To associate a service role with a stack, specify the role when you create the stack.

在管理控制台中或通过 aws cloudformation create-stack 创建堆栈时,您应指定 --role-arn。堆栈上的所有操作都将使用该角色,而不是您自己的凭据。

如果您的堆栈已创建,则可以使用update-stack --role-arn。来自 documentation :

AWS CloudFormation uses the role's credentials to make calls on your behalf. AWS CloudFormation always uses this role for all future operations on the stack.

关于amazon-web-services - AWS 信任策略澄清,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45556993/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com