aws-ia / terraform-aws-control_tower_account_factory

AWS Control Tower Account Factory
Apache License 2.0
605 stars 386 forks source link

Assume role in another account #330

Closed ahmedfourti closed 1 year ago

ahmedfourti commented 1 year ago

Hello,

This is not a bug or issue (I think) just a question. Is it possible to assume a role in another account ? In my case we have a shared account where we share many resources and some data with other accounts. During the terraform apply I want to get some data from there. Thanks

snebhu3 commented 1 year ago

@ahmedfourti thank you for reaching out. We recommend leveraging Terraform providers within your respective customization Terraform modules. You could refer HashiCorp documentation or reach out to HashiCorp for how you could best implement that and tips on best practices.

ahmedfourti commented 1 year ago

thanks @snebhu3 thats what I did, but it would be nice to have some documenation about providers used in each pipeline because we need to allow them on other accounts (maybe it already exists but I couldn't find it)