mirror of
https://github.com/coredns/coredns.git
synced 2025-11-16 17:02:16 -05:00
plugin/route53: Configurable AWS Endpoint (#4963)
Provide the ability to configure the AWS endpoint Signed-off-by: Matthew Palmer <matthew.palmer@helpsystems.com>
This commit is contained in:
@@ -16,6 +16,7 @@ The route53 plugin can be used when coredns is deployed on AWS or elsewhere.
|
||||
~~~ txt
|
||||
route53 [ZONE:HOSTED_ZONE_ID...] {
|
||||
aws_access_key [AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY]
|
||||
aws_endpoint ENDPOINT
|
||||
credentials PROFILE [FILENAME]
|
||||
fallthrough [ZONES...]
|
||||
refresh DURATION
|
||||
@@ -34,6 +35,9 @@ route53 [ZONE:HOSTED_ZONE_ID...] {
|
||||
AWS credentials the same way as AWS CLI, e.g., environmental variables, AWS credentials file,
|
||||
instance profile credentials, etc.
|
||||
|
||||
* `aws_endpoint` can be used to control the endpoint to use when querying AWS (optional). **ENDPOINT** is the
|
||||
URL of the endpoint to use. If this is not provided the default AWS endpoint resolution will occur.
|
||||
|
||||
* `credentials` is used for reading the credential **FILENAME** and setting the **PROFILE** name for a given
|
||||
zone. **PROFILE** is the AWS account profile name. Defaults to `default`. **FILENAME** is the
|
||||
AWS credentials filename, defaults to `~/.aws/credentials`.
|
||||
@@ -75,6 +79,16 @@ example.org {
|
||||
}
|
||||
~~~
|
||||
|
||||
Enable route53 with an explicit AWS endpoint:
|
||||
|
||||
~~~ txt
|
||||
example.org {
|
||||
route53 example.org.:Z1Z2Z3Z4DZ5Z6Z7 {
|
||||
aws_endpoint https://test.us-west-2.amazonaws.com
|
||||
}
|
||||
}
|
||||
~~~
|
||||
|
||||
Enable route53 with fallthrough:
|
||||
|
||||
~~~ txt
|
||||
|
||||
Reference in New Issue
Block a user