gpt4 book ai didi

amazon-web-services - AWS : How do I programmatically add a role to an instance?

转载 作者:行者123 更新时间:2023-12-05 09:21:25 26 4
gpt4 key购买 nike

我想向现有(正在运行的?)实例添加一个角色。这可能以编程方式实现吗?

最佳答案

这是不可能的(甚至在 AWS 仪表板中也不行)。您只能在启动实例时添加 IAM 角色

https://aws.amazon.com/iam/faqs/

Q: Can I change the IAM role on a running EC2 instance? No, at this time you cannot change the IAM role on a running EC2 instance. You can change the permissions on the IAM role associated with a running instance, and the updated permissions will take effect almost immediately.

关于amazon-web-services - AWS : How do I programmatically add a role to an instance?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32622909/

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