1 Respuesta
- Más nuevo
- Más votos
- Más comentarios
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
Contenido relevante
- OFICIAL DE AWSActualizada hace 2 años
- OFICIAL DE AWSActualizada hace un año
- OFICIAL DE AWSActualizada hace un año
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