Skip to content

Commit

Permalink
SCALRCORE-27453 Scalr provider > Built-in as custom provider configur…
Browse files Browse the repository at this point in the history
…ation changelog fix.
  • Loading branch information
DayS1eeper committed Jul 14, 2023
1 parent ca2bb23 commit 5dab39d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions scalr/resource_scalr_provider_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 5dab39d

Please sign in to comment.