Install pre-commit hooks before working.
pre-commit installFirst of all create a new workspace according to your need by running the following command.
./do new {env} #where env can be dev/prod/uat or anything.This will create a new workspace and switch to it. Also a new file is created in ./env called {env}.tfvars.
Passing the environment name is mandatory while running the script because it avoids having any configuration related issues in the future. If you have long running tasks just export your env in the terminal by running the following command.
export ENV=dev./do plan
Usage: ./do <command> [<args>]
Commands:
plan
destroy
init
apply
gen
new <name>
help
If you ha
| Name | Version |
|---|---|
| aws | ~> 3.0 |
| Name | Version |
|---|---|
| aws | 3.75.1 |
| Name | Source | Version |
|---|---|---|
| vpc | ./modules/vpc | n/a |
| Name | Type |
|---|---|
| aws_s3_bucket.default | resource |
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| bucket_name | The name of the bucket to store the Terraform state | string |
n/a | yes |
| region | The region to deploy infrastructure in | string |
n/a | yes |
No outputs.