Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
READMEs are part of the standard module structure [1], and docs like this should make onboarding new contributors easier. The example's etcd ports are from [2,3]. The egress rule is based on [4], although I've restricted it to the VPC. I've also added some defaults, so users who are not interested lower-level settings can ignore them. You can find Container Linux AMIs in [5] if you want to test ec2_ami. I've added a dependency on modules/container_linux to get local container_linux_version support for 'lastest'. Without that, even users setting ec2_ami would need to set a major.minor.patch container_linux_version to avoid hitting: * module.etcd.data.aws_ami.coreos_ami: data.aws_ami.coreos_ami: Your query returned no results. Please change your search criteria and try again. Some of the module variables are just passed through to lower-level providers (e.g. ssh_key is passed through to aws_instance's key_name). That sort of thing is awkward at the moment, because there's no generic way to declare a variable unset (vs. setting it to some sort of zero value). Terraform will grow support for that distinction (via a 'null' value) in 0.12 as part of HCL2 [6,7]. Terraform 0.12 is due out in the next few months [7]. The hcl pretty printing is supported by Linguist [8], which GitHub uses for syntax highlighting [9]. [1]: https://www.terraform.io/docs/modules/create.html#standard-module-structure [2]: https://github.com/coreos/etcd/blob/master/README.md#etcd-tcp-ports [3]: http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.txt [4]: https://www.terraform.io/docs/providers/aws/r/security_group.html#argument-reference [5]: https://coreos.com/os/docs/latest/booting-on-ec2.html [6]: hashicorp/terraform#5471 (comment) [7]: https://www.hashicorp.com/blog/terraform-0-1-2-preview [8]: https://github.com/github/linguist/blob/v6.3.1/lib/linguist/languages.yml#L1723-L1733 [9]: https://help.github.com/articles/creating-and-highlighting-code-blocks/#syntax-highlighting
- Loading branch information