Closed reddy2018 closed 8 months ago
provider "aws" { alias = "this" region = "eu-west-1" access_key = var.aws_this_access_key secret_key = var.aws_this_secret_key }
provider "aws" { alias = "peer" region = "eu-central-1" access_key = var.aws_peer_access_key secret_key = var.aws_peer_secret_key }
Hello, @reddy2018 ,
It should be possible to use all the supported methods to authenticate AWS Provider. The providers.tf
file only declares them.
I've used explicit keys in examples because this is the easiest way to provide some credentials for the automated tests. However, I have some plans to migrate to GitHub OIDC for the test but haven't get to it yet.
is there a way to add only account number in the provider section? instead of access key and secret key in the providers?
can you please help me to pass only account number instated of access key and secret key?