grem11n / terraform-aws-vpc-peering

Terraform module to setup VPC peering connection
https://registry.terraform.io/modules/grem11n/vpc-peering/aws/latest
Apache License 2.0
126 stars 91 forks source link

if we want to do the cross account multi region vpc peering #101

Closed reddy2018 closed 8 months ago

reddy2018 commented 1 year ago

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?

reddy2018 commented 1 year 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 }

grem11n commented 1 year ago

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.