terraform/builtin/providers
Paul Stack b5b53bc56a provider/aws: Error on trying to recreate an existing customer gateway (#12501)
Fixes: #7492

When we use the same IP Address, BGP ASN and VPN Type as an existing
aws_customer_gateway, terraform will take control of that gateway (not
import it!) and try and modify it. This could be very bad

There is a warning on the AWS documentation that one gateway of the same
parameters can be created, Terraform is now going to error if a gateway
of the same parameters is attempted to be created

```
% make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSCustomerGateway_'
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2017/03/07 18:40:39 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSCustomerGateway_ -timeout 120m
=== RUN   TestAccAWSCustomerGateway_importBasic
--- PASS: TestAccAWSCustomerGateway_importBasic (31.11s)
=== RUN   TestAccAWSCustomerGateway_basic
--- PASS: TestAccAWSCustomerGateway_basic (68.72s)
=== RUN   TestAccAWSCustomerGateway_similarAlreadyExists
--- PASS: TestAccAWSCustomerGateway_similarAlreadyExists (35.18s)
=== RUN   TestAccAWSCustomerGateway_disappears
--- PASS: TestAccAWSCustomerGateway_disappears (25.13s)
PASS
ok  	github.com/hashicorp/terraform/builtin/providers/aws	160.172s
```
2017-03-08 21:11:59 +02:00
..
alicloud
archive
arukas
atlas
aws provider/aws: Error on trying to recreate an existing customer gateway (#12501) 2017-03-08 21:11:59 +02:00
azure
azurerm Bug Fix: Terraform crashes during azurerm_container_service provisioning (#12516) 2017-03-08 17:25:51 +02:00
bitbucket
chef
clc
cloudflare
cloudstack
cobbler provider/cobbler: Profile and System Fixes (#12452) 2017-03-06 13:19:30 +02:00
consul Remove the AWS Access Key and Secret Access keys from the (#12061) 2017-02-17 13:36:38 -08:00
datadog provider/datadog: Update to datadog_monitor still used d.GetOk (#12497) 2017-03-07 16:36:37 +02:00
digitalocean provider/digitalocean: Add support for LoadBalancers (#12077) 2017-02-23 23:41:20 +02:00
dme
dns
dnsimple Upgrade DNSimple provider to API v2 (#10760) 2017-03-02 05:12:34 +00:00
docker provider/docker: added support for linux capabilities (#12045) 2017-03-07 18:48:20 +02:00
dyn add Mutex so that we only do one Dyn operation at a time (extra thanks to @daveadams) 2015-09-21 10:01:32 -04:00
external
fastly provider/fastly Adds fastly response object (#12032) 2017-02-17 10:36:05 -06:00
github
google providers/google : google_compute_disk.go : Minor correction : "Deleting disk" message in Delete method (#12521) 2017-03-08 17:34:49 +02:00
grafana
heroku
icinga2
ignition provider/ignition: migration from resources to data resources (#11851) 2017-03-06 14:23:04 +02:00
influxdb
librato
logentries
mailgun
mysql mysql: Avoid crash on un-interpolated provider cfg (#12391) 2017-03-05 15:58:15 +02:00
newrelic
nomad
ns1 provider/ns1: Add notify list resource (#12373) 2017-03-05 16:21:06 +02:00
null
openstack provider/openstack: Add openstack_networking_network_v2 datasource (#12304) 2017-03-06 13:25:08 +02:00
opsgenie
packet
pagerduty provider/pagerduty: Updated implementation of pagerduty_vendor & pagerduty_service_integration (#12357) 2017-03-01 23:59:16 +00:00
postgresql
powerdns
profitbricks Acceptance tests volume password change (#12356) 2017-03-01 23:05:11 +00:00
rabbitmq
rancher
random Add a prefix option to random_id provider 2017-02-16 11:08:17 -05:00
rundeck
scaleway
softlayer
spotinst provider/spotinst: Disallow passing an empty user_data string (#12179) 2017-02-22 23:25:03 +02:00
statuscake provider/statuscake: use default status code list when updating test (#12375) 2017-03-05 15:44:22 +02:00
template
terraform update the remote state datasource 2017-02-28 16:35:46 -05:00
test flatmap: mark computed list as a computed value in Expand 2017-02-23 10:03:59 -08:00
tls
triton
ultradns
vault
vcd
vsphere