dtan4 / terraforming

Export existing AWS resources to Terraform style (tf, tfstate) / No longer actively maintained
http://terraforming.dtan4.net/
MIT License
4.3k stars 658 forks source link

Terraforming multiple AWS regions #369

Closed waghanza closed 6 years ago

waghanza commented 6 years ago

Hello,

I work on several AWS regions.

When I want to terraform actual stacks with a non-default account, terraforming fails.

It seem to be since region is taken from default account.

Regards,

dtan4 commented 6 years ago

I tried with multiple IAM users and multiple regions, it worked fine. Terraforming v0.15.0

[default]
aws_access_key_id = ...
aws_secret_access_key = ...

[dtan4]
aws_access_key_id = ...
aws_secret_access_key = ...
# with default user
terraforming kmsa --region us-west-1
terraforming kmsa --region ap-northeast-1

# with non-default user
terraforming kmsa --profile dtan4 --region us-west-1
terraforming kmsa --profile dtan4 --region ap-northeast-1

It seems that we have nothing to do about this now. Could you show me the error message?