Making the "more restrictive policy" even more restrictive
parent
82847f7469
commit
970fe28e21
|
@ -53,9 +53,18 @@ If you want to use a much more restrictive AWS policy, use the following:
|
||||||
"Action": [
|
"Action": [
|
||||||
"route53:GetHostedZone",
|
"route53:GetHostedZone",
|
||||||
"route53:ListResourceRecordSets",
|
"route53:ListResourceRecordSets",
|
||||||
"route53:ChangeResourceRecordSets"
|
|
||||||
],
|
],
|
||||||
"Resource": "arn:aws:route53:::hostedzone/hosted zone id"
|
"Resource": "arn:aws:route53:::hostedzone/<ZONE-ID>"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Action": "route53:ChangeResourceRecordSets",
|
||||||
|
"Resource": "arn:aws:route53:::hostedzone/<ZONE-ID>",
|
||||||
|
"Condition": {
|
||||||
|
"ForAllValues:StringEquals": {
|
||||||
|
"route53:ChangeResourceRecordSetsNormalizedRecordNames": "_acme-challenge.<SUB>.<DOMAIN>.<TLD>"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue