Skip to content

Commit

Permalink
Fix cron entry to actually run every 5 minutes and add apply.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Fitzsimmons committed May 20, 2018
1 parent 1f264d9 commit 1001224
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ If everything looks good, you'll want to run `terraform apply -var-file variable

* Windows: https://superuser.com/a/403597/173153 in combination with the provided batch file: [apply.bat](apply.bat)
* TODO: If anyone knows how to make this log somewhere useful on windows, let me know or submit a pull request
* UNIX: Add something like this to your crontab `5 * * * * /home/user/terraform-route53-ddns-updater/apply.sh`
* UNIX: Add something like this to your crontab `*/5 * * * * /home/user/terraform-route53-ddns-updater/apply.sh`
3 changes: 3 additions & 0 deletions apply.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
terraform init -get=true -get-plugins=true -upgrade=true
terraform apply -var-file variables.tfvars.json -auto-approve

0 comments on commit 1001224

Please sign in to comment.