1 個回答
- 最新
- 最多得票
- 最多評論
0
The steps to do this in the AWS Console are at https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_manage-attach-detach.html#remove-policies-console
With the AWS CLI use aws iam delete-role-policy --role-name [my_role] --policy-name [my_inline_policy]
https://docs.aws.amazon.com/cli/latest/reference/iam/delete-role-policy.html
相關內容
- 已提問 7 個月前
- AWS 官方已更新 1 年前
- AWS 官方已更新 2 年前
- AWS 官方已更新 1 年前
But as per my understanding the inline policy doesn't exists outside a role, so how can we do that?
In AWS Console create MyTestRole, with a managed policy (EC2 Full Access) and an inline policy.
Delete the inline policy:
Back on the AWS Console the role only has the managed policy, and no inline policy any more.
yeah maybe its correct if the role exists. But in my case the policy itself can't be opened, it just popped in the notification that this policy is effected to which no role is attached.
OK, so there's an inline policy that is not embedded within any user/group/role, but yet still exists.
Is it definitely inline policy, and not a customer-managed policy ?
What is the output of
aws iam list-policies --scope=Local