我正在尝试使用 Cloud9 举办 AWS EKS 研讨会,并设置了以下属性:
aws cloud9 describe-environment-memberships --environment-id 23104b5e40ee441ab9cefb8b7f7164dc
{
"memberships": [
{
"permissions": "read-write",
"userId": "AIDATYVU6WKIS6LOM4NXB",
"userArn": "arn:aws:iam::259151278737:user/eks-workshop-gitops",
"environmentId": "23104b5e40ee441ab9cefb8b7f7164dc"
},
{
"permissions": "read-write",
"userId": "AIDATYVU6WKITNU6UKSNC",
"userArn": "arn:aws:iam::259151278737:user/Sandbox_contributor",
"environmentId": "23104b5e40ee441ab9cefb8b7f7164dc"
},
{
"permissions": "owner",
"userId": "AIDATYVU6WKIV2ZOAKKMY",
"userArn": "arn:aws:iam::259151278737:user/it.terraform_user",
"environmentId": "23104b5e40ee441ab9cefb8b7f7164dc"
}
]
}
我的 IAM 位于 Sandbox_contributor 下,如上所示。 我的Cloud9环境状态如下:
aws cloud9 describe-environment-status --environment-id 23104b5e40ee441ab9cefb8b7f7164dc
{
"status": "ready",
"message": "Environment is ready to use."
}
我的cloud9环境的详细状态:
aws cloud9 describe-environments --environment-id 23104b5e40ee441ab9cefb8b7f7164dc
{
"environments": [
{
"id": "23104b5e40ee441ab9cefb8b7f7164dc",
"name": "eks-workshop",
"description": "",
"type": "ec2",
"connectionType": "CONNECT_SSH",
"arn": "arn:aws:cloud9:ap-southeast-1:259151278737:environment:23104b5e40ee441ab9cefb8b7f7164dc",
"ownerArn": "arn:aws:iam::259151278737:user/it.terraform_user",
"lifecycle": {
"status": "CREATED"
},
"managedCredentialsStatus": "DISABLED_BY_DEFAULT"
}
]
}
但是,当我登录 AWS 控制台时,在 Cloud9 资源下,它在权限下仍然显示为无访问,并且我仍然无法打开 IDE,因为它呈灰色。
每个 Cloud9 环境都有一个且唯一的所有者,即环境创建者。您可能使用一个用户/角色创建环境,并尝试使用另一个用户/角色访问它。尝试使用与最终从控制台使用该环境的用户/角色相同的用户/角色来创建环境。