servicediscovery:CreatePrivateDnsNamespace is a Write access-level action in the servicediscovery service. Grants permission to create a private namespace based on DNS, which will be visible only inside a specified Amazon VPC
This action does not support resource-level permissions; use "Resource": "*" in your policy.
Keys you can use in the Condition block of a policy that grants servicediscovery:CreatePrivateDnsNamespace.
Filters actions based on the tags that are passed in the request
Filters actions based on the tag keys that are passed in the request
A minimal policy that allows servicediscovery:CreatePrivateDnsNamespace. Replace "Resource": "*" with a specific ARN to follow least privilege.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowServicediscoveryCreatePrivateDnsNamespace",
"Effect": "Allow",
"Action": "servicediscovery:CreatePrivateDnsNamespace",
"Resource": "*"
}
]
}