cloudposse / terraform-provider-awsutils

Terraform provider to help with various AWS automation tasks (mostly all that stuff we cannot accomplish with the official AWS terraform provider)
https://cloudposse.com/accelerate
Mozilla Public License 2.0
41 stars 9 forks source link

SSO authentication is not supported #52

Closed rafaljanicki closed 7 months ago

rafaljanicki commented 9 months ago

Describe the Bug

The new SSO format doesn't require sso_region and sso_start_url for every profile. Currently, it throws a following error:

│ Error: error configuring Terraform AWS Provider: loading configuration: profile "<redacted>" is configured to use SSO but is missing required configuration: sso_region, sso_start_url
│ 
│   with provider["registry.terraform.io/cloudposse/awsutils"],
│   on <empty> line 0:
│   (source code not available)

That's described over here: https://github.com/hashicorp/terraform-provider-aws/issues/28263#issuecomment-1428052544 and fixed by updating AWS SDK like in this commit: https://github.com/hashicorp/terraform-provider-aws/commit/bf5aed5bc8b73db62b3fe1b6d4e76dd4408a16b0

Expected Behavior

The provider should support the new SSO configuration syntax