Managing Consul's KV Store
Demo to accompany this blog post on Managing AppSettings in Consul.
To run this script:
consul agent -dev
terraform init terraform apply
You can verify the values are written correctly to the KeyValue store by checking the consul UI (http://localhost:8500). Try creating another config file for a different environment and specifying the environment variable on the CLI:
terraform apply -var environment=prod