Effect (Effect) is a required element of every policy declaration, including whether the effect of this permission declaration is allowed (Allow) or explicitly denied (Deny). Note: Deny has a higher priority than Allow. When the identity has Deny permission for some operations, the Allow permission granted to these operations again will not take effect. You need to remove or change the corresponding Deny declaration to Allow. For example, the following strategy still results in rejection:
{ "Statement": [ { "Effect": "Deny", "Action": [ "vpc:TagResources" ], "Resource": [ "*" ] }, { "Effect": "Allow", "Action": [ "vpc:TagResources" ], "Resource": [ "*" ] } ] }
When an identity is assigned the following two strategies, the final effect is still rejection.
{ "Statement": [ { "Effect": "Deny", "Action": [ "vpc:TagResources" ], "Resource": [ "*" ] } ] }
{ "Statement": [ { "Effect": "Allow", "Action": [ "vpc:TagResources" ], "Resource": [ "*" ] } ] }