Paul Stack
6eb75cc0e4
Update CHANGELOG.md
2016-05-12 13:51:50 +01:00
Paul Stack
61b5176fbe
provider/aws: Updating state when `aws_sns_topic_subscription` is ( #6629 )
...
missing
Fixes #6625
When an SNS topic subscription was created with TF and then removed via
the AWS Console, Terraform threw an error:
```
* aws_sns_topic_subscription.testme: NotFound: Subscription does not
* exist
status code: 404, request id: a22e7ed7-3630-5a8a-b767-317ac1440e24
```
This PR will remove the topic subscription from state on a NotFound and
will then readd the subscripton
2016-05-12 13:46:22 +01:00
Paul Stack
8229cdbc71
Update CHANGELOG.md
2016-05-11 23:29:50 +01:00
Evan Brown
55742acf12
providers/google: support optionial uuid naming for Instance Template ( #6604 )
...
Auto-generating an Instance Template name (or just its suffix) allows the
create_before_destroy lifecycle option to function correctly on the
Instance Template resource. This in turn allows Instance Group Managers
to be updated without being destroyed.
2016-05-11 22:54:47 +01:00
Paul Stack
2620a78c49
Update CHANGELOG.md
2016-05-11 22:47:11 +01:00
stack72
cb4c8e6864
Merge branch 'Ticketmaster-db_option_group_settings'
2016-05-11 22:44:27 +01:00
stack72
420b24fa90
provider/aws: Fix `aws_db_option_group` `option_settings` test for
...
correct hash value
2016-05-11 22:43:17 +01:00
Mitchell Hashimoto
59a9bcf3dc
terraform: fix compilation with new func call
2016-05-11 13:07:33 -07:00
Mitchell Hashimoto
1c81aa3471
providers/aws: aws_security_group import test
2016-05-11 13:02:37 -07:00
Mitchell Hashimoto
6a675b4a15
helper/resource: ImportState test can verify states
2016-05-11 13:02:37 -07:00
Mitchell Hashimoto
27452f0043
terraform: Module option to Import to add module to graph
2016-05-11 13:02:37 -07:00
Mitchell Hashimoto
ec02c8c0e2
helper/resource: testing of almost all aspects of ImportState tests
2016-05-11 13:02:37 -07:00
Mitchell Hashimoto
2d99c451fb
helper/resource: basic ImportState acceptance testing
...
Still some TODOs, and more test cases to write, but the basics are all
here.
2016-05-11 13:02:37 -07:00
Mitchell Hashimoto
9bd1c9e7ca
helper/resource: reshuffling to prepare for importstate testing
2016-05-11 13:02:37 -07:00
Mitchell Hashimoto
0d1debc0ae
terraform: import verifies the refresh results in non-nil state
...
/cc @jen20
2016-05-11 13:02:36 -07:00
James Nugent
bf8d788489
provider/triton: Import triton_machine resources
2016-05-11 13:02:36 -07:00
James Nugent
03fe5a7467
provider/triton: Import triton_vlan resources
2016-05-11 13:02:36 -07:00
James Nugent
655bb4b286
provider/triton: import triton_firewall_rule
2016-05-11 13:02:36 -07:00
James Nugent
e1e1a08569
provider/triton: support importing triton_key
2016-05-11 13:02:36 -07:00
Mitchell Hashimoto
6bdab07174
providers/aws: security group import imports rules
2016-05-11 13:02:36 -07:00
Mitchell Hashimoto
b728e55861
helper/schema: Resource.Data should set latest schema version
2016-05-11 13:02:36 -07:00
Mitchell Hashimoto
84fa3e5c9e
providers/aws: security group import
2016-05-11 13:02:36 -07:00
Mitchell Hashimoto
b728f8c018
terraform: import state ID should be sent to hook
2016-05-11 13:02:35 -07:00
Mitchell Hashimoto
c02c6c3f9c
helper/schema: default state func for import
2016-05-11 13:02:35 -07:00
Mitchell Hashimoto
ba84485c87
plugin: tests for ImportState
2016-05-11 13:02:35 -07:00
Mitchell Hashimoto
a6b4bb4932
plugin: new API for ImportState
2016-05-11 13:02:35 -07:00
Mitchell Hashimoto
2bb814e3de
helper/schema: adapt to ID being arg to ImportState
2016-05-11 13:02:35 -07:00
Mitchell Hashimoto
d1a81379d0
terraform: use InstanceInfo more appropriately, pass ID to ImportState
2016-05-11 13:02:35 -07:00
Mitchell Hashimoto
f6a59734ef
command: UI for import
2016-05-11 13:02:35 -07:00
Mitchell Hashimoto
126eb23864
terraform: call pre/post import hooks
2016-05-11 13:02:35 -07:00
Mitchell Hashimoto
95b87f5012
terraform: hook methods for pre/post import state
2016-05-11 13:02:34 -07:00
Mitchell Hashimoto
8f201b14f2
terraform: providers should input/config on import
2016-05-11 13:02:34 -07:00
Mitchell Hashimoto
eb9cb46256
providers/aws: enable aws_eip importing
2016-05-11 13:02:34 -07:00
Mitchell Hashimoto
03931bfda9
helper/schema: ImportState must set ID on the resource data
2016-05-11 13:02:34 -07:00
Mitchell Hashimoto
498e23162d
plugin: implement new interface methods
2016-05-11 13:02:34 -07:00
Mitchell Hashimoto
d6c059c43e
command/import: tests passing
2016-05-11 13:02:34 -07:00
Mitchell Hashimoto
3c9a92e04a
command: Context buliding allows empty module trees
2016-05-11 13:02:34 -07:00
Mitchell Hashimoto
182a8a28c0
command/import more wip
2016-05-11 13:02:33 -07:00
Mitchell Hashimoto
ff94381e7e
command/import wip
2016-05-11 13:02:33 -07:00
Mitchell Hashimoto
445194ebdf
helper/schema: test ImportState
2016-05-11 13:02:33 -07:00
Mitchell Hashimoto
33bbf09ff6
terraform: error if import with collision
2016-05-11 13:02:33 -07:00
Mitchell Hashimoto
c814d36333
terraform: handle multiple same named states
2016-05-11 13:02:33 -07:00
Mitchell Hashimoto
cfa58a25a6
terraform: test multiple return values
2016-05-11 13:02:33 -07:00
Mitchell Hashimoto
2ed23778b4
terraform: test importing into a new module with other modules
2016-05-11 13:02:33 -07:00
Mitchell Hashimoto
2738fa7df5
terraform: test importing into an existing module
2016-05-11 13:02:33 -07:00
Mitchell Hashimoto
7fe8b21969
terraform: verify import with missing type doesn't add to state
2016-05-11 13:02:32 -07:00
Mitchell Hashimoto
58fe557a9f
terraform: test that missing type results in error on import
2016-05-11 13:02:32 -07:00
Mitchell Hashimoto
0701c70eae
terraform: test import with module depth of two
2016-05-11 13:02:32 -07:00
Mitchell Hashimoto
492bda5186
terraform: more provider transform tests
2016-05-11 13:02:32 -07:00
Mitchell Hashimoto
0a7f48ab8e
terraform: import module works!
2016-05-11 13:02:32 -07:00