Skip to content

Commit

Permalink
Fix documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
kaxil committed Jul 23, 2019
1 parent be67036 commit f332bb4
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 9 deletions.
33 changes: 26 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ Requires Terraform 0.12+

This repo uses the following Terraform modules:

| Module | Version |
|--------------------------------------------------------------------------------------------------------------------------------------|---------|
| [astronomer/astronomer-gcp/google](https://registry.terraform.io/modules/astronomer/astronomer-gcp/) | 0.2.4 |
| [astronomer/astronomer-system-components/kubernetes](https://registry.terraform.io/modules/astronomer/astronomer-system-components/) | 0.0.3 |
| [astronomer/astronomer/kubernetes](https://registry.terraform.io/modules/astronomer/astronomer/) | 1.0.2 |
| Module |
|--------------------------------------------------------------------------------------------------------------------------------------|
| [astronomer/astronomer-gcp/google](https://registry.terraform.io/modules/astronomer/astronomer-gcp/) |
| [astronomer/astronomer-system-components/kubernetes](https://registry.terraform.io/modules/astronomer/astronomer-system-components/) |
| [astronomer/astronomer/kubernetes](https://registry.terraform.io/modules/astronomer/astronomer/) |

These modules are downloaded from Terraform Registry into a local `.terraform` directory.

Expand All @@ -28,12 +28,31 @@ These modules are downloaded from Terraform Registry into a local `.terraform` d

Example:
```
project = "astronomer-cloud-dev-236021"
email = "[email protected]"
deployment_id = "staging"
dns_managed_zone = "steven-zone"
```

1. Copy `providers.tf.example` & rename it to `providers.tf` and replace `PROJECT` with your GCP Project ID:

```bash
cp providers.tf.example providers.tf
export PROJECT=GCP_PROJECT_ID
sed -i "s/PROJECT/$PROJECT/g" providers.tf
```

1. (Optional) If you want to use remote Terraform state file, copy `backend.tf.example` & rename it to `backend.tf` & replace `BUCKET` & `REPLACE` with appropriate values.
```bash
cp backend.tf.example backend.tf
export DEPLOYMENT_ID=DEPLOYMENT_ID # Set this value
export STATE_BUCKET=STATE_BUCKET # Set this value
sed -i "s/REPLACE/$DEPLOYMENT_ID/g" backend.tf
sed -i "s/BUCKET/$STATE_BUCKET/g" backend.tf
```

1. Run the `deploy.sh` bash script:

```bash
Expand All @@ -55,7 +74,7 @@ These modules are downloaded from Terraform Registry into a local `.terraform` d

```bash
export https_proxy=http://127.0.0.1:1234
export no_proxy="googleapis.com,.google.com,metadata,.googleapis.com,github.com,.github.com"
export no_proxy="googleapis.com,.google.com,metadata,.googleapis.com,github.com,.github.com,.acme-v02.api.letsencrypt.org,acme-v02.api.letsencrypt.org"
terraform destroy
# OR
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module "system_components" {
dependencies = [module.gcp.depended_on]
source = "astronomer/astronomer-system-components/kubernetes"
version = "0.1.0"
enable_istio = true
enable_istio = var.enable_istio
}

# Install the Astronomer platform via a helm chart
Expand Down
1 change: 0 additions & 1 deletion terraform.tfvars.sample
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
project = "GCP_PROJECT_ID"
email = "YOUR_EMAIL_ID"
deployment_id = "staging"
dns_managed_zone = "steven-zone"

0 comments on commit f332bb4

Please sign in to comment.