-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finalizing The Terraform/Manifests Secrets Additions (#1602)
* fixing some variables that weren't quite right * a few more tweaks * upadting dependencies * Moving changes to production and dev code * adding mocks and making my named dependency more descriptive * adding plan to mocks and formatting file * formatting * adding changes to other enviornmebnts * removing old variable that doesn't do anything * removing another bad var
- Loading branch information
Showing
13 changed files
with
282 additions
and
15 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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
terraform { | ||
source = "${get_env("ENVIRONMENT") == "production" ? "git::https://github.com/cds-snc/notification-terraform//aws/manifest_secrets?ref=v${get_env("INFRASTRUCTURE_VERSION")}" : "../../../aws//manifest_secrets"}" | ||
} | ||
|
||
dependencies { | ||
paths = ["../rds", "../elasticache"] | ||
} | ||
|
||
dependency "rds" { | ||
config_path = "../rds" | ||
mock_outputs_allowed_terraform_commands = ["validate", "plan"] | ||
mock_outputs = { | ||
database_read_only_proxy_endpoint = "thisisamockstring_database_read_only_proxy_endpoint" | ||
database_read_write_proxy_endpoint = "thisisamockstring_database_read_write_proxy_endpoint" | ||
postgres_cluster_endpoint = "thisisamockstring_postgres_cluster_endpoint" | ||
} | ||
} | ||
|
||
dependency "elasticache" { | ||
config_path = "../elasticache" | ||
mock_outputs_allowed_terraform_commands = ["validate", "plan"] | ||
mock_outputs = { | ||
redis_primary_endpoint_address = "thisisamockstring_redis_primary_endpoint_address" | ||
} | ||
} | ||
|
||
include { | ||
path = find_in_parent_folders() | ||
} | ||
|
||
inputs = { | ||
database_read_only_proxy_endpoint = dependency.rds.outputs.database_read_only_proxy_endpoint | ||
database_read_write_proxy_endpoint = dependency.rds.outputs.database_read_write_proxy_endpoint | ||
postgres_cluster_endpoint = dependency.rds.outputs.postgres_cluster_endpoint | ||
redis_primary_endpoint_address = dependency.elasticache.outputs.redis_primary_endpoint_address | ||
} |
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
terraform { | ||
source = "${get_env("ENVIRONMENT") == "production" ? "git::https://github.com/cds-snc/notification-terraform//aws/manifest_secrets?ref=v${get_env("INFRASTRUCTURE_VERSION")}" : "../../../aws//manifest_secrets"}" | ||
} | ||
|
||
dependencies { | ||
paths = ["../rds", "../elasticache"] | ||
} | ||
|
||
dependency "rds" { | ||
config_path = "../rds" | ||
mock_outputs_allowed_terraform_commands = ["validate", "plan"] | ||
mock_outputs = { | ||
database_read_only_proxy_endpoint = "thisisamockstring_database_read_only_proxy_endpoint" | ||
database_read_write_proxy_endpoint = "thisisamockstring_database_read_write_proxy_endpoint" | ||
postgres_cluster_endpoint = "thisisamockstring_postgres_cluster_endpoint" | ||
} | ||
} | ||
|
||
dependency "elasticache" { | ||
config_path = "../elasticache" | ||
mock_outputs_allowed_terraform_commands = ["validate", "plan"] | ||
mock_outputs = { | ||
redis_primary_endpoint_address = "thisisamockstring_redis_primary_endpoint_address" | ||
} | ||
} | ||
|
||
include { | ||
path = find_in_parent_folders() | ||
} | ||
|
||
inputs = { | ||
database_read_only_proxy_endpoint = dependency.rds.outputs.database_read_only_proxy_endpoint | ||
database_read_write_proxy_endpoint = dependency.rds.outputs.database_read_write_proxy_endpoint | ||
postgres_cluster_endpoint = dependency.rds.outputs.postgres_cluster_endpoint | ||
redis_primary_endpoint_address = dependency.elasticache.outputs.redis_primary_endpoint_address | ||
} |
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
terraform { | ||
source = "${get_env("ENVIRONMENT") == "production" ? "git::https://github.com/cds-snc/notification-terraform//aws/manifest_secrets?ref=v${get_env("INFRASTRUCTURE_VERSION")}" : "../../../aws//manifest_secrets"}" | ||
} | ||
|
||
dependencies { | ||
paths = ["../rds", "../elasticache"] | ||
} | ||
|
||
dependency "rds" { | ||
config_path = "../rds" | ||
mock_outputs_allowed_terraform_commands = ["validate", "plan"] | ||
mock_outputs = { | ||
database_read_only_proxy_endpoint = "thisisamockstring_database_read_only_proxy_endpoint" | ||
database_read_write_proxy_endpoint = "thisisamockstring_database_read_write_proxy_endpoint" | ||
postgres_cluster_endpoint = "thisisamockstring_postgres_cluster_endpoint" | ||
} | ||
} | ||
|
||
dependency "elasticache" { | ||
config_path = "../elasticache" | ||
mock_outputs_allowed_terraform_commands = ["validate", "plan"] | ||
mock_outputs = { | ||
redis_primary_endpoint_address = "thisisamockstring_redis_primary_endpoint_address" | ||
} | ||
} | ||
|
||
include { | ||
path = find_in_parent_folders() | ||
} | ||
|
||
inputs = { | ||
database_read_only_proxy_endpoint = dependency.rds.outputs.database_read_only_proxy_endpoint | ||
database_read_write_proxy_endpoint = dependency.rds.outputs.database_read_write_proxy_endpoint | ||
postgres_cluster_endpoint = dependency.rds.outputs.postgres_cluster_endpoint | ||
redis_primary_endpoint_address = dependency.elasticache.outputs.redis_primary_endpoint_address | ||
} |
File renamed without changes.
Oops, something went wrong.