-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #472 from hazelops/IZE-582-IZE-361-IZE-446
- Loading branch information
Showing
24 changed files
with
856 additions
and
400 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,5 @@ ize | |
.terraform | ||
examples/**/.ize/env/* | ||
!examples/**/.ize/env/testnut | ||
backend.tf | ||
terraform.tfvars |
Empty file.
11 changes: 11 additions & 0 deletions
11
examples/multistate-monorepo/.ize/env/testnut/api/variables.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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
variable "env" {} | ||
variable "namespace" {} | ||
variable "aws_profile" {} | ||
variable "aws_region" {} | ||
variable "ssh_public_key" {} | ||
variable "ec2_key_pair_name" {} | ||
|
||
locals { | ||
env = var.env | ||
namespace = var.namespace | ||
} |
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,60 @@ | ||
aws_region = "us-east-1" # (required) AWS Region of this environment should be specified here. Can be overriden by AWS_PROFILE env var or --aws-region flag. | ||
namespace = "testnut" # (required) Namespace of the project can be specified here. It is used as a base for all naming. It can be overridden by NAMESPACE env var or --namespace flag. | ||
terraform_version = "1.2.6" # (optional) Terraform version can be set here. 1.1.3 by default | ||
# prefer_runtime = "" # (optional) Prefer a specific runtime. (native or docker) (default 'native') | ||
# tag = "" # (optional) Tag can be set statically. Normally it is being constructed automatically based on the git revision. | ||
# plain_text = false # (optional) Plain text output can be enabled here. Default is false. Can be overridden by IZE_PLAIN_TEXT env var or --plain-text flag. | ||
# env = "dev" # (optional) Environment name can be specified here. Normally it should be passed via `ENV` variable or --env flag. | ||
# env_dir = "" # (optional) Environment directory can be specified here. Normally it's calculated automatically based on the directory structure convention. | ||
# docker_registry = "" # (optional) Docker registry can be set here. By default it uses ECR repo with the name of the service. | ||
# tf_log_path = "" # (optional) TF_LOG_PATH can be set here. | ||
# custom_prompt = false # (optional) Custom prompt can be enabled here for all console connections. Default: false. | ||
# aws_profile = "" # (optional) AWS Profile can be specified here (but normally it's specified via AWS_PROFILE env var) | ||
# log_level = "" # (optional) Log level can be specified here. Possible levels: info, debug, trace, panic, warn, error, fatal(default). Can be overridden via IZE_LOG_LEVEL env var or via --log-level flag. | ||
# ize_dir = "" # (optional) Ize directory can be specified here. Normally it's assumed to be .infra or .ize in the current repo. | ||
# apps_path = "" # (optional) Path to apps directory can be set. By default apps are searched in 'apps' and 'projects' directories. This is needed in case your repo structure is not purely ize-structured (let's say you have 'src' repo in your dotnet app, as an example) | ||
# root_dir = "" # (optional) Project directory can be set here. By default it's the current directory, but in case you prefer to run ize from the outside of repo it may be useful (uncommon). | ||
# tf_log = "" # (optional) Terraform TF_LOG can be set here. Can be TRACE, DEBUG, INFO, WARN or ERROR. | ||
# config_file = "" # (optional) Path to ize.toml config file can be specified, but normally it's read from the environment's directory automatically. | ||
# home = "" # (optional) User home directory can be specified here. Normally $HOME is used. | ||
|
||
[terraform.infra] | ||
aws_region = "us-east-1" # (optional) Terraform-specific AWS Region of this environment should be specified here. Normally global AWS_REGION is used. | ||
# aws_profile = "" # (optional) Terraform-specific AWS profile (optional) can be specified here (but normally it should be inherited from a global AWS_PROFILE). | ||
# version = "" # (optional) Terraform version can be set here. 1.1.3 by default. | ||
# state_bucket_region = "" # (optional) Terraform state bucket region can be specified here. Normally AWS_REGION is used here. Can be overriden via env vars or flags. | ||
# state_bucket_name = "" # (optional) Terraform state bucket name can be specified here. Normally it's generated and defaults to <NAMESPACE>-tf-state | ||
# root_domain_name = "" # (optional) Root domain name can be set here. This is the main domain that will be passed to the terraform. Generally if your app lives at 'api.dev.nutcorp.net' the root domain is `nutcorp.net` | ||
|
||
[terraform.api] | ||
# aws_profile = "" # (optional) Terraform-specific AWS profile (optional) can be specified here (but normally it should be inherited from a global AWS_PROFILE). | ||
# version = "" # (optional) Terraform version can be set here. 1.1.3 by default. | ||
# state_bucket_region = "" # (optional) Terraform state bucket region can be specified here. Normally AWS_REGION is used here. Can be overriden via env vars or flags. | ||
# state_bucket_name = "" # (optional) Terraform state bucket name can be specified here. Normally it's generated and defaults to <NAMESPACE>-tf-state | ||
# root_domain_name = "" # (optional) Root domain name can be set here. This is the main domain that will be passed to the terraform. Generally if your app lives at 'api.dev.nutcorp.net' the root domain is `nutcorp.net` | ||
depends_on = ["vpc"] | ||
|
||
[terraform.vpc] | ||
# aws_profile = "" # (optional) Terraform-specific AWS profile (optional) can be specified here (but normally it should be inherited from a global AWS_PROFILE). | ||
# version = "" # (optional) Terraform version can be set here. 1.1.3 by default. | ||
# state_bucket_region = "" # (optional) Terraform state bucket region can be specified here. Normally AWS_REGION is used here. Can be overriden via env vars or flags. | ||
# state_bucket_name = "" # (optional) Terraform state bucket name can be specified here. Normally it's generated and defaults to <NAMESPACE>-tf-state | ||
# root_domain_name = "" # (optional) Root domain name can be set here. This is the main domain that will be passed to the terraform. Generally if your app lives at 'api.dev.nutcorp.net' the root domain is `nutcorp.net` | ||
depends_on = ["infra"] | ||
|
||
# [ecs.<app>] | ||
# timeout = "" # (optional) ECS deployment timeout can be specified here. | ||
# docker_registry = "" # (optional) Docker registry can be set here. By default it uses ECR repo with the name of the service. | ||
# skip_deploy = false # skip deploy app | ||
# path = "" # (optional) Path to ecs app folder can be specified here. By default it's derived from apps path and app name. | ||
# unsafe = false # (optional) Enables unsafe mode that increases deploy time on a cost of shorter healtchecks. | ||
# image = "" # (optional) Docker image can be specified here. By default it's derived from the app name. | ||
# cluster = "" # (optional) ECS cluster can be specified here. By default it's derived from env & namespace | ||
# task_definition_revision = "" # (optional) Task definition revision can be specified here. By default latest revision is used to perform a deployment. Normally this parameter can be used via cli during specific deployment needs. | ||
|
||
# [serverless.<name>] | ||
# node_version = "16" # (optional) Node version that will be used by nvm can be specified here that. Default is v14. | ||
# path = "" # (optional) Path to the serverless app directory can be specified here. Normally it's derived from app directory and app name. | ||
# sls_node_modules_cache_mount = "" # (optional) SLS node_modules cache mount path can be specified here. It's used to store cache during CI/CD process. | ||
# file = "" # (optional) Path to serverless file can be specified here. Normally it's serverless.yml in the app directory. | ||
# create_domain = false # (optional) Create domain for the serverless domain manager during the deployment. |
Empty file.
11 changes: 11 additions & 0 deletions
11
examples/multistate-monorepo/.ize/env/testnut/variables.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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
variable "env" {} | ||
variable "namespace" {} | ||
variable "aws_profile" {} | ||
variable "aws_region" {} | ||
variable "ssh_public_key" {} | ||
variable "ec2_key_pair_name" {} | ||
|
||
locals { | ||
env = var.env | ||
namespace = var.namespace | ||
} |
Empty file.
11 changes: 11 additions & 0 deletions
11
examples/multistate-monorepo/.ize/env/testnut/vpc/variables.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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
variable "env" {} | ||
variable "namespace" {} | ||
variable "aws_profile" {} | ||
variable "aws_region" {} | ||
variable "ssh_public_key" {} | ||
variable "ec2_key_pair_name" {} | ||
|
||
locals { | ||
env = var.env | ||
namespace = var.namespace | ||
} |
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
Oops, something went wrong.