diff --git a/CHANGELOG.md b/CHANGELOG.md index 55d06f4..e29540f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,8 +4,18 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.4.2](https://github.com/Altinity/terraform-provider-altinitycloud/compare/v0.4.1...v0.4.2) +### Changed +- Bump github.com/hashicorp/terraform-plugin-docs to `0.20.1` [#122](https://github.com/Altinity/terraform-provider-altinitycloud/pull/122). +- Bump github.com/Yamashou/gqlgenc to `0.26.2` [#120](https://github.com/Altinity/terraform-provider-altinitycloud/pull/120). +- Add deprecation notice to `number_of_zones` environments property (it will be removed in future versions) [#15243a4](https://github.com/Altinity/terraform-provider-altinitycloud/commit/15243a4). + +### Fixed +- Sort environments `node_groups` after API responses to match script order [#318164a](https://github.com/Altinity/terraform-provider-altinitycloud/commit/318164a). + ## [0.4.1](https://github.com/Altinity/terraform-provider-altinitycloud/compare/v0.4.0...v0.4.1) -- [BREAKING CHANGE] Rename `altinitycloud_secret` to `altinitycloud_env_secret` [#03c38db](https://github.com/Altinity/terraform-provider-altinitycloud/commit/03c38db) +### Changed +- 🚨 [BREAKING CHANGE] Rename `altinitycloud_secret` to `altinitycloud_env_secret` [#03c38db](https://github.com/Altinity/terraform-provider-altinitycloud/commit/03c38db). ## [0.4.0](https://github.com/Altinity/terraform-provider-altinitycloud/compare/v0.3.1...v0.4.0) ### Added @@ -23,7 +33,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Improve "disconnected" error message while deleting envs [aa38c53](https://github.com/Altinity/terraform-provider-altinitycloud/commit/aa38c53). - Don't allow empty strings on node group names [c6c71a7](https://github.com/Altinity/terraform-provider-altinitycloud/commit/c6c71a7). - ## [0.3.1](https://github.com/Altinity/terraform-provider-altinitycloud/compare/v0.3.0...v0.3.1) ### Added - Add example of BYOK with AWS EKS cluster using Altinity's Terraform module for BYOK on EKS [45ed7a5](https://github.com/Altinity/terraform-provider-altinitycloud/commit/45ed7a5)\ diff --git a/docs/data-sources/env_aws.md b/docs/data-sources/env_aws.md index a59d110..6fd90d3 100644 --- a/docs/data-sources/env_aws.md +++ b/docs/data-sources/env_aws.md @@ -60,7 +60,7 @@ Bring Your Own Cloud (BYOC) AWS environment data source. - "ZONE_BEST_EFFORT": keep traffic within same zone - `maintenance_windows` (Attributes List) List of maintenance windows during which automatic maintenance is permitted. By default updates are applied as soon as they are available. (see [below for nested schema](#nestedatt--maintenance_windows)) - `node_groups` (Attributes Set) List of node groups. At least one required. (see [below for nested schema](#nestedatt--node_groups)) -- `number_of_zones` (Number) Number of zones where the environment will be available. When set, zones will be set automatically based on your cloud provider (Do not use it together with zones) +- `number_of_zones` (Number, Deprecated) Number of zones where the environment will be available. When set, zones will be set automatically based on your cloud provider (Do not use it together with zones) - `peering_connections` (Attributes List) AWS environment VPC peering configuration. (see [below for nested schema](#nestedatt--peering_connections)) - `region` (String) AWS region ([docs](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html#Concepts.RegionsAndAvailabilityZones.Regions)). **[IMMUTABLE]** diff --git a/docs/data-sources/env_azure.md b/docs/data-sources/env_azure.md index fb02c4a..4a5bb3e 100644 --- a/docs/data-sources/env_azure.md +++ b/docs/data-sources/env_azure.md @@ -57,7 +57,7 @@ Bring Your Own Cloud (BYOC) Azure environment data source. - "ZONE_BEST_EFFORT": keep traffic within same zone - `maintenance_windows` (Attributes List) List of maintenance windows during which automatic maintenance is permitted. By default updates are applied as soon as they are available. (see [below for nested schema](#nestedatt--maintenance_windows)) - `node_groups` (Attributes Set) List of node groups. At least one required. (see [below for nested schema](#nestedatt--node_groups)) -- `number_of_zones` (Number) Number of zones where the environment will be available. When set, zones will be set automatically based on your cloud provider (Do not use it together with zones) +- `number_of_zones` (Number, Deprecated) Number of zones where the environment will be available. When set, zones will be set automatically based on your cloud provider (Do not use it together with zones) - `private_link_service` (Attributes) Azure Private Link service configuration. (see [below for nested schema](#nestedatt--private_link_service)) - `region` (String) Azure region ([docs](https://azure.microsoft.com/en-us/explore/global-infrastructure/geographies/#overview)). **[IMMUTABLE]** diff --git a/docs/data-sources/env_gcp.md b/docs/data-sources/env_gcp.md index 2ee8dcd..7781c46 100644 --- a/docs/data-sources/env_gcp.md +++ b/docs/data-sources/env_gcp.md @@ -58,7 +58,7 @@ Bring Your Own Cloud (BYOC) GCP environment data source. - "ZONE_BEST_EFFORT": keep traffic within same zone - `maintenance_windows` (Attributes List) List of maintenance windows during which automatic maintenance is permitted. By default updates are applied as soon as they are available. (see [below for nested schema](#nestedatt--maintenance_windows)) - `node_groups` (Attributes Set) List of node groups. At least one required. (see [below for nested schema](#nestedatt--node_groups)) -- `number_of_zones` (Number) Number of zones where the environment will be available. When set, zones will be set automatically based on your cloud provider (Do not use it together with zones) +- `number_of_zones` (Number, Deprecated) Number of zones where the environment will be available. When set, zones will be set automatically based on your cloud provider (Do not use it together with zones) - `region` (String) GCP region ([docs](https://cloud.google.com/about/locations)). **[IMMUTABLE]** Examples: diff --git a/docs/resources/env_aws.md b/docs/resources/env_aws.md index f91c64a..1fac6e0 100644 --- a/docs/resources/env_aws.md +++ b/docs/resources/env_aws.md @@ -255,7 +255,7 @@ resource "aws_vpc_peering_connection_accepter" "peer" { - "ROUND_ROBIN": load balance traffic across all zones in round-robin fashion (default) - "ZONE_BEST_EFFORT": keep traffic within same zone - `maintenance_windows` (Attributes List) List of maintenance windows during which automatic maintenance is permitted. By default updates are applied as soon as they are available. (see [below for nested schema](#nestedatt--maintenance_windows)) -- `number_of_zones` (Number) Number of zones where the environment will be available. When set, zones will be set automatically based on your cloud provider (Do not use it together with zones) +- `number_of_zones` (Number, Deprecated) Number of zones where the environment will be available. When set, zones will be set automatically based on your cloud provider (Do not use it together with zones) - `peering_connections` (Attributes List) AWS environment VPC peering configuration. (see [below for nested schema](#nestedatt--peering_connections)) - `skip_deprovision_on_destroy` (Boolean) Set to `true` will delete without waiting for environment deprovisioning. Use this with precaution, it may end up with dangling resources in your cloud provider (default `false`). - `tags` (Attributes List) Tags to apply to AWS resources. (see [below for nested schema](#nestedatt--tags)) diff --git a/docs/resources/env_azure.md b/docs/resources/env_azure.md index 2308c49..3f03da6 100644 --- a/docs/resources/env_azure.md +++ b/docs/resources/env_azure.md @@ -122,7 +122,7 @@ data "altinitycloud_env_azure_status" "this" { - "ROUND_ROBIN": load balance traffic across all zones in round-robin fashion (default) - "ZONE_BEST_EFFORT": keep traffic within same zone - `maintenance_windows` (Attributes List) List of maintenance windows during which automatic maintenance is permitted. By default updates are applied as soon as they are available. (see [below for nested schema](#nestedatt--maintenance_windows)) -- `number_of_zones` (Number) Number of zones where the environment will be available. When set, zones will be set automatically based on your cloud provider (Do not use it together with zones) +- `number_of_zones` (Number, Deprecated) Number of zones where the environment will be available. When set, zones will be set automatically based on your cloud provider (Do not use it together with zones) - `private_link_service` (Attributes) Azure Private Link service configuration. (see [below for nested schema](#nestedatt--private_link_service)) - `skip_deprovision_on_destroy` (Boolean) Set to `true` will delete without waiting for environment deprovisioning. Use this with precaution, it may end up with dangling resources in your cloud provider (default `false`). - `tags` (Attributes List) Tags to apply to Azure resources. (see [below for nested schema](#nestedatt--tags)) diff --git a/docs/resources/env_gcp.md b/docs/resources/env_gcp.md index 77c0c52..ff5ba95 100644 --- a/docs/resources/env_gcp.md +++ b/docs/resources/env_gcp.md @@ -128,7 +128,7 @@ data "altinitycloud_env_gcp_status" "this" { - "ROUND_ROBIN": load balance traffic across all zones in round-robin fashion (default) - "ZONE_BEST_EFFORT": keep traffic within same zone - `maintenance_windows` (Attributes List) List of maintenance windows during which automatic maintenance is permitted. By default updates are applied as soon as they are available. (see [below for nested schema](#nestedatt--maintenance_windows)) -- `number_of_zones` (Number) Number of zones where the environment will be available. When set, zones will be set automatically based on your cloud provider (Do not use it together with zones) +- `number_of_zones` (Number, Deprecated) Number of zones where the environment will be available. When set, zones will be set automatically based on your cloud provider (Do not use it together with zones) - `skip_deprovision_on_destroy` (Boolean) Set to `true` will delete without waiting for environment deprovisioning. Use this with precaution, it may end up with dangling resources in your cloud provider (default `false`). - `zones` (List of String) Explicit list of GCP zones. At least 2 required. Examples: diff --git a/internal/provider/modifiers/zones_validation.go b/internal/provider/modifiers/zones_validation.go index 8062bf7..cae7493 100644 --- a/internal/provider/modifiers/zones_validation.go +++ b/internal/provider/modifiers/zones_validation.go @@ -23,7 +23,7 @@ func (d *zonesAttributePlanModifier) MarkdownDescription(ctx context.Context) st return d.Description(ctx) } -// TODO: remove this modifier after deprecating number_of_zones +// TODO: remove this modifier after deprecating number_of_zones. func (d *zonesAttributePlanModifier) PlanModifyInt64(ctx context.Context, req planmodifier.Int64Request, resp *planmodifier.Int64Response) { var zones types.List diags := req.Plan.GetAttribute(ctx, path.Root("zones"), &zones)