2 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
Hi,
if you add
"tag:GetResources"
The Resource Group will get displayed without any errors.
Here is the full policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "ResourceGroupList",
"Effect": "Allow",
"Action": [
"resource-groups:ListGroupResources",
"resource-groups:ListGroups",
"resource-groups:GetGroupQuery",
"resource-groups:GetTags",
"tag:GetResources"
],
"Resource": "*"
},
{
"Sid": "ResourceGroupView",
"Effect": "Allow",
"Action": [
"resource-groups:GetGroup",
"resource-groups:SearchResources"
],
"Resource": "*",
"Condition": {
"StringEqualsIgnoreCase": {
"aws:ResourceTag/cs-namespace": "test1"
}
}
}
]
}
Hope this helps!
-randy
répondu il y a 5 ans
0
Thanks Randy,
I managed to achieve my goal with your help.
Here's my final policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "ResourceGroupList",
"Effect": "Allow",
"Action": [
"resource-groups:ListGroups",
"tag:GetResources"
],
"Resource": "*"
},
{
"Sid": "ResourceGroupView",
"Effect": "Allow",
"Action": [
"resource-groups:ListGroupResources",
"resource-groups:GetGroup",
"resource-groups:SearchResources",
"resource-groups:GetGroupQuery",
"resource-groups:GetTags"
],
"Resource": "*",
"Condition": {
"StringEqualsIgnoreCase": {
"aws:ResourceTag/cs-namespace": "test1"
}
}
}
]
}
Cheers.
répondu il y a 5 ans
Contenus pertinents
- demandé il y a un an
- demandé il y a 7 mois
- demandé il y a 2 mois
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a 2 ans