terraform/website
Martin Atkins 4ae3a17eab aws_elasticache_subnet_group normalizes name to lowercase.
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.
2015-09-03 10:03:35 -07:00
..
helpers Do matching in sidebar_current via regex or equal sign 2015-05-08 10:40:51 +01:00
source aws_elasticache_subnet_group normalizes name to lowercase. 2015-09-03 10:03:35 -07:00
.buildpacks website: initial commit 2014-07-16 17:51:48 -04:00
Gemfile Fix issues building documentation behind corporate filewall on Windows. 2015-07-09 11:07:45 -04:00
Gemfile.lock providers/aws: Update Launch Config. docs to detail naming and lifecycle recommendation 2015-08-12 11:00:05 -05:00
LICENSE.md website: initial commit 2014-07-16 17:51:48 -04:00
Procfile website: initial commit 2014-07-16 17:51:48 -04:00
README.md docs: clarify ruby deps for local website dev 2015-05-04 14:51:24 -05:00
Vagrantfile Fix issues building documentation behind corporate filewall on Windows. 2015-07-09 11:07:45 -04:00
config.rb Update to newest middleman-hashicorp 2015-05-15 16:11:52 -04:00
config.ru Add Rack::Protection 2015-07-13 12:50:17 -04:00

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).