Skip to content

Commit

Permalink
Update docs following GCP environments TF var creation
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagojsag committed Apr 17, 2023
1 parent dcb913b commit 8e083d0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions infrastructure/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ copies of the app - environments. To do this, do the following:
it and wait for Github Action to finish processing.
- Apply the kubernetes project above once more. The deployments should succeed.

### The "environments" variable
### The "environments" variables

The `environments` variable can hold complex values that control many aspects of the deployment, so it's worth analyzing
in detail
The `environments` variables can hold complex values that control many aspects of the deployment, so it's worth analyzing
in detail. There are two variables of this type: `aws_environments` and `gcp_environments`. They both work in the same
way, with the first one controlling deployments to AWS, while the second one controls GCP deployments

```terraform
environments = {
aws_environments = {
sample : {
api_env_vars : [
{
Expand Down Expand Up @@ -64,6 +65,6 @@ The `value` in the key-value pair is an object with a set of properties, all of

### Handling production and staging

The production and staging environments are always deployed, even if they are not declared in the `environments` variable.
The AWS production and staging environments are always deployed, even if they are not declared in the `environments` variable.
However, if you'd like to customize their behavior (for example, reload fresh data), you can explicitly add them to the
`environments` variable, and specify your custom values for each configuration, as you would for any other env.

0 comments on commit 8e083d0

Please sign in to comment.