Skip to content
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

Add infra destroy after go tests(ize-586) and copy md files to website/commands (ize-589) #465

Merged
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion .github/workflows/run.e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ jobs:
run: |
go test -v --timeout 0 --tags="e2e ecs_apps" ./test-e2e

- name: Destroy Infra
kobrikx marked this conversation as resolved.
Show resolved Hide resolved
run: |
cd "${{ env.IZE_EXAMPLES_PATH }}"
ize down --auto-approve

test-tunnel:
name: Bastion Tunnel Monorepo
Expand Down Expand Up @@ -157,7 +161,11 @@ jobs:
- name: Run Tests
run: |
go test -v --timeout 0 --tags="e2e bastion_tunnel" ./test-e2e


- name: Destroy Infra
run: |
cd "${{ env.IZE_EXAMPLES_PATH }}"
ize down --auto-approve

test-terraform:
name: Terraform Commands
Expand Down Expand Up @@ -217,3 +225,8 @@ jobs:
- name: Run Tests
run: |
go test -v --timeout 0 --tags="e2e terraform" ./test-e2e

- name: Destroy Infra
run: |
cd "${{ env.IZE_EXAMPLES_PATH }}"
ize down --auto-approve
57 changes: 57 additions & 0 deletions website/commands/ize.md
Original file line number Diff line number Diff line change
@@ -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
52 changes: 52 additions & 0 deletions website/commands/ize_build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
## ize build

build apps

### Synopsis

Build app.
App name must be specified for a app build.

```
ize build [flags] <app name>
```

### Examples

```
# Build app (config file required)
ize build <app name>

# Build app with explicitly specified config file
ize --config-file (or -c) /path/to/config build <app name>

# Build app with explicitly specified config file passed via environment variable.
export IZE_CONFIG_FILE=/path/to/config
ize build <app name>
```

### 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
33 changes: 33 additions & 0 deletions website/commands/ize_configure.md
Original file line number Diff line number Diff line change
@@ -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
42 changes: 42 additions & 0 deletions website/commands/ize_console.md
Original file line number Diff line number Diff line change
@@ -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
60 changes: 60 additions & 0 deletions website/commands/ize_deploy.md
Original file line number Diff line number Diff line change
@@ -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] <app name>
```

### Examples

```
# Deploy app (config file required)
ize deploy <app name>

# Deploy app via config file
ize --config-file (or -c) /path/to/config deploy <app name>

# Deploy app via config file installed from env
export IZE_CONFIG_FILE=/path/to/config
ize deploy <app name>

# Redeploy app (ECS only)
ize deploy <app name> --task-definition-revision <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
58 changes: 58 additions & 0 deletions website/commands/ize_down.md
Original file line number Diff line number Diff line change
@@ -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 <app name>

# Destroy app with explicitly specified config file
ize --config-file (or -c) /path/to/config down <app name>

# Destroy app with explicitly specified config file passed via environment variable.
export IZE_CONFIG_FILE=/path/to/config
ize down <app name>
```

### 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
37 changes: 37 additions & 0 deletions website/commands/ize_down_infra.md
Original file line number Diff line number Diff line change
@@ -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
Loading