Michał Guminiak
dc67b043fa
Avoid panics when DBName is not set
...
provider/aws: The DBName in RDS instance is optional and when
not set, the Read function return null.
2015-04-01 14:43:05 +02:00
Paul Hinze
bc1baa8712
providers/aws: final_snapshot_id isn't ForceNew
...
Removing `ForceNew` from `final_snapshot_identifier` - it's a parameter
that's _only_ passed during the DeleteDBInstance API call, so it's perfectly
valid to change the attribute for an existing DB Instance.
fixes #1138
2015-03-05 19:07:41 -06:00
Radek Simko
c616c83a21
Let aws_db_instance.*.address to be actually address
2015-03-05 18:15:30 +00:00
Alex Ianchici
916c64b166
adding storage_encrypted as an optional boolean parameter to support encryption at rest in AWS
2015-02-27 14:29:24 -08:00
Jack Pearkes
6f27f90ae1
providers/aws: increase db instance wait times
2015-02-27 09:38:07 -08:00
Clint
0adb052c11
provider/aws: Remove goamz/rds
...
consolidates the conversion of AWS RDS to aws-sdk-go
2015-02-27 10:54:37 -06:00
Clint Shryock
f3ba181861
Swap awslabs/aws-sdk-go for hashicorp fork
...
A temporary change to prevent upstream break while awslabs continues to
refactor.
2015-02-25 15:29:11 -06:00
Clint Shryock
31236b8f9e
Fix zero case
2015-02-25 11:05:14 -06:00
Clint Shryock
5252623656
provider/aws: Remove sentinel value default for RDS instance; default 1 to match API
2015-02-25 10:44:10 -06:00
Clint Shryock
bb94eaa50d
provider/aws: Fix issue with AWS RDS DB instance which prevented disabling backups
2015-02-25 09:41:05 -06:00
Clint Shryock
d79b0d7fd1
provider/aws: Convert AWS DB Instance over to awslabs/aws-sdk-go
...
- Remove check on password for AWS RDS Instance
- Update documentation on AWS RDS Instance regarding DB Security Groups
- Change error handling to check error code from AWS API [ci skip]
2015-02-24 16:51:47 -06:00
Phil Frost
bfaf8ccee6
Support storage_type parameter for aws_db_instance
...
This allows provisioning "gp2" (general purpose SSD) storage for DB
instances.
2015-01-30 13:01:10 -05:00
Phil Frost
254b25a64f
Fix aws_db_instance to not recreate each time
...
Several of the arguments were optional, and if omitted, they are
calculated. Mark them as such in the schema to avoid triggering an
update.
Go back to storing the password in the state file. Without doing so,
there's no way for Terraform to know the password has changed. It should
be hashed, but then interpolating the password yields a hash instead of
the password.
Make the `name` parameter optional. It's not required in any engine, and
in some (MS SQL Server) it's not allowed at all.
Drop the `skip_final_snapshot` argument. If `final_snapshot_identifier`
isn't specified, then don't make a final snapshot. As things were, it
was possible to create a resource with neither of these arguments
specified which would later fail when it was to be deleted since the RDS
API requires exactly one of the two.
Resolves issue #689 .
2015-01-28 12:03:26 -05:00
Sander van Harmelen
0725486e89
Refactored the last two resources
2014-11-24 14:04:48 +01:00
Sander van Harmelen
eccd5ad308
Refactored about 90%
...
Still need to update 2 resources and check the acceptance tests, but
overall we’re nearly there 😃
2014-11-21 17:58:34 +01:00
Rob Costanzo
16b4dd44c1
Upped the RDS instance creation/destroy timeout to 20 minutes as it regularly takes 12+ minutes to create
2014-11-05 11:03:06 -08:00
Rob Costanzo
a14da63a39
Fixed bug with final_snapshot_identifier and skip_final_snapshot and removed apply_method as an option for now and am only supporting immediate mode
2014-11-05 11:03:06 -08:00
Rob Costanzo
de16b10555
Added new aws_db_parameter_group resource for creating RDS DB Parameter Groups.
...
Added plumbing to allow an optional DBParameterGroupName to be passed when creating an RDS DB instance.
2014-11-05 11:03:06 -08:00
Mitchell Hashimoto
6ddcc2ebf8
Merge pull request #309 from alekstorm/aws-db-instance-password
...
Store aws_db_instance.password in tfstate, change to AttrTypeCreate
2014-10-11 12:34:52 -07:00
Mitchell Hashimoto
d8c1ee655c
Merge pull request #308 from alekstorm/aws-db-instance-db-subnet-group-name
...
Rename aws_db_instance.subnet_group_name to db_subnet_group_name
2014-10-11 12:33:58 -07:00
Mitchell Hashimoto
35065fc8c8
providers/aws: properly report errors if DB instance destroy fails
...
[GH-310]
2014-10-11 11:02:11 -07:00
Mitchell Hashimoto
452cc07ce8
Merge pull request #307 from alekstorm/aws-db-instance-gone
...
providers/aws: don't error out when RDS DB instance disappears
2014-09-30 13:28:24 -07:00
Mitchell Hashimoto
166847d5dc
Merge branch 'f-state'
...
Conflicts:
builtin/providers/aws/resource_aws_subnet.go
2014-09-22 08:55:44 -07:00
Alek Storm
c7f219a781
Store aws_db_instance.password in tfstate, change to AttrTypeCreate
2014-09-18 13:55:43 -07:00
Alek Storm
f928829a1c
Don't error out when RDS DB instance disappears
2014-09-18 13:25:30 -07:00
Alek Storm
5b806f0737
Rename aws_db_instance.subnet_group_name to db_subnet_group_name
2014-09-18 13:19:24 -07:00
Mitchell Hashimoto
9b2b3a963f
ResourceDiff => InstanceDiff
2014-09-17 16:33:24 -07:00
Mitchell Hashimoto
c5d6df692d
providers/aws: tests passing, compiles
2014-09-16 17:49:24 -07:00
Eric Buth
4cd11e4091
AWS DB Subnet Group resource and testing
2014-09-15 14:58:04 -04:00
Mitchell Hashimoto
56cf1e6faa
Fix go vet complaints
2014-08-24 21:50:35 -07:00
Hector Castro
f869a077a2
Fix output of aws_db_instance port via endpoint
...
When trying to output the `endpoint` attribute of an `aws_db_instance`,
the port was not being emitted properly. Converting the port number from
an integer to a string has resolved the issue.
2014-08-01 17:13:26 -04:00
Jack Pearkes
e07dc8891d
providers/aws: db instance wait for destroy, allow destroy config
2014-07-31 15:22:14 -04:00
Jack Pearkes
0ca0b8dd62
providers/aws: remove password from resource diff to not trigger changes
...
cc/ @mitchellh
This one caught me a bit, and I'm not sure if there's another AttrType
that could be useful here – perhaps a AttrTypeHidden or something? I
don't know...this feels sloppy to have in the diff func.
2014-07-31 09:39:19 -04:00
Jack Pearkes
9a2685cf13
providers/aws: db instances now depend on db security groups
2014-07-31 09:28:25 -04:00
Jack Pearkes
60ed50b4b6
providers/aws: allow "modifying" as pending state for db instances
...
fixes #119
2014-07-30 11:58:11 -04:00
John Wards
7493ee31cb
Stop passing engine into EngineVersion
...
Fixes #95
2014-07-30 16:44:02 +01:00
Jack Pearkes
b924151914
rds: add attribute checks
2014-07-22 22:54:18 -04:00
Jack Pearkes
4da83b9eca
providers/aws: db sec group
2014-07-22 22:23:09 -04:00
Jack Pearkes
dde83f7cdd
providers/aws: slow down the wait for state for dbinstance
2014-07-22 18:45:59 -04:00
Jack Pearkes
2f26ac97c2
providers/aws: add rds
2014-07-22 16:26:58 -04:00