From 48e4aa96d6088e2d1ca0be473f587d94fbc9a208 Mon Sep 17 00:00:00 2001 From: Dmitry Borisov Date: Thu, 22 Sep 2022 01:26:19 +0300 Subject: [PATCH 1/6] Add infra destroy after go tests --- .github/workflows/run.e2e-tests.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run.e2e-tests.yml b/.github/workflows/run.e2e-tests.yml index 3cecc617..a37e5e5e 100644 --- a/.github/workflows/run.e2e-tests.yml +++ b/.github/workflows/run.e2e-tests.yml @@ -99,6 +99,8 @@ jobs: run: | go test -v --timeout 0 --tags="e2e ecs_apps" ./test-e2e + - name: Destroy Infra + run: ize down infra test-tunnel: name: Bastion Tunnel Monorepo @@ -157,7 +159,9 @@ jobs: - name: Run Tests run: | go test -v --timeout 0 --tags="e2e bastion_tunnel" ./test-e2e - + + - name: Destroy Infra + run: ize down infra test-terraform: name: Terraform Commands @@ -217,3 +221,6 @@ jobs: - name: Run Tests run: | go test -v --timeout 0 --tags="e2e terraform" ./test-e2e + + - name: Destroy Infra + run: ize down infra From 146138426f006f28dd33b20ad405cc0cbb78fbb1 Mon Sep 17 00:00:00 2001 From: Dmitry Borisov Date: Thu, 22 Sep 2022 01:35:16 +0300 Subject: [PATCH 2/6] Add commands folder and files --- website/commands/ize.md | 57 +++++++++++++++++++ website/commands/ize_build.md | 52 +++++++++++++++++ website/commands/ize_configure.md | 33 +++++++++++ website/commands/ize_console.md | 42 ++++++++++++++ website/commands/ize_deploy.md | 60 ++++++++++++++++++++ website/commands/ize_down.md | 58 +++++++++++++++++++ website/commands/ize_down_infra.md | 37 ++++++++++++ website/commands/ize_exec.md | 48 ++++++++++++++++ website/commands/ize_gen.md | 35 ++++++++++++ website/commands/ize_gen_aws-profile.md | 37 ++++++++++++ website/commands/ize_gen_ci.md | 48 ++++++++++++++++ website/commands/ize_gen_completion.md | 75 +++++++++++++++++++++++++ website/commands/ize_gen_doc.md | 37 ++++++++++++ website/commands/ize_gen_mfa.md | 33 +++++++++++ website/commands/ize_gen_tfenv.md | 52 +++++++++++++++++ website/commands/ize_init.md | 53 +++++++++++++++++ website/commands/ize_logs.md | 34 +++++++++++ website/commands/ize_push.md | 52 +++++++++++++++++ website/commands/ize_secrets.md | 33 +++++++++++ website/commands/ize_secrets_edit.md | 50 +++++++++++++++++ website/commands/ize_secrets_pull.md | 41 ++++++++++++++ website/commands/ize_secrets_push.md | 53 +++++++++++++++++ website/commands/ize_secrets_rm.md | 48 ++++++++++++++++ website/commands/ize_status.md | 33 +++++++++++ website/commands/ize_terraform.md | 58 +++++++++++++++++++ website/commands/ize_tunnel.md | 36 ++++++++++++ website/commands/ize_tunnel_down.md | 37 ++++++++++++ website/commands/ize_tunnel_status.md | 37 ++++++++++++ website/commands/ize_tunnel_up.md | 42 ++++++++++++++ website/commands/ize_up.md | 60 ++++++++++++++++++++ website/commands/ize_up_infra.md | 55 ++++++++++++++++++ website/commands/ize_validate.md | 33 +++++++++++ website/commands/ize_version.md | 33 +++++++++++ 33 files changed, 1492 insertions(+) create mode 100644 website/commands/ize.md create mode 100644 website/commands/ize_build.md create mode 100644 website/commands/ize_configure.md create mode 100644 website/commands/ize_console.md create mode 100644 website/commands/ize_deploy.md create mode 100644 website/commands/ize_down.md create mode 100644 website/commands/ize_down_infra.md create mode 100644 website/commands/ize_exec.md create mode 100644 website/commands/ize_gen.md create mode 100644 website/commands/ize_gen_aws-profile.md create mode 100644 website/commands/ize_gen_ci.md create mode 100644 website/commands/ize_gen_completion.md create mode 100644 website/commands/ize_gen_doc.md create mode 100644 website/commands/ize_gen_mfa.md create mode 100644 website/commands/ize_gen_tfenv.md create mode 100644 website/commands/ize_init.md create mode 100644 website/commands/ize_logs.md create mode 100644 website/commands/ize_push.md create mode 100644 website/commands/ize_secrets.md create mode 100644 website/commands/ize_secrets_edit.md create mode 100644 website/commands/ize_secrets_pull.md create mode 100644 website/commands/ize_secrets_push.md create mode 100644 website/commands/ize_secrets_rm.md create mode 100644 website/commands/ize_status.md create mode 100644 website/commands/ize_terraform.md create mode 100644 website/commands/ize_tunnel.md create mode 100644 website/commands/ize_tunnel_down.md create mode 100644 website/commands/ize_tunnel_status.md create mode 100644 website/commands/ize_tunnel_up.md create mode 100644 website/commands/ize_up.md create mode 100644 website/commands/ize_up_infra.md create mode 100644 website/commands/ize_validate.md create mode 100644 website/commands/ize_version.md diff --git a/website/commands/ize.md b/website/commands/ize.md new file mode 100644 index 00000000..fb514c5f --- /dev/null +++ b/website/commands/ize.md @@ -0,0 +1,57 @@ +## ize + + + +### Synopsis + + Welcome to IZE + Docs: https://ize.sh/docs + Version: 1.1.5 (5a8df5bd) + + Opinionated tool for infrastructure and code. + + This tool is designed as a simple wrapper around popular tools, + so they can be easily integrated in one infra: terraform, + ECS deployment, serverless, and others. + + It combines infra, build and deploy workflows in one + and is too simple to be considered sophisticated. + So let's not do it but rather embrace the simplicity and minimalism. + +### Options + +``` + -p, --aws-profile string (required) set AWS profile (overrides value in ize.toml and IZE_AWS_PROFILE / AWS_PROFILE if any of them are set) + -r, --aws-region string (required) set AWS region (overrides value in ize.toml and IZE_AWS_REGION / AWS_REGION if any of them are set) + -c, --config-file string set config file name + -e, --env string (required) set environment name (overrides value set in IZE_ENV / ENV if any of them are set) + -h, --help help for ize + -l, --log-level string set log level. Possible levels: info, debug, trace, panic, warn, error, fatal(default) + -n, --namespace string (required) set namespace (overrides value in ize.toml and IZE_NAMESPACE / NAMESPACE if any of them are set) + --plain-text enable plain text + --prefer-runtime string set prefer runtime (native or docker) (default "native") + -t, --tag string set tag + --terraform-version string set terraform-version +``` + +### SEE ALSO + +* [ize build](ize_build.md) - build apps +* [ize configure](ize_configure.md) - Generate global configuration file +* [ize console](ize_console.md) - Connect to a container in the ECS +* [ize deploy](ize_deploy.md) - Manage deployments +* [ize down](ize_down.md) - Destroy application +* [ize exec](ize_exec.md) - Execute command in ECS container +* [ize gen](ize_gen.md) - Generate something +* [ize init](ize_init.md) - Initialize project +* [ize logs](ize_logs.md) - Stream logs of container in the ECS +* [ize push](ize_push.md) - push app's image +* [ize secrets](ize_secrets.md) - Manage secrets +* [ize status](ize_status.md) - Show debug information +* [ize terraform](ize_terraform.md) - Run terraform +* [ize tunnel](ize_tunnel.md) - Tunnel management +* [ize up](ize_up.md) - Bring full application up from the bottom to the top. +* [ize validate](ize_validate.md) - Validate configuration (only for test) +* [ize version](ize_version.md) - Show IZE version + +###### Auto generated by spf13/cobra on 22-Sep-2022 diff --git a/website/commands/ize_build.md b/website/commands/ize_build.md new file mode 100644 index 00000000..1ff8b8cf --- /dev/null +++ b/website/commands/ize_build.md @@ -0,0 +1,52 @@ +## ize build + +build apps + +### Synopsis + + Build app. + App name must be specified for a app build. + +``` +ize build [flags] +``` + +### Examples + +``` + # Build app (config file required) + ize build + + # Build app with explicitly specified config file + ize --config-file (or -c) /path/to/config build + + # Build app with explicitly specified config file passed via environment variable. + export IZE_CONFIG_FILE=/path/to/config + ize build +``` + +### Options + +``` + -h, --help help for build +``` + +### Options inherited from parent commands + +``` + -p, --aws-profile string (required) set AWS profile (overrides value in ize.toml and IZE_AWS_PROFILE / AWS_PROFILE if any of them are set) + -r, --aws-region string (required) set AWS region (overrides value in ize.toml and IZE_AWS_REGION / AWS_REGION if any of them are set) + -c, --config-file string set config file name + -e, --env string (required) set environment name (overrides value set in IZE_ENV / ENV if any of them are set) + -l, --log-level string set log level. Possible levels: info, debug, trace, panic, warn, error, fatal(default) + -n, --namespace string (required) set namespace (overrides value in ize.toml and IZE_NAMESPACE / NAMESPACE if any of them are set) + --plain-text enable plain text + --prefer-runtime string set prefer runtime (native or docker) (default "native") + --terraform-version string set terraform-version +``` + +### SEE ALSO + +* [ize](ize.md) - + +###### Auto generated by spf13/cobra on 22-Sep-2022 diff --git a/website/commands/ize_configure.md b/website/commands/ize_configure.md new file mode 100644 index 00000000..b862ad3d --- /dev/null +++ b/website/commands/ize_configure.md @@ -0,0 +1,33 @@ +## ize configure + +Generate global configuration file + +``` +ize configure [flags] +``` + +### Options + +``` + -h, --help help for configure +``` + +### Options inherited from parent commands + +``` + -p, --aws-profile string (required) set AWS profile (overrides value in ize.toml and IZE_AWS_PROFILE / AWS_PROFILE if any of them are set) + -r, --aws-region string (required) set AWS region (overrides value in ize.toml and IZE_AWS_REGION / AWS_REGION if any of them are set) + -c, --config-file string set config file name + -e, --env string (required) set environment name (overrides value set in IZE_ENV / ENV if any of them are set) + -l, --log-level string set log level. Possible levels: info, debug, trace, panic, warn, error, fatal(default) + -n, --namespace string (required) set namespace (overrides value in ize.toml and IZE_NAMESPACE / NAMESPACE if any of them are set) + --plain-text enable plain text + --prefer-runtime string set prefer runtime (native or docker) (default "native") + --terraform-version string set terraform-version +``` + +### SEE ALSO + +* [ize](ize.md) - + +###### Auto generated by spf13/cobra on 22-Sep-2022 diff --git a/website/commands/ize_console.md b/website/commands/ize_console.md new file mode 100644 index 00000000..2ac70547 --- /dev/null +++ b/website/commands/ize_console.md @@ -0,0 +1,42 @@ +## ize console + +Connect to a container in the ECS + +### Synopsis + +Connect to a container of the app via AWS SSM. +Takes app name that is running on ECS as an argument + +``` +ize console [app-name] [flags] +``` + +### Options + +``` + --container-name string set container name + --custom-prompt enable custom prompt in the console + --ecs-cluster string set ECS cluster name + -h, --help help for console + --task string set task id +``` + +### Options inherited from parent commands + +``` + -p, --aws-profile string (required) set AWS profile (overrides value in ize.toml and IZE_AWS_PROFILE / AWS_PROFILE if any of them are set) + -r, --aws-region string (required) set AWS region (overrides value in ize.toml and IZE_AWS_REGION / AWS_REGION if any of them are set) + -c, --config-file string set config file name + -e, --env string (required) set environment name (overrides value set in IZE_ENV / ENV if any of them are set) + -l, --log-level string set log level. Possible levels: info, debug, trace, panic, warn, error, fatal(default) + -n, --namespace string (required) set namespace (overrides value in ize.toml and IZE_NAMESPACE / NAMESPACE if any of them are set) + --plain-text enable plain text + --prefer-runtime string set prefer runtime (native or docker) (default "native") + --terraform-version string set terraform-version +``` + +### SEE ALSO + +* [ize](ize.md) - + +###### Auto generated by spf13/cobra on 22-Sep-2022 diff --git a/website/commands/ize_deploy.md b/website/commands/ize_deploy.md new file mode 100644 index 00000000..56a5481b --- /dev/null +++ b/website/commands/ize_deploy.md @@ -0,0 +1,60 @@ +## ize deploy + +Manage deployments + +### Synopsis + + Deploy service. + App name must be specified for a app deploy. + + If you install a revision of the task definition, the application will be redeployed (ECS only). + Warning: Redeployment using the docker runtime, a new task definition will be deployed based on the specified revision. + +``` +ize deploy [flags] +``` + +### Examples + +``` + # Deploy app (config file required) + ize deploy + + # Deploy app via config file + ize --config-file (or -c) /path/to/config deploy + + # Deploy app via config file installed from env + export IZE_CONFIG_FILE=/path/to/config + ize deploy + + # Redeploy app (ECS only) + ize deploy --task-definition-revision +``` + +### Options + +``` + -h, --help help for deploy + --task-definition-revision string set task definition revision (ECS only) + --unsafe set unsafe healthcheck options (accelerates deployment if possible) +``` + +### Options inherited from parent commands + +``` + -p, --aws-profile string (required) set AWS profile (overrides value in ize.toml and IZE_AWS_PROFILE / AWS_PROFILE if any of them are set) + -r, --aws-region string (required) set AWS region (overrides value in ize.toml and IZE_AWS_REGION / AWS_REGION if any of them are set) + -c, --config-file string set config file name + -e, --env string (required) set environment name (overrides value set in IZE_ENV / ENV if any of them are set) + -l, --log-level string set log level. Possible levels: info, debug, trace, panic, warn, error, fatal(default) + -n, --namespace string (required) set namespace (overrides value in ize.toml and IZE_NAMESPACE / NAMESPACE if any of them are set) + --plain-text enable plain text + --prefer-runtime string set prefer runtime (native or docker) (default "native") + --terraform-version string set terraform-version +``` + +### SEE ALSO + +* [ize](ize.md) - + +###### Auto generated by spf13/cobra on 22-Sep-2022 diff --git a/website/commands/ize_down.md b/website/commands/ize_down.md new file mode 100644 index 00000000..fd3ca952 --- /dev/null +++ b/website/commands/ize_down.md @@ -0,0 +1,58 @@ +## ize down + +Destroy application + +### Synopsis + + Destroy infrastructure or application. + For app destroy the app name must be specified. + +``` +ize down [flags] [app name] +``` + +### Examples + +``` + # Destroy all (config file required) + ize down + + # Destroy app (config file required) + ize down + + # Destroy app with explicitly specified config file + ize --config-file (or -c) /path/to/config down + + # Destroy app with explicitly specified config file passed via environment variable. + export IZE_CONFIG_FILE=/path/to/config + ize down +``` + +### Options + +``` + --auto-approve approve deploy all + -h, --help help for down + --skip-gen skip generating terraform files +``` + +### Options inherited from parent commands + +``` + -p, --aws-profile string (required) set AWS profile (overrides value in ize.toml and IZE_AWS_PROFILE / AWS_PROFILE if any of them are set) + -r, --aws-region string (required) set AWS region (overrides value in ize.toml and IZE_AWS_REGION / AWS_REGION if any of them are set) + -c, --config-file string set config file name + -e, --env string (required) set environment name (overrides value set in IZE_ENV / ENV if any of them are set) + -l, --log-level string set log level. Possible levels: info, debug, trace, panic, warn, error, fatal(default) + -n, --namespace string (required) set namespace (overrides value in ize.toml and IZE_NAMESPACE / NAMESPACE if any of them are set) + --plain-text enable plain text + --prefer-runtime string set prefer runtime (native or docker) (default "native") + --terraform-version string set terraform-version +``` + +### SEE ALSO + +* [ize](ize.md) - +* [ize down infra](ize_down_infra.md) - Destroy infrastructure + +###### Auto generated by spf13/cobra on 22-Sep-2022 diff --git a/website/commands/ize_down_infra.md b/website/commands/ize_down_infra.md new file mode 100644 index 00000000..91252507 --- /dev/null +++ b/website/commands/ize_down_infra.md @@ -0,0 +1,37 @@ +## ize down infra + +Destroy infrastructure + +``` +ize down infra [flags] +``` + +### Options + +``` + -h, --help help for infra + --infra.terraform.aws-profile string set aws profile + --infra.terraform.aws-region string set aws region + --infra.terraform.version string set terraform version + --skip-gen skip generating terraform files +``` + +### Options inherited from parent commands + +``` + -p, --aws-profile string (required) set AWS profile (overrides value in ize.toml and IZE_AWS_PROFILE / AWS_PROFILE if any of them are set) + -r, --aws-region string (required) set AWS region (overrides value in ize.toml and IZE_AWS_REGION / AWS_REGION if any of them are set) + -c, --config-file string set config file name + -e, --env string (required) set environment name (overrides value set in IZE_ENV / ENV if any of them are set) + -l, --log-level string set log level. Possible levels: info, debug, trace, panic, warn, error, fatal(default) + -n, --namespace string (required) set namespace (overrides value in ize.toml and IZE_NAMESPACE / NAMESPACE if any of them are set) + --plain-text enable plain text + --prefer-runtime string set prefer runtime (native or docker) (default "native") + --terraform-version string set terraform-version +``` + +### SEE ALSO + +* [ize down](ize_down.md) - Destroy application + +###### Auto generated by spf13/cobra on 22-Sep-2022 diff --git a/website/commands/ize_exec.md b/website/commands/ize_exec.md new file mode 100644 index 00000000..8323f799 --- /dev/null +++ b/website/commands/ize_exec.md @@ -0,0 +1,48 @@ +## ize exec + +Execute command in ECS container + +### Synopsis + +Connect to a container in the ECS via AWS SSM and run command. +It uses app name as an argument. + +``` +ize exec [app-name] -- [commands] [flags] +``` + +### Examples + +``` + # Connect to a container in the ECS via AWS SSM and run command. + ize exec goblin ps aux +``` + +### Options + +``` + --container-name string set container name + --ecs-cluster string set ECS cluster name + -h, --help help for exec + --task string set task id +``` + +### Options inherited from parent commands + +``` + -p, --aws-profile string (required) set AWS profile (overrides value in ize.toml and IZE_AWS_PROFILE / AWS_PROFILE if any of them are set) + -r, --aws-region string (required) set AWS region (overrides value in ize.toml and IZE_AWS_REGION / AWS_REGION if any of them are set) + -c, --config-file string set config file name + -e, --env string (required) set environment name (overrides value set in IZE_ENV / ENV if any of them are set) + -l, --log-level string set log level. Possible levels: info, debug, trace, panic, warn, error, fatal(default) + -n, --namespace string (required) set namespace (overrides value in ize.toml and IZE_NAMESPACE / NAMESPACE if any of them are set) + --plain-text enable plain text + --prefer-runtime string set prefer runtime (native or docker) (default "native") + --terraform-version string set terraform-version +``` + +### SEE ALSO + +* [ize](ize.md) - + +###### Auto generated by spf13/cobra on 22-Sep-2022 diff --git a/website/commands/ize_gen.md b/website/commands/ize_gen.md new file mode 100644 index 00000000..83d7339c --- /dev/null +++ b/website/commands/ize_gen.md @@ -0,0 +1,35 @@ +## ize gen + +Generate something + +### Options + +``` + -h, --help help for gen +``` + +### Options inherited from parent commands + +``` + -p, --aws-profile string (required) set AWS profile (overrides value in ize.toml and IZE_AWS_PROFILE / AWS_PROFILE if any of them are set) + -r, --aws-region string (required) set AWS region (overrides value in ize.toml and IZE_AWS_REGION / AWS_REGION if any of them are set) + -c, --config-file string set config file name + -e, --env string (required) set environment name (overrides value set in IZE_ENV / ENV if any of them are set) + -l, --log-level string set log level. Possible levels: info, debug, trace, panic, warn, error, fatal(default) + -n, --namespace string (required) set namespace (overrides value in ize.toml and IZE_NAMESPACE / NAMESPACE if any of them are set) + --plain-text enable plain text + --prefer-runtime string set prefer runtime (native or docker) (default "native") + --terraform-version string set terraform-version +``` + +### SEE ALSO + +* [ize](ize.md) - +* [ize gen aws-profile](ize_gen_aws-profile.md) - Configure aws profile +* [ize gen ci](ize_gen_ci.md) - Generate CI workflow +* [ize gen completion](ize_gen_completion.md) - Generate completion script +* [ize gen doc](ize_gen_doc.md) - Create docs +* [ize gen mfa](ize_gen_mfa.md) - Generate a list of exports for your shell to use ize with MFA-enabled AWS account +* [ize gen tfenv](ize_gen_tfenv.md) - Generate terraform files + +###### Auto generated by spf13/cobra on 22-Sep-2022 diff --git a/website/commands/ize_gen_aws-profile.md b/website/commands/ize_gen_aws-profile.md new file mode 100644 index 00000000..528b01eb --- /dev/null +++ b/website/commands/ize_gen_aws-profile.md @@ -0,0 +1,37 @@ +## ize gen aws-profile + +Configure aws profile + +### Synopsis + +Configure new aws profile from environment variables + +``` +ize gen aws-profile +``` + +### Options + +``` + -h, --help help for aws-profile +``` + +### Options inherited from parent commands + +``` + -p, --aws-profile string (required) set AWS profile (overrides value in ize.toml and IZE_AWS_PROFILE / AWS_PROFILE if any of them are set) + -r, --aws-region string (required) set AWS region (overrides value in ize.toml and IZE_AWS_REGION / AWS_REGION if any of them are set) + -c, --config-file string set config file name + -e, --env string (required) set environment name (overrides value set in IZE_ENV / ENV if any of them are set) + -l, --log-level string set log level. Possible levels: info, debug, trace, panic, warn, error, fatal(default) + -n, --namespace string (required) set namespace (overrides value in ize.toml and IZE_NAMESPACE / NAMESPACE if any of them are set) + --plain-text enable plain text + --prefer-runtime string set prefer runtime (native or docker) (default "native") + --terraform-version string set terraform-version +``` + +### SEE ALSO + +* [ize gen](ize_gen.md) - Generate something + +###### Auto generated by spf13/cobra on 22-Sep-2022 diff --git a/website/commands/ize_gen_ci.md b/website/commands/ize_gen_ci.md new file mode 100644 index 00000000..91aef977 --- /dev/null +++ b/website/commands/ize_gen_ci.md @@ -0,0 +1,48 @@ +## ize gen ci + +Generate CI workflow + +### Synopsis + + Generate CI workflow. + Template file and source url must be specified for a CI workflow generate. + +``` +ize gen ci [flags] +``` + +### Examples + +``` + # Generate CI workflow + ize gen ci --template github.tmpl --source https://github.com/hazelops/ize-ci-templates +``` + +### Options + +``` + -h, --help help for ci + --source string set git repository + --ssh-public-key string set ssh key public path + --template string set template path +``` + +### Options inherited from parent commands + +``` + -p, --aws-profile string (required) set AWS profile (overrides value in ize.toml and IZE_AWS_PROFILE / AWS_PROFILE if any of them are set) + -r, --aws-region string (required) set AWS region (overrides value in ize.toml and IZE_AWS_REGION / AWS_REGION if any of them are set) + -c, --config-file string set config file name + -e, --env string (required) set environment name (overrides value set in IZE_ENV / ENV if any of them are set) + -l, --log-level string set log level. Possible levels: info, debug, trace, panic, warn, error, fatal(default) + -n, --namespace string (required) set namespace (overrides value in ize.toml and IZE_NAMESPACE / NAMESPACE if any of them are set) + --plain-text enable plain text + --prefer-runtime string set prefer runtime (native or docker) (default "native") + --terraform-version string set terraform-version +``` + +### SEE ALSO + +* [ize gen](ize_gen.md) - Generate something + +###### Auto generated by spf13/cobra on 22-Sep-2022 diff --git a/website/commands/ize_gen_completion.md b/website/commands/ize_gen_completion.md new file mode 100644 index 00000000..ce059ebb --- /dev/null +++ b/website/commands/ize_gen_completion.md @@ -0,0 +1,75 @@ +## ize gen completion + +Generate completion script + +### Synopsis + +To load completions: + + Bash: + + $ source <( completion bash) + + # To load completions for each session, execute once: + # Linux: + $ completion bash > /etc/bash_completion.d/ + # macOS: + $ completion bash > /usr/local/etc/bash_completion.d/ + + Zsh: + + # If shell completion is not already enabled in your environment, + # you will need to enable it. You can execute the following once: + + $ echo "autoload -U compinit; compinit" >> ~/.zshrc + + # To load completions for each session, execute once: + $ completion zsh > "${fpath[1]}/_ " + + # You will need to start a new shell for this setup to take effect. + + fish: + + $ completion fish | source + + # To load completions for each session, execute once: + $ completion fish > ~/.config/fish/completions/ .fish + + PowerShell: + + PS> completion powershell | Out-String | Invoke-Expression + + # To load completions for every new session, run: + PS> completion powershell > .ps1 + # and source this file from your PowerShell profile. + + +``` +ize gen completion [bash|zsh|fish|powershell] +``` + +### Options + +``` + -h, --help help for completion +``` + +### Options inherited from parent commands + +``` + -p, --aws-profile string (required) set AWS profile (overrides value in ize.toml and IZE_AWS_PROFILE / AWS_PROFILE if any of them are set) + -r, --aws-region string (required) set AWS region (overrides value in ize.toml and IZE_AWS_REGION / AWS_REGION if any of them are set) + -c, --config-file string set config file name + -e, --env string (required) set environment name (overrides value set in IZE_ENV / ENV if any of them are set) + -l, --log-level string set log level. Possible levels: info, debug, trace, panic, warn, error, fatal(default) + -n, --namespace string (required) set namespace (overrides value in ize.toml and IZE_NAMESPACE / NAMESPACE if any of them are set) + --plain-text enable plain text + --prefer-runtime string set prefer runtime (native or docker) (default "native") + --terraform-version string set terraform-version +``` + +### SEE ALSO + +* [ize gen](ize_gen.md) - Generate something + +###### Auto generated by spf13/cobra on 22-Sep-2022 diff --git a/website/commands/ize_gen_doc.md b/website/commands/ize_gen_doc.md new file mode 100644 index 00000000..38f75b58 --- /dev/null +++ b/website/commands/ize_gen_doc.md @@ -0,0 +1,37 @@ +## ize gen doc + +Create docs + +### Synopsis + +Create docs with ize commands description + +``` +ize gen doc +``` + +### Options + +``` + -h, --help help for doc +``` + +### Options inherited from parent commands + +``` + -p, --aws-profile string (required) set AWS profile (overrides value in ize.toml and IZE_AWS_PROFILE / AWS_PROFILE if any of them are set) + -r, --aws-region string (required) set AWS region (overrides value in ize.toml and IZE_AWS_REGION / AWS_REGION if any of them are set) + -c, --config-file string set config file name + -e, --env string (required) set environment name (overrides value set in IZE_ENV / ENV if any of them are set) + -l, --log-level string set log level. Possible levels: info, debug, trace, panic, warn, error, fatal(default) + -n, --namespace string (required) set namespace (overrides value in ize.toml and IZE_NAMESPACE / NAMESPACE if any of them are set) + --plain-text enable plain text + --prefer-runtime string set prefer runtime (native or docker) (default "native") + --terraform-version string set terraform-version +``` + +### SEE ALSO + +* [ize gen](ize_gen.md) - Generate something + +###### Auto generated by spf13/cobra on 22-Sep-2022 diff --git a/website/commands/ize_gen_mfa.md b/website/commands/ize_gen_mfa.md new file mode 100644 index 00000000..77afff9a --- /dev/null +++ b/website/commands/ize_gen_mfa.md @@ -0,0 +1,33 @@ +## ize gen mfa + +Generate a list of exports for your shell to use ize with MFA-enabled AWS account + +``` +ize gen mfa [flags] +``` + +### Options + +``` + -h, --help help for mfa +``` + +### Options inherited from parent commands + +``` + -p, --aws-profile string (required) set AWS profile (overrides value in ize.toml and IZE_AWS_PROFILE / AWS_PROFILE if any of them are set) + -r, --aws-region string (required) set AWS region (overrides value in ize.toml and IZE_AWS_REGION / AWS_REGION if any of them are set) + -c, --config-file string set config file name + -e, --env string (required) set environment name (overrides value set in IZE_ENV / ENV if any of them are set) + -l, --log-level string set log level. Possible levels: info, debug, trace, panic, warn, error, fatal(default) + -n, --namespace string (required) set namespace (overrides value in ize.toml and IZE_NAMESPACE / NAMESPACE if any of them are set) + --plain-text enable plain text + --prefer-runtime string set prefer runtime (native or docker) (default "native") + --terraform-version string set terraform-version +``` + +### SEE ALSO + +* [ize gen](ize_gen.md) - Generate something + +###### Auto generated by spf13/cobra on 22-Sep-2022 diff --git a/website/commands/ize_gen_tfenv.md b/website/commands/ize_gen_tfenv.md new file mode 100644 index 00000000..cfd42ad4 --- /dev/null +++ b/website/commands/ize_gen_tfenv.md @@ -0,0 +1,52 @@ +## ize gen tfenv + +Generate terraform files + +### Synopsis + + tfenv generates backend.tf and variable.tfvars files. + +``` +ize gen tfenv [flags] +``` + +### Examples + +``` + # Generate files + ize tfenv + + # Generate files via config file + ize --config-file /path/to/config tfenv + + # Generate files via config file installed from env + export IZE_CONFIG_FILE=/path/to/config + ize tfenv +``` + +### Options + +``` + -h, --help help for tfenv + --terraform-state-bucket-name string set terraform state bucket name (default -tf-state) +``` + +### Options inherited from parent commands + +``` + -p, --aws-profile string (required) set AWS profile (overrides value in ize.toml and IZE_AWS_PROFILE / AWS_PROFILE if any of them are set) + -r, --aws-region string (required) set AWS region (overrides value in ize.toml and IZE_AWS_REGION / AWS_REGION if any of them are set) + -c, --config-file string set config file name + -e, --env string (required) set environment name (overrides value set in IZE_ENV / ENV if any of them are set) + -l, --log-level string set log level. Possible levels: info, debug, trace, panic, warn, error, fatal(default) + -n, --namespace string (required) set namespace (overrides value in ize.toml and IZE_NAMESPACE / NAMESPACE if any of them are set) + --plain-text enable plain text + --prefer-runtime string set prefer runtime (native or docker) (default "native") + --terraform-version string set terraform-version +``` + +### SEE ALSO + +* [ize gen](ize_gen.md) - Generate something + +###### Auto generated by spf13/cobra on 22-Sep-2022 diff --git a/website/commands/ize_init.md b/website/commands/ize_init.md new file mode 100644 index 00000000..f118c8b0 --- /dev/null +++ b/website/commands/ize_init.md @@ -0,0 +1,53 @@ +## ize init + +Initialize project + +### Synopsis + + Initialize a new ize project from a template + +``` +ize init [flags] +``` + +### Examples + +``` + # Init project from url + ize init --template https://github.com// + + # Init project from internal examples (https://github.com/hazelops/ize/tree/main/examples) + ize init --template simple-monorepo + + # Display all internal templates + ize init --list +``` + +### Options + +``` + -h, --help help for init + --list show list of examples + --skip-examples generate ize.toml without commented examples + --template string set template (url or internal) +``` + +### Options inherited from parent commands + +``` + -p, --aws-profile string (required) set AWS profile (overrides value in ize.toml and IZE_AWS_PROFILE / AWS_PROFILE if any of them are set) + -r, --aws-region string (required) set AWS region (overrides value in ize.toml and IZE_AWS_REGION / AWS_REGION if any of them are set) + -c, --config-file string set config file name + -e, --env string (required) set environment name (overrides value set in IZE_ENV / ENV if any of them are set) + -l, --log-level string set log level. Possible levels: info, debug, trace, panic, warn, error, fatal(default) + -n, --namespace string (required) set namespace (overrides value in ize.toml and IZE_NAMESPACE / NAMESPACE if any of them are set) + --plain-text enable plain text + --prefer-runtime string set prefer runtime (native or docker) (default "native") + --terraform-version string set terraform-version +``` + +### SEE ALSO + +* [ize](ize.md) - + +###### Auto generated by spf13/cobra on 22-Sep-2022 diff --git a/website/commands/ize_logs.md b/website/commands/ize_logs.md new file mode 100644 index 00000000..7d502322 --- /dev/null +++ b/website/commands/ize_logs.md @@ -0,0 +1,34 @@ +## ize logs + +Stream logs of container in the ECS + +``` +ize logs [app-name] [flags] +``` + +### Options + +``` + --ecs-cluster string set ECS cluster name + -h, --help help for logs +``` + +### Options inherited from parent commands + +``` + -p, --aws-profile string (required) set AWS profile (overrides value in ize.toml and IZE_AWS_PROFILE / AWS_PROFILE if any of them are set) + -r, --aws-region string (required) set AWS region (overrides value in ize.toml and IZE_AWS_REGION / AWS_REGION if any of them are set) + -c, --config-file string set config file name + -e, --env string (required) set environment name (overrides value set in IZE_ENV / ENV if any of them are set) + -l, --log-level string set log level. Possible levels: info, debug, trace, panic, warn, error, fatal(default) + -n, --namespace string (required) set namespace (overrides value in ize.toml and IZE_NAMESPACE / NAMESPACE if any of them are set) + --plain-text enable plain text + --prefer-runtime string set prefer runtime (native or docker) (default "native") + --terraform-version string set terraform-version +``` + +### SEE ALSO + +* [ize](ize.md) - + +###### Auto generated by spf13/cobra on 22-Sep-2022 diff --git a/website/commands/ize_push.md b/website/commands/ize_push.md new file mode 100644 index 00000000..ab083956 --- /dev/null +++ b/website/commands/ize_push.md @@ -0,0 +1,52 @@ +## ize push + +push app's image + +### Synopsis + + Push app image (so far only ECR). + App name must be specified for a app image push. + +``` +ize push [flags] +``` + +### Examples + +``` + # Push app's artifact (Docker image to ECR, for example). + ize push + + # Push app's artifact with explicitly specified config file + ize --config-file (or -c) /path/to/config push + + # Push app's artifact with explicitly specified config file passed via environment variable. + export IZE_CONFIG_FILE=/path/to/config + ize push +``` + +### Options + +``` + -h, --help help for push +``` + +### Options inherited from parent commands + +``` + -p, --aws-profile string (required) set AWS profile (overrides value in ize.toml and IZE_AWS_PROFILE / AWS_PROFILE if any of them are set) + -r, --aws-region string (required) set AWS region (overrides value in ize.toml and IZE_AWS_REGION / AWS_REGION if any of them are set) + -c, --config-file string set config file name + -e, --env string (required) set environment name (overrides value set in IZE_ENV / ENV if any of them are set) + -l, --log-level string set log level. Possible levels: info, debug, trace, panic, warn, error, fatal(default) + -n, --namespace string (required) set namespace (overrides value in ize.toml and IZE_NAMESPACE / NAMESPACE if any of them are set) + --plain-text enable plain text + --prefer-runtime string set prefer runtime (native or docker) (default "native") + --terraform-version string set terraform-version +``` + +### SEE ALSO + +* [ize](ize.md) - + +###### Auto generated by spf13/cobra on 22-Sep-2022 diff --git a/website/commands/ize_secrets.md b/website/commands/ize_secrets.md new file mode 100644 index 00000000..7c100bd1 --- /dev/null +++ b/website/commands/ize_secrets.md @@ -0,0 +1,33 @@ +## ize secrets + +Manage secrets + +### Options + +``` + -h, --help help for secrets +``` + +### Options inherited from parent commands + +``` + -p, --aws-profile string (required) set AWS profile (overrides value in ize.toml and IZE_AWS_PROFILE / AWS_PROFILE if any of them are set) + -r, --aws-region string (required) set AWS region (overrides value in ize.toml and IZE_AWS_REGION / AWS_REGION if any of them are set) + -c, --config-file string set config file name + -e, --env string (required) set environment name (overrides value set in IZE_ENV / ENV if any of them are set) + -l, --log-level string set log level. Possible levels: info, debug, trace, panic, warn, error, fatal(default) + -n, --namespace string (required) set namespace (overrides value in ize.toml and IZE_NAMESPACE / NAMESPACE if any of them are set) + --plain-text enable plain text + --prefer-runtime string set prefer runtime (native or docker) (default "native") + --terraform-version string set terraform-version +``` + +### SEE ALSO + +* [ize](ize.md) - +* [ize secrets edit](ize_secrets_edit.md) - Edit secrets file +* [ize secrets pull](ize_secrets_pull.md) - Pull secrets to a a local file (like SSM) +* [ize secrets push](ize_secrets_push.md) - Push secrets to a key-value storage (like SSM) +* [ize secrets rm](ize_secrets_rm.md) - Remove secrets from storage + +###### Auto generated by spf13/cobra on 22-Sep-2022 diff --git a/website/commands/ize_secrets_edit.md b/website/commands/ize_secrets_edit.md new file mode 100644 index 00000000..7441936e --- /dev/null +++ b/website/commands/ize_secrets_edit.md @@ -0,0 +1,50 @@ +## ize secrets edit + +Edit secrets file + +### Synopsis + +This command open secrets file in default text editor + +``` +ize secrets edit [flags] +``` + +### Examples + +``` + # Edit secrets: + + # This will open secrets file it in a local text editor if it's existed. If file is absent - it will be created. + ize secrets edit squibby + + # This will open your secrets file with local text editor + ize secrets edit squibby --file example-service.json +``` + +### Options + +``` + --file string file with secrets + -h, --help help for edit +``` + +### Options inherited from parent commands + +``` + -p, --aws-profile string (required) set AWS profile (overrides value in ize.toml and IZE_AWS_PROFILE / AWS_PROFILE if any of them are set) + -r, --aws-region string (required) set AWS region (overrides value in ize.toml and IZE_AWS_REGION / AWS_REGION if any of them are set) + -c, --config-file string set config file name + -e, --env string (required) set environment name (overrides value set in IZE_ENV / ENV if any of them are set) + -l, --log-level string set log level. Possible levels: info, debug, trace, panic, warn, error, fatal(default) + -n, --namespace string (required) set namespace (overrides value in ize.toml and IZE_NAMESPACE / NAMESPACE if any of them are set) + --plain-text enable plain text + --prefer-runtime string set prefer runtime (native or docker) (default "native") + --terraform-version string set terraform-version +``` + +### SEE ALSO + +* [ize secrets](ize_secrets.md) - Manage secrets + +###### Auto generated by spf13/cobra on 22-Sep-2022 diff --git a/website/commands/ize_secrets_pull.md b/website/commands/ize_secrets_pull.md new file mode 100644 index 00000000..008dfe20 --- /dev/null +++ b/website/commands/ize_secrets_pull.md @@ -0,0 +1,41 @@ +## ize secrets pull + +Pull secrets to a a local file (like SSM) + +### Synopsis + +This command pulls secrets from a key-value storage to a local file (like SSM) + +``` +ize secrets pull [flags] +``` + +### Options + +``` + --backend string backend type (default=ssm) (default "ssm") + --file string file with secrets + --force allow values overwrite + -h, --help help for pull + --path string path where to store secrets (// by default) +``` + +### Options inherited from parent commands + +``` + -p, --aws-profile string (required) set AWS profile (overrides value in ize.toml and IZE_AWS_PROFILE / AWS_PROFILE if any of them are set) + -r, --aws-region string (required) set AWS region (overrides value in ize.toml and IZE_AWS_REGION / AWS_REGION if any of them are set) + -c, --config-file string set config file name + -e, --env string (required) set environment name (overrides value set in IZE_ENV / ENV if any of them are set) + -l, --log-level string set log level. Possible levels: info, debug, trace, panic, warn, error, fatal(default) + -n, --namespace string (required) set namespace (overrides value in ize.toml and IZE_NAMESPACE / NAMESPACE if any of them are set) + --plain-text enable plain text + --prefer-runtime string set prefer runtime (native or docker) (default "native") + --terraform-version string set terraform-version +``` + +### SEE ALSO + +* [ize secrets](ize_secrets.md) - Manage secrets + +###### Auto generated by spf13/cobra on 22-Sep-2022 diff --git a/website/commands/ize_secrets_push.md b/website/commands/ize_secrets_push.md new file mode 100644 index 00000000..f28ec7d0 --- /dev/null +++ b/website/commands/ize_secrets_push.md @@ -0,0 +1,53 @@ +## ize secrets push + +Push secrets to a key-value storage (like SSM) + +### Synopsis + +This command pushes secrets from a local file to a key-value storage (like SSM) + +``` +ize secrets push [flags] +``` + +### Examples + +``` + # Push secrets: + + # This will push secrets for "squibby" app + ize secrets push squibby + + # This will push secrets for "squibby" app from a "example-service.json" file to the AWS SSM storage with force option (values will be overwritten if exist) + ize secrets push squibby --backend ssm --file example-service.json --force +``` + +### Options + +``` + --backend string backend type (default=ssm) (default "ssm") + --file string file with secrets + --force allow values overwrite + -h, --help help for push + --path string path where to store secrets (// by default) +``` + +### Options inherited from parent commands + +``` + -p, --aws-profile string (required) set AWS profile (overrides value in ize.toml and IZE_AWS_PROFILE / AWS_PROFILE if any of them are set) + -r, --aws-region string (required) set AWS region (overrides value in ize.toml and IZE_AWS_REGION / AWS_REGION if any of them are set) + -c, --config-file string set config file name + -e, --env string (required) set environment name (overrides value set in IZE_ENV / ENV if any of them are set) + -l, --log-level string set log level. Possible levels: info, debug, trace, panic, warn, error, fatal(default) + -n, --namespace string (required) set namespace (overrides value in ize.toml and IZE_NAMESPACE / NAMESPACE if any of them are set) + --plain-text enable plain text + --prefer-runtime string set prefer runtime (native or docker) (default "native") + --terraform-version string set terraform-version +``` + +### SEE ALSO + +* [ize secrets](ize_secrets.md) - Manage secrets + +###### Auto generated by spf13/cobra on 22-Sep-2022 diff --git a/website/commands/ize_secrets_rm.md b/website/commands/ize_secrets_rm.md new file mode 100644 index 00000000..4f020492 --- /dev/null +++ b/website/commands/ize_secrets_rm.md @@ -0,0 +1,48 @@ +## ize secrets rm + +Remove secrets from storage + +### Synopsis + +This command removes secrets from storage + +``` +ize secrets rm [flags] +``` + +### Examples + +``` + # Remove secrets: + + # This will remove your secrets for "squibby" app + ize secrets rm squibby +``` + +### Options + +``` + --backend string backend type (default "ssm") + -h, --help help for rm + --path string path to secrets +``` + +### Options inherited from parent commands + +``` + -p, --aws-profile string (required) set AWS profile (overrides value in ize.toml and IZE_AWS_PROFILE / AWS_PROFILE if any of them are set) + -r, --aws-region string (required) set AWS region (overrides value in ize.toml and IZE_AWS_REGION / AWS_REGION if any of them are set) + -c, --config-file string set config file name + -e, --env string (required) set environment name (overrides value set in IZE_ENV / ENV if any of them are set) + -l, --log-level string set log level. Possible levels: info, debug, trace, panic, warn, error, fatal(default) + -n, --namespace string (required) set namespace (overrides value in ize.toml and IZE_NAMESPACE / NAMESPACE if any of them are set) + --plain-text enable plain text + --prefer-runtime string set prefer runtime (native or docker) (default "native") + --terraform-version string set terraform-version +``` + +### SEE ALSO + +* [ize secrets](ize_secrets.md) - Manage secrets + +###### Auto generated by spf13/cobra on 22-Sep-2022 diff --git a/website/commands/ize_status.md b/website/commands/ize_status.md new file mode 100644 index 00000000..c12a90b0 --- /dev/null +++ b/website/commands/ize_status.md @@ -0,0 +1,33 @@ +## ize status + +Show debug information + +``` +ize status [flags] +``` + +### Options + +``` + -h, --help help for status +``` + +### Options inherited from parent commands + +``` + -p, --aws-profile string (required) set AWS profile (overrides value in ize.toml and IZE_AWS_PROFILE / AWS_PROFILE if any of them are set) + -r, --aws-region string (required) set AWS region (overrides value in ize.toml and IZE_AWS_REGION / AWS_REGION if any of them are set) + -c, --config-file string set config file name + -e, --env string (required) set environment name (overrides value set in IZE_ENV / ENV if any of them are set) + -l, --log-level string set log level. Possible levels: info, debug, trace, panic, warn, error, fatal(default) + -n, --namespace string (required) set namespace (overrides value in ize.toml and IZE_NAMESPACE / NAMESPACE if any of them are set) + --plain-text enable plain text + --prefer-runtime string set prefer runtime (native or docker) (default "native") + --terraform-version string set terraform-version +``` + +### SEE ALSO + +* [ize](ize.md) - + +###### Auto generated by spf13/cobra on 22-Sep-2022 diff --git a/website/commands/ize_terraform.md b/website/commands/ize_terraform.md new file mode 100644 index 00000000..cccf2a4d --- /dev/null +++ b/website/commands/ize_terraform.md @@ -0,0 +1,58 @@ +## ize terraform + +Run terraform + +### Synopsis + + Run terraform command via terraform docker container. + By default, terraform runs locally. + At the same time, terraform will be downloaded and launched from ~/.ize/versions/terraform/ + + To use a docker terraform, set value of "docker" to the --prefer-runtime global flag. + +``` +ize terraform [flags] [terraform flags] +``` + +### Examples + +``` + # Run terraform init + ize -e dev -p default -r us-east-1 -n hazelops terraform --version 1.0.10 init -input=true + + # Run terraform plan via config file + ize --config-file (or -c) /path/to/config terraform plan -out=$(ENV_DIR)/.terraform/tfplan -input=false + + # Run terraform init via config file installed from env + export IZE_CONFIG_FILE=/path/to/config + ize terraform init -input=true + + # Run terraform in docker + ize -e dev -p default -r us-east-1 -n hazelops --prefer-runtime=docker terraform --version 1.0.10 init -input=true +``` + +### Options + +``` + -h, --help help for terraform +``` + +### Options inherited from parent commands + +``` + -p, --aws-profile string (required) set AWS profile (overrides value in ize.toml and IZE_AWS_PROFILE / AWS_PROFILE if any of them are set) + -r, --aws-region string (required) set AWS region (overrides value in ize.toml and IZE_AWS_REGION / AWS_REGION if any of them are set) + -c, --config-file string set config file name + -e, --env string (required) set environment name (overrides value set in IZE_ENV / ENV if any of them are set) + -l, --log-level string set log level. Possible levels: info, debug, trace, panic, warn, error, fatal(default) + -n, --namespace string (required) set namespace (overrides value in ize.toml and IZE_NAMESPACE / NAMESPACE if any of them are set) + --plain-text enable plain text + --prefer-runtime string set prefer runtime (native or docker) (default "native") + --terraform-version string set terraform-version +``` + +### SEE ALSO + +* [ize](ize.md) - + +###### Auto generated by spf13/cobra on 22-Sep-2022 diff --git a/website/commands/ize_tunnel.md b/website/commands/ize_tunnel.md new file mode 100644 index 00000000..d93cd6fe --- /dev/null +++ b/website/commands/ize_tunnel.md @@ -0,0 +1,36 @@ +## ize tunnel + +Tunnel management + +### Synopsis + +Tunnel management + +### Options + +``` + -h, --help help for tunnel +``` + +### Options inherited from parent commands + +``` + -p, --aws-profile string (required) set AWS profile (overrides value in ize.toml and IZE_AWS_PROFILE / AWS_PROFILE if any of them are set) + -r, --aws-region string (required) set AWS region (overrides value in ize.toml and IZE_AWS_REGION / AWS_REGION if any of them are set) + -c, --config-file string set config file name + -e, --env string (required) set environment name (overrides value set in IZE_ENV / ENV if any of them are set) + -l, --log-level string set log level. Possible levels: info, debug, trace, panic, warn, error, fatal(default) + -n, --namespace string (required) set namespace (overrides value in ize.toml and IZE_NAMESPACE / NAMESPACE if any of them are set) + --plain-text enable plain text + --prefer-runtime string set prefer runtime (native or docker) (default "native") + --terraform-version string set terraform-version +``` + +### SEE ALSO + +* [ize](ize.md) - +* [ize tunnel down](ize_tunnel_down.md) - Close tunnel +* [ize tunnel status](ize_tunnel_status.md) - Tunnel status +* [ize tunnel up](ize_tunnel_up.md) - Open tunnel with sending ssh key + +###### Auto generated by spf13/cobra on 22-Sep-2022 diff --git a/website/commands/ize_tunnel_down.md b/website/commands/ize_tunnel_down.md new file mode 100644 index 00000000..1067dd23 --- /dev/null +++ b/website/commands/ize_tunnel_down.md @@ -0,0 +1,37 @@ +## ize tunnel down + +Close tunnel + +### Synopsis + +Close tunnel + +``` +ize tunnel down [flags] +``` + +### Options + +``` + -h, --help help for down +``` + +### Options inherited from parent commands + +``` + -p, --aws-profile string (required) set AWS profile (overrides value in ize.toml and IZE_AWS_PROFILE / AWS_PROFILE if any of them are set) + -r, --aws-region string (required) set AWS region (overrides value in ize.toml and IZE_AWS_REGION / AWS_REGION if any of them are set) + -c, --config-file string set config file name + -e, --env string (required) set environment name (overrides value set in IZE_ENV / ENV if any of them are set) + -l, --log-level string set log level. Possible levels: info, debug, trace, panic, warn, error, fatal(default) + -n, --namespace string (required) set namespace (overrides value in ize.toml and IZE_NAMESPACE / NAMESPACE if any of them are set) + --plain-text enable plain text + --prefer-runtime string set prefer runtime (native or docker) (default "native") + --terraform-version string set terraform-version +``` + +### SEE ALSO + +* [ize tunnel](ize_tunnel.md) - Tunnel management + +###### Auto generated by spf13/cobra on 22-Sep-2022 diff --git a/website/commands/ize_tunnel_status.md b/website/commands/ize_tunnel_status.md new file mode 100644 index 00000000..35a15733 --- /dev/null +++ b/website/commands/ize_tunnel_status.md @@ -0,0 +1,37 @@ +## ize tunnel status + +Tunnel status + +### Synopsis + +Tunnel running status + +``` +ize tunnel status [flags] +``` + +### Options + +``` + -h, --help help for status +``` + +### Options inherited from parent commands + +``` + -p, --aws-profile string (required) set AWS profile (overrides value in ize.toml and IZE_AWS_PROFILE / AWS_PROFILE if any of them are set) + -r, --aws-region string (required) set AWS region (overrides value in ize.toml and IZE_AWS_REGION / AWS_REGION if any of them are set) + -c, --config-file string set config file name + -e, --env string (required) set environment name (overrides value set in IZE_ENV / ENV if any of them are set) + -l, --log-level string set log level. Possible levels: info, debug, trace, panic, warn, error, fatal(default) + -n, --namespace string (required) set namespace (overrides value in ize.toml and IZE_NAMESPACE / NAMESPACE if any of them are set) + --plain-text enable plain text + --prefer-runtime string set prefer runtime (native or docker) (default "native") + --terraform-version string set terraform-version +``` + +### SEE ALSO + +* [ize tunnel](ize_tunnel.md) - Tunnel management + +###### Auto generated by spf13/cobra on 22-Sep-2022 diff --git a/website/commands/ize_tunnel_up.md b/website/commands/ize_tunnel_up.md new file mode 100644 index 00000000..5ef4e4e5 --- /dev/null +++ b/website/commands/ize_tunnel_up.md @@ -0,0 +1,42 @@ +## ize tunnel up + +Open tunnel with sending ssh key + +### Synopsis + +Open tunnel with sending ssh key to remote server + +``` +ize tunnel up [flags] +``` + +### Options + +``` + --bastion-instance-id string set bastion host instance id (i-xxxxxxxxxxxxxxxxx) + --forward-host strings set forward hosts for redirect with next format: :, :, :. In this case a free local port will be selected automatically. It's possible to set local manually using :: + -h, --help help for up + --ssh-private-key string set ssh key private path + --ssh-public-key string set ssh key public path + --strict-host-key-checking set strict host key checking (default true) +``` + +### Options inherited from parent commands + +``` + -p, --aws-profile string (required) set AWS profile (overrides value in ize.toml and IZE_AWS_PROFILE / AWS_PROFILE if any of them are set) + -r, --aws-region string (required) set AWS region (overrides value in ize.toml and IZE_AWS_REGION / AWS_REGION if any of them are set) + -c, --config-file string set config file name + -e, --env string (required) set environment name (overrides value set in IZE_ENV / ENV if any of them are set) + -l, --log-level string set log level. Possible levels: info, debug, trace, panic, warn, error, fatal(default) + -n, --namespace string (required) set namespace (overrides value in ize.toml and IZE_NAMESPACE / NAMESPACE if any of them are set) + --plain-text enable plain text + --prefer-runtime string set prefer runtime (native or docker) (default "native") + --terraform-version string set terraform-version +``` + +### SEE ALSO + +* [ize tunnel](ize_tunnel.md) - Tunnel management + +###### Auto generated by spf13/cobra on 22-Sep-2022 diff --git a/website/commands/ize_up.md b/website/commands/ize_up.md new file mode 100644 index 00000000..f7b9e5e6 --- /dev/null +++ b/website/commands/ize_up.md @@ -0,0 +1,60 @@ +## ize up + +Bring full application up from the bottom to the top. + +### Synopsis + + Deploy infrastructure or service. + App name must be specified for a bringing it up. + The infrastructure for the app must be ready to + receive the deployment (generally created via ize infra up in CI/CD). + +``` +ize up [flags] +``` + +### Examples + +``` + # Deploy all (config file required) + ize up + + # Deploy app (config file required) + ize up + + # Deploy app with explicitly specified config file + ize --config-file (or -c) /path/to/config up + + # Deploy app with explicitly specified config file passed via environment variable + export IZE_CONFIG_FILE=/path/to/config + ize up +``` + +### Options + +``` + --auto-approve approve deploy all + -h, --help help for up + --skip-gen skip generating terraform files +``` + +### Options inherited from parent commands + +``` + -p, --aws-profile string (required) set AWS profile (overrides value in ize.toml and IZE_AWS_PROFILE / AWS_PROFILE if any of them are set) + -r, --aws-region string (required) set AWS region (overrides value in ize.toml and IZE_AWS_REGION / AWS_REGION if any of them are set) + -c, --config-file string set config file name + -e, --env string (required) set environment name (overrides value set in IZE_ENV / ENV if any of them are set) + -l, --log-level string set log level. Possible levels: info, debug, trace, panic, warn, error, fatal(default) + -n, --namespace string (required) set namespace (overrides value in ize.toml and IZE_NAMESPACE / NAMESPACE if any of them are set) + --plain-text enable plain text + --prefer-runtime string set prefer runtime (native or docker) (default "native") + --terraform-version string set terraform-version +``` + +### SEE ALSO + +* [ize](ize.md) - +* [ize up infra](ize_up_infra.md) - Manage infra deployments + +###### Auto generated by spf13/cobra on 22-Sep-2022 diff --git a/website/commands/ize_up_infra.md b/website/commands/ize_up_infra.md new file mode 100644 index 00000000..54d8bfc7 --- /dev/null +++ b/website/commands/ize_up_infra.md @@ -0,0 +1,55 @@ +## ize up infra + +Manage infra deployments + +### Synopsis + + Only deploy infrastructure. + +``` +ize up infra [flags] +``` + +### Examples + +``` + # Deploy infra with flags + ize up infra --infra.terraform.version --infra.terraform.aws-region --infra.terraform.aws-profile + + # Deploy infra with explicitly specified config file + ize --config-file /path/to/config up infra + + # Deploy infra with explicitly specified config file passed via environment variable + export IZE_CONFIG_FILE=/path/to/config + ize up infra +``` + +### Options + +``` + -h, --help help for infra + --infra.terraform.aws-profile string set aws profile + --infra.terraform.aws-region string set aws region + --infra.terraform.version string set terraform version + --skip-gen skip generating terraform files +``` + +### Options inherited from parent commands + +``` + -p, --aws-profile string (required) set AWS profile (overrides value in ize.toml and IZE_AWS_PROFILE / AWS_PROFILE if any of them are set) + -r, --aws-region string (required) set AWS region (overrides value in ize.toml and IZE_AWS_REGION / AWS_REGION if any of them are set) + -c, --config-file string set config file name + -e, --env string (required) set environment name (overrides value set in IZE_ENV / ENV if any of them are set) + -l, --log-level string set log level. Possible levels: info, debug, trace, panic, warn, error, fatal(default) + -n, --namespace string (required) set namespace (overrides value in ize.toml and IZE_NAMESPACE / NAMESPACE if any of them are set) + --plain-text enable plain text + --prefer-runtime string set prefer runtime (native or docker) (default "native") + --terraform-version string set terraform-version +``` + +### SEE ALSO + +* [ize up](ize_up.md) - Bring full application up from the bottom to the top. + +###### Auto generated by spf13/cobra on 22-Sep-2022 diff --git a/website/commands/ize_validate.md b/website/commands/ize_validate.md new file mode 100644 index 00000000..6dd384a6 --- /dev/null +++ b/website/commands/ize_validate.md @@ -0,0 +1,33 @@ +## ize validate + +Validate configuration (only for test) + +``` +ize validate [flags] +``` + +### Options + +``` + -h, --help help for validate +``` + +### Options inherited from parent commands + +``` + -p, --aws-profile string (required) set AWS profile (overrides value in ize.toml and IZE_AWS_PROFILE / AWS_PROFILE if any of them are set) + -r, --aws-region string (required) set AWS region (overrides value in ize.toml and IZE_AWS_REGION / AWS_REGION if any of them are set) + -c, --config-file string set config file name + -e, --env string (required) set environment name (overrides value set in IZE_ENV / ENV if any of them are set) + -l, --log-level string set log level. Possible levels: info, debug, trace, panic, warn, error, fatal(default) + -n, --namespace string (required) set namespace (overrides value in ize.toml and IZE_NAMESPACE / NAMESPACE if any of them are set) + --plain-text enable plain text + --prefer-runtime string set prefer runtime (native or docker) (default "native") + --terraform-version string set terraform-version +``` + +### SEE ALSO + +* [ize](ize.md) - + +###### Auto generated by spf13/cobra on 22-Sep-2022 diff --git a/website/commands/ize_version.md b/website/commands/ize_version.md new file mode 100644 index 00000000..a84bc488 --- /dev/null +++ b/website/commands/ize_version.md @@ -0,0 +1,33 @@ +## ize version + +Show IZE version + +``` +ize version [flags] +``` + +### Options + +``` + -h, --help help for version +``` + +### Options inherited from parent commands + +``` + -p, --aws-profile string (required) set AWS profile (overrides value in ize.toml and IZE_AWS_PROFILE / AWS_PROFILE if any of them are set) + -r, --aws-region string (required) set AWS region (overrides value in ize.toml and IZE_AWS_REGION / AWS_REGION if any of them are set) + -c, --config-file string set config file name + -e, --env string (required) set environment name (overrides value set in IZE_ENV / ENV if any of them are set) + -l, --log-level string set log level. Possible levels: info, debug, trace, panic, warn, error, fatal(default) + -n, --namespace string (required) set namespace (overrides value in ize.toml and IZE_NAMESPACE / NAMESPACE if any of them are set) + --plain-text enable plain text + --prefer-runtime string set prefer runtime (native or docker) (default "native") + --terraform-version string set terraform-version +``` + +### SEE ALSO + +* [ize](ize.md) - + +###### Auto generated by spf13/cobra on 22-Sep-2022 From d5c89ffe75596073fe870dabc7b1a1cf40082ef6 Mon Sep 17 00:00:00 2001 From: Dmitry Borisov Date: Thu, 22 Sep 2022 13:31:52 +0300 Subject: [PATCH 3/6] fix --- .github/workflows/run.e2e-tests.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/run.e2e-tests.yml b/.github/workflows/run.e2e-tests.yml index a37e5e5e..01982d6f 100644 --- a/.github/workflows/run.e2e-tests.yml +++ b/.github/workflows/run.e2e-tests.yml @@ -100,7 +100,9 @@ jobs: go test -v --timeout 0 --tags="e2e ecs_apps" ./test-e2e - name: Destroy Infra - run: ize down infra + run: | + cd "${{ env.IZE_EXAMPLES_PATH }}/.ize/env/${{ env.ENV }}" + ize down infra test-tunnel: name: Bastion Tunnel Monorepo @@ -161,7 +163,9 @@ jobs: go test -v --timeout 0 --tags="e2e bastion_tunnel" ./test-e2e - name: Destroy Infra - run: ize down infra + run: | + cd "${{ env.IZE_EXAMPLES_PATH }}/.ize/env/${{ env.ENV }}" + ize down infra test-terraform: name: Terraform Commands @@ -223,4 +227,6 @@ jobs: go test -v --timeout 0 --tags="e2e terraform" ./test-e2e - name: Destroy Infra - run: ize down infra + run: | + cd "${{ env.IZE_EXAMPLES_PATH }}/.ize/env/${{ env.ENV }}" + ize down infra From 1529ffe629611e545e5e810767f5203a5e8f2ab8 Mon Sep 17 00:00:00 2001 From: Dmitry Borisov Date: Thu, 22 Sep 2022 13:36:57 +0300 Subject: [PATCH 4/6] fix2 --- .github/workflows/run.e2e-tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/run.e2e-tests.yml b/.github/workflows/run.e2e-tests.yml index 01982d6f..05629bda 100644 --- a/.github/workflows/run.e2e-tests.yml +++ b/.github/workflows/run.e2e-tests.yml @@ -101,7 +101,7 @@ jobs: - name: Destroy Infra run: | - cd "${{ env.IZE_EXAMPLES_PATH }}/.ize/env/${{ env.ENV }}" + cd "${{ env.IZE_EXAMPLES_PATH }}" ize down infra test-tunnel: @@ -164,7 +164,7 @@ jobs: - name: Destroy Infra run: | - cd "${{ env.IZE_EXAMPLES_PATH }}/.ize/env/${{ env.ENV }}" + cd "${{ env.IZE_EXAMPLES_PATH }}" ize down infra test-terraform: @@ -228,5 +228,5 @@ jobs: - name: Destroy Infra run: | - cd "${{ env.IZE_EXAMPLES_PATH }}/.ize/env/${{ env.ENV }}" + cd "${{ env.IZE_EXAMPLES_PATH }}" ize down infra From 9862d0dd1dce507582d7fd9bd0ba34e8eac8cda6 Mon Sep 17 00:00:00 2001 From: Dmitry Borisov Date: Thu, 22 Sep 2022 14:36:31 +0300 Subject: [PATCH 5/6] fix2 --- .github/workflows/run.e2e-tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/run.e2e-tests.yml b/.github/workflows/run.e2e-tests.yml index 05629bda..c66fb017 100644 --- a/.github/workflows/run.e2e-tests.yml +++ b/.github/workflows/run.e2e-tests.yml @@ -102,7 +102,7 @@ jobs: - name: Destroy Infra run: | cd "${{ env.IZE_EXAMPLES_PATH }}" - ize down infra + ize down --auto-approve test-tunnel: name: Bastion Tunnel Monorepo @@ -165,7 +165,7 @@ jobs: - name: Destroy Infra run: | cd "${{ env.IZE_EXAMPLES_PATH }}" - ize down infra + ize down --auto-approve test-terraform: name: Terraform Commands @@ -229,4 +229,4 @@ jobs: - name: Destroy Infra run: | cd "${{ env.IZE_EXAMPLES_PATH }}" - ize down infra + ize down --auto-approve From bf8f90e2c132345f9c5270c3fd4036007f31b409 Mon Sep 17 00:00:00 2001 From: Dmitry Borisov Date: Thu, 22 Sep 2022 15:28:22 +0300 Subject: [PATCH 6/6] fix2 --- .github/workflows/run.e2e-tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/run.e2e-tests.yml b/.github/workflows/run.e2e-tests.yml index c66fb017..d1eae919 100644 --- a/.github/workflows/run.e2e-tests.yml +++ b/.github/workflows/run.e2e-tests.yml @@ -99,7 +99,7 @@ jobs: run: | go test -v --timeout 0 --tags="e2e ecs_apps" ./test-e2e - - name: Destroy Infra + - name: Cleanup Infra run: | cd "${{ env.IZE_EXAMPLES_PATH }}" ize down --auto-approve @@ -162,7 +162,7 @@ jobs: run: | go test -v --timeout 0 --tags="e2e bastion_tunnel" ./test-e2e - - name: Destroy Infra + - name: Cleanup Infra run: | cd "${{ env.IZE_EXAMPLES_PATH }}" ize down --auto-approve @@ -226,7 +226,7 @@ jobs: run: | go test -v --timeout 0 --tags="e2e terraform" ./test-e2e - - name: Destroy Infra + - name: Cleanup Infra run: | cd "${{ env.IZE_EXAMPLES_PATH }}" ize down --auto-approve