Releases: BashtonLtd/terraform-gcebashtonsql
Terraform Compatability Update
New binary builds to introduce compatibility with 0.10 and 0.11 versions of Terraform. Versions from 0.7 - 0.11 are now included.
Add database instance import capability
An existing database can now be imported into the Terraform state file. For example:
terraform import gcebashtonsql_sql_database_instance local_name instance_name
where local_name
is the name in the Terraform file and instance_name
is the name of the database instance in Google.
Add maintenance window timing support
Hidden in the API is update_track
which maps to the console "Maintenance timing". Valid values (found through experimentation and not documentation) are canary
(console: Earlier) and stable
(console: Later).
Update: Tarball now contains binaries compatible with v0.7 and v0.8 of Terraform
Add maintenance_window support
This version adds the ability to specify a maintenance window:
settings {
maintenance_window {
day = 7
hour = 23
}
}
Fix "Invalid instance property" error
The error occurs when an update is specified that includes a disk size smaller than the current disk size. Unhelpfully Google returns the exceptionally vague: googleapi: Error 400: Invalid instance property
Prevent attempted downsize
Terraform wants to attempt to decrease the size of Cloud SQL disks if the disks have grown in the cloud, we ignore the returned read so that there is no change planned.
Support for disk specification
With this version you can now specify the following parameters:
disk_size
- The size of the underlying disk in GB, minimum 10 (also the default)disk_type
- The type of the disk, defaultpd-ssd
disk_autoresize
- Allows automatic growth of the underlying disk, defaultfalse
v0.1
Standalone Terraform provider plugin with the follow fixes for Cloud SQL:
- Correct handling of
master_instance_name
so that slaves aren't rebuilt every run authorized_networks
specified as a list of strings (instead of maps) which allows use in modules