From 873d67790d048516c00fd631d50e9ee21c259a50 Mon Sep 17 00:00:00 2001 From: xescugc Date: Mon, 23 May 2022 15:26:15 +0200 Subject: [PATCH] cmd/aws: Added support for 'ssocreds' By adding the provider to the list of Providers to check for credentials --- CHANGELOG.md | 4 ++++ cmd/aws.go | 2 ++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1bbecb558e..9e69853b03 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ ## [Unreleased] +### Added +- AWS SSO authentication + ([Issue #282](https://github.com/cycloidio/terracognita/issues/282)) + ### Fixed - Repetitive blocks now have the proper variables within them diff --git a/cmd/aws.go b/cmd/aws.go index 7d374c9fa5..51ed6328e0 100644 --- a/cmd/aws.go +++ b/cmd/aws.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/credentials" + "github.com/aws/aws-sdk-go/aws/credentials/ssocreds" kitlog "github.com/go-kit/kit/log" "github.com/cycloidio/terracognita/aws" @@ -139,6 +140,7 @@ func loadAWSCredentials() error { Providers: []credentials.Provider{ &credentials.EnvProvider{}, &credentials.SharedCredentialsProvider{Filename: viper.GetString("aws-shared-credentials-file"), Profile: viper.GetString("aws-profile")}, + &ssocreds.Provider{}, }, })