4ae3a17eab
The Elasticache API accepts a mixed-case subnet name on create, but normalizes it to lowercase before storing it. When retrieving a subnet, the name is treated as case-sensitive, so the lowercase version must be used. Given that case within subnet names is not significant, the new StateFunc on the name attribute causes the state to reflect the lowercase version that the API uses, and changes in case alone will not show as a diff. Given that we must look up subnet names in lower case, we set the instance id to be a lowercase version of the user's provided name. This then allows a later Refresh call to succeed even if the user provided a mixed-case name. Previously users could work around this by just avoiding putting uppercase letters in the name, but that is often inconvenient if e.g. the name is being constructed from variables defined elsewhere that may already have uppercase letters present. |
||
---|---|---|
.. | ||
helpers | ||
source | ||
.buildpacks | ||
Gemfile | ||
Gemfile.lock | ||
LICENSE.md | ||
Procfile | ||
README.md | ||
Vagrantfile | ||
config.rb | ||
config.ru |
README.md
Terraform Website
This subdirectory contains the entire source for the Terraform Website. This is a Middleman project, which builds a static site from these source files.
Contributions Welcome
If you find a typo or you feel like you can improve the HTML, CSS, or JavaScript, we welcome contributions. Feel free to open issues or pull requests like any normal GitHub project, and we'll merge it in.
Running the Site Locally
Running the site locally is simple. First you need a working copy of Ruby >= 2.0 and Bundler. Then you can clone this repo and run the following commands from this directory:
$ bundle
# ( installs all gem dependencies )
$ bundle exec middleman server
# ( boots the local server )
Then open up http://localhost:4567
. Note that some URLs you may need to append
".html" to make them work (in the navigation).