Dealing with shared cross account resources in AWS

Hi @tung,

Seriously great product. Thanks to a colleague of mine I started using it as well now in our projects and even though it takes some getting used to, the framework idea is great.

I’m looking for somewhat similar to this; hence I’ve when on an archeological hunt through the community and dug up this old thread.

My needs are kind of, if not the same as this thread.

I have a project running in a single AWS account with multiple environments.
One I’d call ‘core’ as it’s dealing with account general configuration items like compliance, security, backup. Everything else is in specific environments that I’d like to call ‘dev’, ‘tst’, ‘acc’, ‘prd’.

I would like the ability to read an output from my core as it has global resources that I don’t want to implement 4+ times just because I have different TS_ENV’s. It’s a shared resource for a reason.

I would like refer to it from another TS_ENV environmen’s tfvars like:
variable = <%= global.core.output(‘compliance.ebs_default_kms_arn’) %>

Is there a path forward other than using hardcoded values in my tfvars?