Is there a terraform multi-account/region feature like StackSets (CloudFormation)?


I’m often trying to call the same terraform code/module across many AWS accounts (or accounts/regions). At the moment I’m defining common IAM roles.

I could write it in a CloudFormation template and use a StackSet to call it in every Account. Then I could create a aws_cloudformation_stack_set resource but isn’t that just wrapping the CloudFormation in terraform?

Alternately I could manually define every account as its own provider with an alias and separately call the module with each alias. But that’s a lot of cut-and-paste and difficult maintenance with lots of accounts. This could be useful outside of AWS too.

Does anyone have any ways to accomplish this?