terraform/builtin/providers
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
..
archive provider/archiver fix test output path breaking other tests (#8291) 2016-08-18 18:11:19 +01:00
atlas Add VersionString 2016-07-21 16:43:49 -04:00
aws provider/aws: Add Primary Endpoint Address output for (#8385) 2016-08-23 11:13:26 +01:00
azure provider/azure: add custom_data argument for azure_instance resource (#8158) 2016-08-14 11:02:49 +01:00
azurerm provider/azurerm: Public IP - Setting idle timeout value caused panic. (#8283) 2016-08-18 14:05:14 +01:00
chef
clc
cloudflare
cloudstack Add project parameter to additional resources (#7828) 2016-07-27 17:30:18 +02:00
cobbler
consul Adds consul_prepared_query resource (#7474) 2016-08-18 08:46:30 +01:00
datadog Add Import support for provider-datadog (#8324) 2016-08-22 05:55:26 +02:00
digitalocean provider/digitalocean: Enforce Lowercase on IPV6 Addresses (#7652) 2016-08-15 15:52:48 +01:00
dme
dnsimple
docker provider/docker: Added docker_registry_image data source (#7000) 2016-07-26 16:18:38 +01:00
dyn
fastly Added tests. 2016-08-09 14:42:19 +02:00
github
google provider/google: Remove redundant type declaration 2016-08-23 10:40:33 +02:00
grafana
heroku
influxdb Improve influxdb provider (#7333) 2016-08-05 16:27:03 +10:00
librato
logentries provider/logentries: Implementing logentries provider (#7067) 2016-07-12 14:14:39 +01:00
mailgun
mysql mysql_user pre-5.7.6 compat (GH-8230) 2016-08-17 14:38:33 +02:00
null
openstack Merge pull request #8257 from FedericoCeratto/allowed_address_pairs 2016-08-22 20:06:33 -06:00
packet provider/packet: Restructure the Packet Volume test to no longer rely on environment variables 2016-08-15 08:38:43 +01:00
postgresql
powerdns provider/powerdns: Add support for PowerDNS 4 API (#7819) 2016-07-28 17:01:06 +01:00
random
rundeck
scaleway provider/scaleway: Expose IPv6 support, improve documentation (#7784) 2016-07-25 12:49:09 +01:00
softlayer
statuscake
template Fix improper wait group usage in test 2016-08-04 11:20:11 -04:00
terraform provider/template: convert resources to data sources 2016-07-08 17:11:17 +01:00
test terraform: another set of ignore_changes fixes 2016-07-08 16:48:23 -05:00
tls
triton Merge branch 'b-triton-dot-in-tags' of https://github.com/zeroae/terraform into zeroae-b-triton-dot-in-tags 2016-07-12 15:06:47 -06:00
ultradns
vcd
vsphere Standardizing datastore references to use builting Path func (#8075) 2016-08-16 08:58:22 +01:00