Ant*_*ong 7 amazon-web-services terraform terraform-provider-aws
由于超时问题,terraform 无法创建 ec2 实例。
为了从中恢复,我已从 aws 控制台手动删除了 ec2 实例以及 terraform 状态文件。
然而现在它试图重新创建
+ aws_iam_instance_profile.server
id: <computed>
arn: <computed>
create_date: <computed>
name: "server-profile"
path: "/"
role: "server-role"
roles.#: <computed>
unique_id: <computed>
Run Code Online (Sandbox Code Playgroud)
因此我想在 aws 控制台中找到它并将其删除。然而我不知道在哪里可以找到它。
我可以在哪里找到aws_iam_instance_profile.server?
我在控制台的 IAM 部分找不到实例配置文件,如 Slushysnowman 所述。
这解决了我的问题:
aws iam delete-instance-profile --instance-profile-name 'your-profile-name'
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
8884 次 |
| 最近记录: |