diff --git a/CHANGELOG.md b/CHANGELOG.md index 433a59f3..c919c7ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - panic when creating workspace with empty var file value ([#191](https://github.com/Scalr/terraform-provider-scalr/pull/191)) - typo in documentation of `scalr_variable` data-source `environment_id` parameter ([#193](https://github.com/Scalr/terraform-provider-scalr/pull/193)) +### Deprecated + +- `scalr_environment`: attribute `cloud_credentials` has been deprecated ([#190](https://github.com/Scalr/terraform-provider-scalr/pull/190)) + ## [1.0.0-rc38] - 2022-10-20 ### Added diff --git a/docs/resources/scalr_environment.md b/docs/resources/scalr_environment.md index 9f4a99f8..597de1f8 100644 --- a/docs/resources/scalr_environment.md +++ b/docs/resources/scalr_environment.md @@ -23,7 +23,7 @@ resource "scalr_environment" "test" { * `name` - (Required) Name of the environment. * `account_id` - (Required) ID of the environment account, in the format `acc-` * `cost_estimation_enabled` - (Optional) Set (true/false) to enable/disable cost estimation for the environment. Default `true`. -* `cloud_credentials` - (Optional) List of the environment cloud-credentials IDs, in the format `cred-`. +* `cloud_credentials` - (Optional) Deprecated. Use `default_provider_configurations` instead. * `policy_groups` - (Optional) List of the environment policy-groups IDs, in the format `pgrp-`. * `default_provider_configurations` - (Optional) List of IDs of provider configurations, used in the environment workspaces by default. * `tag_ids` - (Optional) List of tag IDs associated with the environment. diff --git a/scalr/resource_scalr_environment.go b/scalr/resource_scalr_environment.go index 91bc814f..5a8b6bfa 100644 --- a/scalr/resource_scalr_environment.go +++ b/scalr/resource_scalr_environment.go @@ -59,10 +59,11 @@ func resourceScalrEnvironment() *schema.Resource { ForceNew: true, }, "cloud_credentials": { - Type: schema.TypeList, - Computed: true, - Optional: true, - Elem: &schema.Schema{Type: schema.TypeString}, + Type: schema.TypeList, + Computed: true, + Optional: true, + Elem: &schema.Schema{Type: schema.TypeString}, + Deprecated: "The attribute `cloud_credentials` is deprecated. Use `default_provider_configurations` instead", }, "policy_groups": { Type: schema.TypeList,