diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ee2e516..1b3a88ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - `scalr_provider_configuration`: added new `google.auth_type`, `google.service_account_email` and `google.workload_provider_name` attributes; `google.credentials` attribute became optional ([#256](https://github.com/Scalr/terraform-provider-scalr/pull/256)) +- `scalr_provider_configuration`: allow built-in providers to be registered as custom. ([#253](https://github.com/Scalr/terraform-provider-scalr/pull/253)) ## [1.1.0] - 2023-06-16 diff --git a/scalr/resource_scalr_provider_configuration.go b/scalr/resource_scalr_provider_configuration.go index c53e4a1d..b5e354a5 100644 --- a/scalr/resource_scalr_provider_configuration.go +++ b/scalr/resource_scalr_provider_configuration.go @@ -482,10 +482,10 @@ func resourceScalrProviderConfigurationRead(ctx context.Context, d *schema.Resou if len(providerConfiguration.AwsTrustedEntityType) > 0 { aws["trusted_entity_type"] = providerConfiguration.AwsTrustedEntityType } - if len(providerConfiguration.AwsTrustedEntityType) > 0 { + if len(providerConfiguration.AwsRoleArn) > 0 { aws["role_arn"] = providerConfiguration.AwsRoleArn } - if len(providerConfiguration.AwsTrustedEntityType) > 0 { + if len(providerConfiguration.AwsExternalId) > 0 { aws["external_id"] = providerConfiguration.AwsExternalId }