opentofu/website/source
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
..
assets website: Add archive provider to sidebar and css 2016-08-22 05:30:37 +02:00
docs provider/aws: Add Primary Endpoint Address output for (#8385) 2016-08-23 11:13:26 +01:00
intro Merge pull request #7964 from szollo/master 2016-08-22 05:39:11 +02:00
layouts Merge #8353: New resources for custom domains on AWS API Gateway 2016-08-22 15:44:52 -07:00
upgrade-guides fix small typo (#8175) 2016-08-14 16:38:00 +01:00
.gitignore website: initial commit 2014-07-16 17:51:48 -04:00
404.html.erb Update 404 page 2015-09-19 17:42:33 +01:00
community.html.erb website: fix community page typo 2016-08-02 20:00:02 -05:00
downloads.html.erb docs/website: Linking the downloads page to the upgrade guide for 0.7 (#7913) 2016-08-03 05:06:44 +10:00
index.html.erb provider/aws: Update docs with t1 instance for accounts with EC2 Classic 2015-12-21 10:00:34 -06:00
robots.txt Add robots.txt 2014-10-21 23:20:26 -04:00
sitemap.xml.builder Add sitemap 2014-10-21 23:20:21 -04:00