brew install go
brew tap hashicorp/tap
brew install hashicorp/tap/terraform
- https://app.terraform.io/app
Create a workspace
- choose
API-driven workflow
- Workspace Name:
2022
Settings
>General
>Execution Mode
-> selectLocal
->Save settings
for terraform deploy
- https://cockroachlabs.cloud
- choose
Organization
->Access Management
- select
Service Accounts
Create Service Account
Create API key
- copy created token
.env
COCKROACH_API_KEY=
TF_VAR_sql_user_password=
POSTGRES_DB=postgres
POSTGRES_USER=postgres
POSTGRES_PASS=postgres
POSTGRES_PORT=15432
CONTAINER_NAME=
DATABASE_URL=
SLACK_TOKEN=
GITHUB_OWNER=
GITHUB_REPOSITORY=
SLACK_TOKEN=
SLACK_CHANNEL_ID=
IMAGE=