Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2 from azrod/devel
Browse files Browse the repository at this point in the history
FIX crash on start
  • Loading branch information
azrod authored Jan 1, 2022
2 parents 9c2c3a2 + efe551e commit 05a07f9
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ func LoadConfig() (config CFG) {
if _, ok = os.LookupEnv("CLOUDFLARE_RECORD_ZONEID"); ok {
log.Info().Msg("Reading CLOUDFLARE_RECORD_ZONEID from environment variables")
config.Providers.CLOUDFLAREAccount.Record.ZoneID = os.Getenv("CLOUDFLARE_RECORD_ZONEID")
}

// CLOUDFLARE_RECORD_TTL
if _, ok = os.LookupEnv("CLOUDFLARE_RECORD_TTL"); ok {
Expand Down
52 changes: 51 additions & 1 deletion docs/providers/aws.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,53 @@
# AWS Route 53 Provider

## shortly
## Requirements

* AWS Access Key
* Setup IAM policy

## Get AWS Access Key

!!! warning "Warning"

It's recommended to create dedicated user

Select your user in the [AWS console](https://console.aws.amazon.com/iam/home?#security_credential
) and click on the **Access Keys** tab.
Create a new access key and copy the Access Key ID and Secret Access Key.

## Setup IAM policy

Associate the IAM policy with the user.

```json title="IAM POLICY"
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"route53:GetChange",
"route53:GetHostedZone",
"route53:ListResourceRecordSets"
],
"Resource": [
"arn:aws:route53:::hostedzone/*",
"arn:aws:route53:::change/*",
"arn:aws:route53:::trafficpolicy/*"
]
},
{
"Sid": "VisualEditor1",
"Effect": "Allow",
"Action": [
"route53:ListHostedZones",
"route53:GetHostedZoneCount",
"route53:ListHostedZonesByName",
"route53:ChangeResourceRecordSets"
],
"Resource": "*"
}
]
}
```
3 changes: 3 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ markdown_extensions:
emoji_generator: !!python/name:materialx.emoji.to_svg
- pymdownx.highlight:
anchor_linenums: true
- admonition
- pymdownx.details
- pymdownx.superfences

repo_url: https://github.com/azrod/updateip
repo_name: azrod/updateip

0 comments on commit 05a07f9

Please sign in to comment.