-
-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
23 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 4 additions & 11 deletions
15
examples/quick-start-advanced/components/terraform/vpc/remote-state.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,13 @@ | ||
module "vpc_flow_logs_bucket" { | ||
count = local.vpc_flow_logs_enabled ? 1 : 0 | ||
count = var.vpc_flow_logs_enabled ? 1 : 0 | ||
|
||
source = "cloudposse/stack-config/yaml//modules/remote-state" | ||
version = "1.5.0" | ||
|
||
# Specify the Atmos component name (defined in YAML stack config files) | ||
# for which to get the remote state outputs | ||
component = "vpc-flow-logs-bucket" | ||
|
||
# Override the context variables to point to a different Atmos stack if the | ||
# `vpc-flow-logs-bucket` Atmos component is provisioned in another AWS account, OU or region | ||
stage = try(coalesce(var.vpc_flow_logs_bucket_stage_name, module.this.stage), null) | ||
environment = try(coalesce(var.vpc_flow_logs_bucket_environment_name, module.this.environment), null) | ||
component = "vpc-flow-logs-bucket" | ||
environment = var.vpc_flow_logs_bucket_environment_name | ||
stage = var.vpc_flow_logs_bucket_stage_name | ||
tenant = try(coalesce(var.vpc_flow_logs_bucket_tenant_name, module.this.tenant), null) | ||
|
||
# `context` input is a way to provide the information about the stack (using the context | ||
# variables `namespace`, `tenant`, `environment`, and `stage` defined in the stack config) | ||
context = module.this.context | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters