Skip to content

Global Resources #20

Answered by unfor19
sjbarnett asked this question in Q&A
Mar 23, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

@sjbarnett Excellent question :)

We have dev, stg and prd which means "resources per environment" as you said. Creating "Global Resources" as you mentioned is something that requires a separate environment, such as glb (or something like that).

The great thing about terraform is that even though you'll create a separate environment for "Global Resources", you'll still be able to make references to outputs of the glb stack, see terraform_remote_state datasource. Please note that it's not possible to use direct references to Resources and Modules, only to dedicated outputs (as shown below).

So go ahead and create another branch for glb with Route53 records, and then import these records to …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sjbarnett
Comment options

Answer selected by unfor19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants