mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-01-11 01:47:53 +08:00
ROUTE53: Documentation for AWS Token PR (#403)
* Update route53Provider.go * includes optional Token * Appended Token and additional information for
This commit is contained in:
parent
e616cd7979
commit
734170013c
2 changed files with 14 additions and 2 deletions
|
@ -12,7 +12,8 @@ You can specify the API credentials in the credentials json file:
|
|||
{
|
||||
"r53_main":{
|
||||
"KeyId": "your-aws-key",
|
||||
"SecretKey": "your-aws-secret-key"
|
||||
"SecretKey": "your-aws-secret-key",
|
||||
"Token": "optional-sts-token"
|
||||
}
|
||||
}
|
||||
{% endhighlight %}
|
||||
|
@ -22,8 +23,18 @@ You can also use environment variables, but this is discouraged, unless your env
|
|||
```
|
||||
$ export AWS_ACCESS_KEY_ID=XXXXXXXXX
|
||||
$ export AWS_SECRET_ACCESS_KEY=YYYYYYYYY
|
||||
$ export AWS_SESSION_TOKEN=ZZZZZZZZ
|
||||
```
|
||||
|
||||
{% highlight json %}
|
||||
{
|
||||
"r53_main":{
|
||||
"KeyId": "$AWS_ACCESS_KEY_ID",
|
||||
"SecretKey": "$AWS_SECRET_ACCESS_KEY"
|
||||
}
|
||||
}
|
||||
{% endhighlight %}
|
||||
|
||||
You can find some other ways to authenticate to Route53 in the [go sdk configuration](https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html).
|
||||
|
||||
## Metadata
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
},
|
||||
"r53_ACCOUNTNAME": {
|
||||
"KeyId": "change_to_your_keyid",
|
||||
"SecretKey": "change_to_your_secretkey"
|
||||
"SecretKey": "change_to_your_secretkey",
|
||||
"Token": "optional_sts_token"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue