terraform/website
Paul Stack 83dc4d0535 provider/aws: Add Primary Endpoint Address output for (#8385)
`aws_elasticache_replication_group`

Fixes #8377

Now we can output the endpoint of the primary

```
resource "aws_elasticache_replication_group" "bar" {
    replication_group_id = "tf-11111"
    replication_group_description = "test description"
    node_type = "cache.m1.small"
    number_cache_clusters = 2
    port = 6379
    parameter_group_name = "default.redis2.8"
    apply_immediately = true
}

output "primary_endpoint_address" {
  value = "${aws_elasticache_replication_group.bar.primary_endpoint_address}"
}
```

This gives us:

```
% terraform apply
...................
aws_elasticache_replication_group.bar: Creation complete

Apply complete! Resources: 1 added, 0 changed, 0 destroyed.

Outputs:

primary_endpoint_address = tf-11111.d5jx4z.ng.0001.use1.cache.amazonaws.com
```

This was the addition of a computed field only so the basic test still works as expected:

```
% make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSElasticacheReplicationGroup_basic'                        ✹
==> Checking that code complies with gofmt requirements...
/Users/stacko/Code/go/bin/stringer
go generate $(go list ./... | grep -v /terraform/vendor/)
2016/08/22 17:11:13 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSElasticacheReplicationGroup_basic -timeout 120m
=== RUN   TestAccAWSElasticacheReplicationGroup_basic
--- PASS: TestAccAWSElasticacheReplicationGroup_basic (741.71s)
PASS
ok  	github.com/hashicorp/terraform/builtin/providers/aws	741.735s
```
2016-08-23 11:13:26 +01:00
..
.bundle annoucnement bnr 2016-04-11 13:02:15 -05:00
helpers Do matching in sidebar_current via regex or equal sign 2015-05-08 10:40:51 +01:00
scripts Fix website metadata script 2016-04-12 20:09:27 +01:00
source provider/aws: Add Primary Endpoint Address output for (#8385) 2016-08-23 11:13:26 +01:00
Gemfile Fix issues building documentation behind corporate filewall on Windows. 2015-07-09 11:07:45 -04:00
Gemfile.lock add a height to svg in bnr to fix IE bug 2016-05-03 18:37:47 -07:00
LICENSE.md
Makefile fix Makefile 2015-09-24 11:48:52 -07:00
README.md Update README to point to Makefile 2015-09-24 09:57:38 -07:00
Vagrantfile provider/azurerm: Clean up work for base provider 2015-12-15 18:31:02 -05:00
config.rb v0.7.1 2016-08-19 19:58:17 +00:00
config.ru Add Rack::Protection 2015-07-13 12:50:17 -04:00
packer.json Fix website metadata script 2016-04-12 20:09:27 +01: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 make dev.

Then open up http://localhost:4567. Note that some URLs you may need to append ".html" to make them work (in the navigation).