Closed thenervousgeek closed 3 years ago
While performing awsweeper --profile myaccount --dry-run config.yml I get this error (see the at the bottom):
awsweeper --profile myaccount --dry-run config.yml
This is how I set the default-region: export AWS_DEFAULT_REGION=us-west-2
export AWS_DEFAULT_REGION=us-west-2
vi myaccount has this format:
vi myaccount
provider "aws" { region = "us-west-2" access_key = "my-access-key" secret_key = "my-secret-key" }
vi config.yml is just a list of these aws resources:
vi config.yml
aws_vpc: aws_iam_role: aws_instance:
Error: failed to configure provider (name=aws, version=3.16.0): error configuring Terraform AWS Provider: no valid credential sources for Terraform AWS Provider found.
Please see https://registry.terraform.io/providers/hashicorp/aws for more information about providing credentials.
Error: NoCredentialProviders: no valid providers in chain. Deprecated. For verbose messaging see aws.Config.CredentialsChainVerboseErrors
it was the profile that was not correctly working. You can delete this "non-issue".
While performing
awsweeper --profile myaccount --dry-run config.yml
I get this error (see the at the bottom):This is how I set the default-region:
export AWS_DEFAULT_REGION=us-west-2
vi myaccount
has this format:vi config.yml
is just a list of these aws resources:Error: failed to configure provider (name=aws, version=3.16.0): error configuring Terraform AWS Provider: no valid credential sources for Terraform AWS Provider found.
Please see https://registry.terraform.io/providers/hashicorp/aws for more information about providing credentials.
Error: NoCredentialProviders: no valid providers in chain. Deprecated. For verbose messaging see aws.Config.CredentialsChainVerboseErrors