forked from ZcashFoundation/zebra
-
Notifications
You must be signed in to change notification settings - Fork 1
Add Zebra Swaps ECR & ECS #110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
seniakalma
wants to merge
1
commit into
zsa-integration-demo-ag
Choose a base branch
from
arseni-add-ecr-swaps
base: zsa-integration-demo-ag
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
24 changes: 24 additions & 0 deletions
24
...ploy/infra/terragrunt-aws-environments/dev/eu-central-1/zsa/ecr-swaps/.terraform.lock.hcl
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
...de-deploy/infra/terragrunt-aws-environments/dev/eu-central-1/zsa/ecr-swaps/terragrunt.hcl
This file contains hidden or 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,25 @@ | ||
| locals { | ||
| # Automatically load environment-level variables | ||
| environment_vars = read_terragrunt_config(find_in_parent_folders("env.hcl")) | ||
|
|
||
| region_vars = read_terragrunt_config(find_in_parent_folders("region.hcl")) | ||
| account_vars = read_terragrunt_config(find_in_parent_folders("account.hcl")) | ||
| # Extract out common variables for reuse | ||
| env = local.environment_vars.locals.environment | ||
| } | ||
|
|
||
| # Terragrunt will copy the Terraform configurations specified by the source parameter, along with any files in the | ||
| # working directory, into a temporary folder, and execute your Terraform commands in that folder. | ||
| terraform { | ||
| source = "../../../../../terraform-aws-modules/ecr" | ||
| } | ||
|
|
||
| # Include all settings from the root terragrunt.hcl file | ||
| include { | ||
| path = find_in_parent_folders() | ||
| } | ||
|
|
||
| inputs = { | ||
| env = local.env | ||
| name = "zebra-server-swaps" | ||
| } |
43 changes: 43 additions & 0 deletions
43
...ploy/infra/terragrunt-aws-environments/dev/eu-central-1/zsa/ecs-swaps/.terraform.lock.hcl
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
73 changes: 73 additions & 0 deletions
73
...de-deploy/infra/terragrunt-aws-environments/dev/eu-central-1/zsa/ecs-swaps/terragrunt.hcl
This file contains hidden or 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,73 @@ | ||
| locals { | ||
| # Automatically load environment-level variables | ||
| environment_vars = read_terragrunt_config(find_in_parent_folders("env.hcl")) | ||
|
|
||
| region_vars = read_terragrunt_config(find_in_parent_folders("region.hcl")) | ||
| account_vars = read_terragrunt_config(find_in_parent_folders("account.hcl")) | ||
| # Extract out common variables for reuse | ||
| env = local.environment_vars.locals.environment | ||
| } | ||
|
|
||
| # Terragrunt will copy the Terraform configurations specified by the source parameter, along with any files in the | ||
| # working directory, into a temporary folder, and execute your Terraform commands in that folder. | ||
| terraform { | ||
| source = "../../../../../terraform-aws-modules/ecs" | ||
| } | ||
|
|
||
| # Include all settings from the root terragrunt.hcl file | ||
| include { | ||
| path = find_in_parent_folders() | ||
| } | ||
|
|
||
| dependency "vpc" { | ||
| config_path = "../vpc" | ||
| } | ||
|
|
||
| dependency "ecr" { | ||
| config_path = "../ecr" | ||
| } | ||
|
|
||
| inputs = { | ||
| name = "zebra-swaps" | ||
| environment = local.env | ||
| region = local.region_vars.locals.aws_region | ||
| account_id = local.account_vars.locals.aws_account_id | ||
|
|
||
| vpc_id = dependency.vpc.outputs.vpc_id | ||
| private_subnets = dependency.vpc.outputs.private_subnets | ||
| public_subnets = dependency.vpc.outputs.public_subnets | ||
|
|
||
| image = "${dependency.ecr.outputs.ecr-url}:latest" | ||
|
|
||
| task_memory=4096 | ||
| task_cpu=1024 | ||
|
|
||
| enable_logging = true | ||
| enable_backup = false | ||
|
|
||
| enable_domain = true | ||
| domain = "zebra-swaps.zsa-test.net" | ||
| zone_name = "zsa-test.net" | ||
|
|
||
| persistent_volume_size = 40 | ||
|
|
||
| port_mappings = [ | ||
| { | ||
| containerPort = 80 | ||
| hostPort = 80 | ||
| protocol = "tcp" | ||
| }, | ||
| { | ||
| containerPort = 443 | ||
| hostPort = 443 | ||
| protocol = "tcp" | ||
| }, | ||
| // Zebra ports are: | ||
| // TCP ports: | ||
| { // RPC PubSub | ||
| containerPort = 18232 | ||
| hostPort = 18232 | ||
| protocol = "tcp" | ||
| } | ||
| ] | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep only the 18232 port, if tx-tool works fine remove also in the main zebra