'Global resources when using workspaces

With Workspaces, you can use the same config for multiple environments, say, dev and prod. However, you only need to create certain resources once e.g DNS. I will call these resources Globals How should one add Globals to a config when they intend to use workspaces? off the top of my head, these are the possible options:

  • Indicate what Workspace you want to create Globals in regardless of the workspace you are operating from(Couldn't figure out how one could do this from a resource or module block).

  • Create a separate config for Globals.

How should this be done?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source