All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Added missing import.sh files to resource docs to better indicate support of the Import command.
-
Remove unnecessary api call to Folders endpoint to manually validate
cockroach_cluster.parent_id
. -
Allow removal (deletion) of locked clusters. The api now supports deletion of locked clusters so we remove the wait prior to following through with the deletion.
-
Added support for authentication via JWT.
-
Setting and fetching of
cidr_range
is now available for GCP Advanced tier clusters. -
Management of cluster backup settings is now supported using the
backup_config
attribute on thecockroach_cluster
resource. For more information, refer to Cluster Backups.
- Added support for skipping Innovation Releases when upgrading dedicated clusters.
- Clarify cluster.private_network_visibility attribute documentation.
- Replaced
api_oidc_config
withjwt_issuer
resource
upgrade_type
was added as an attribute for serverless clusters.- New
STANDARD
clusters with provisioned serverless capacity. - Ability to upgrade from
BASIC
plan toSTANDARD
plan.
- Renamed
SERVERLESS
plan type toBASIC
. - Renamed
DEDICATED
plan type toADVANCED
.
- Fixed error when the primary attribute was specified in multiple regions, even when false in all but one region.
- Deprecated support for
spend_limit
attribute inserverless
config. Users can instead enforce resource limits withusage_limits
.
- Updated to version 2.0.1 of cockroach-cloud-sdk-go
- Added warning about using private endpoints with old versions.
-
Update the user_role_grants resource docs to indicate the requirement of ORG_MEMBER.
-
Fixed private_endpoint_connection documentation issues
-
Enable log export for serverless clusters.
-
Add services_map to private_endpoint_services resource.
-
Update docs for allowlist resource to clear up with cidr_mask is
-
Realign variables used in the cockroach_dedicated_cluster with the README
-
Removed mention of Limited Access for Azure clusters in README
-
Added some example values for clarity in README
-
Fix bug when reading
cockroach_private_endpoint_services.#.aws.service_name
.
-
Pinned version of go-releaser to version 1
-
Fixed apply churn when the optional name attribute in the allowlist resource was not included.
- New
cockroach_metric_export_prometheus_config
resource allows user to configure prometheus metric export integration in AWS and GCP cloud providers.
-
The cockroach_api_key resource was added.
-
The cockroach_service_account resource was added.
-
Added
delete_protection
to the Cluster resource and data source. When set to true, attempts to delete the cluster will fail. Set to false to disable delete protection.
- No changes.
- Added
private_endpoint_connection
examples for AWS, Azure, GCP.
- Added any missing examples for data sources, resources and imports.
-
The cockroach_folder data source was added.
-
The
user_role_grant
resource was added to allow management of a single role grant. This resource will not affect other role grants. See user_role_grants for more information.
-
The
private_endpoint_connection
resource can now be used to create private endpoint connections on every supported cloud-provider and cluster type, except Serverless clusters on Azure as that configuration is not yet available. -
Migrated the testing framework to https://github.com/hashicorp/terraform-plugin-testing.
-
The
private_endpoint_services
resource can now be used to create private endpoint services on every supported cloud provider. -
Use CockroachDB v23.1 and v23.2 in tests.
-
The
private_endpoint_services
resource could be created without populating the state file with the service information. -
Renamed example files to the correct name so they are automatically included in the docs.
- Allow the logging of requests to the cloud SDK by setting either TF_LOG or TF_LOG_PROVIDER envvars to either DEBUG or TRACE.
- Fixed a nil pointer exception which could occur while retrying a certain class of api failures.
- Fixed a bug where the
log_export_config
would sometimes fail to detect changes to the group levelredact
field due to it being declared as acomputed
field.
- New api_oidc_config resource allows users to configure an external JWT signer for API tokens. JWT API tokens are in limited access.
- New cockroach_private_endpoint_connection resource allows users to configure trusted owner entries for private endpoints.
- New folder resource and the new
parent_id
for clusters support users managing nested resources. Folders is in limited access.
- The CockroachDB Cloud Terraform Provider is now generally available with semantic versioning compatibility promises.
- connection_params field on the connection_string data source is now an object instead of a string map.
- Fixed an issue where changing
num_virtual_cpus
on acockroach_cluster
resource would fail to scale the cluster and would result in an inconsistent state error. - Added validation to prevent multiple serverless regions from being marked as "primary", which could result in an inconsistent state error.
- Fixed "not a valid value" errors that occurred when reading recently added enum values, such as cluster status.
- New cockroach_version_deferral resource allows users to defer automated minor version upgrades by a fix 60-day interval.
- Allowlists and AWS PrivateLink services are now supported for serverless clusters. PrivateLink for serverless clusters is in limited access.
- Fixed an issue where the provider could crash when importing a serverless cluster.
- Fixed an issue where usage limits weren't reported properly in cockroach_cluster data sources.
- New cockroach_maintenance_window resource allows users to define a maintenance window in which dedicated clusters will apply patch updates.
- Read operations are now automatically retried if the response is a 500-level error.
- Reading SQL User, IP Allowlist, Role Grant, and Database resources no longer results in an error if their pagination index is outside the default limit.
- Regions can no longer be marked as primary in dedicated clusters. Currently, primary regions are a serverless-only concept and attempting to set a dedicated region as primary would result in an inconsistent state error.
- Metric Export and Log Export resources now wait for pending cluster updates to finish before attempting Create and Update operations.
- Updated Cockroach Cloud SDK to version 1.1.0 which incorporates Limited Access Features. Notably the ability to pass AZURE as a cloud provider is now possible.
- Updated cockroach_dedicated_cluster workflow example in the README to use the current var names and add required values that were previously missing.