bumpy-summer-9075
04/07/2021, 3:57 PMgreen-musician-49057
04/07/2021, 4:01 PMbillowy-army-68599
04/07/2021, 4:17 PMvpc.get()
bumpy-summer-9075
04/07/2021, 5:05 PMbillowy-army-68599
04/07/2021, 5:06 PMbumpy-summer-9075
04/07/2021, 5:31 PMcommon
(which has the VPC resource), and another stack s3-website
which consumes that VPC id.
If I were to checkout the stack s3-website
and try to apply it on a brand new AWS account, it wouldn't work because the VPC would not exist.
If they were both in the same stack, this would not happenbillowy-army-68599
04/07/2021, 5:33 PMbumpy-summer-9075
04/07/2021, 5:34 PMcommon
stack is not deployed is perfect, fail fast!billowy-army-68599
04/07/2021, 5:37 PMthrow
is the stack output is not resolved đbumpy-summer-9075
04/07/2021, 5:39 PMlocals {
# Abusing the 'file' function to fail if the specified environment does not match the workspace
assert_environment_matches_workspace = terraform.workspace != var.environment ? file("ERROR: Environment needs to match the workspace") : null
}