Skip to content

Commit

Permalink
Correct var. to infrastructure_support
Browse files Browse the repository at this point in the history
When we create an environment using the CLI tool, the variable
`infrastructure_support` is defined in `variables.tf`

This change corrects the template to use the correct variable name.
Prior to this, the following sequence of commands will not work:

```
cloud-platform environment create
cloud-platform environment rds create
```

...because the pipeline will throw this error:

```
Error: Reference to undeclared input variable

  on rds.tf line 18, in module "rds":
  18:   infrastructure-support = var.infrastructure-support

An input variable with the name "infrastructure-support" has not been
declared. Did you mean "infrastructure_support"?
```
  • Loading branch information
digitalronin committed Feb 12, 2021
1 parent 1bfd658 commit 7fb0cc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template/rds.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module "rds" {
# change the postgres version as you see fit.
db_engine_version = "10"
environment-name = var.environment
infrastructure-support = var.infrastructure-support
infrastructure-support = var.infrastructure_support

# rds_family should be one of: postgres9.4, postgres9.5, postgres9.6, postgres10, postgres11
# Pick the one that defines the postgres version the best
Expand Down

0 comments on commit 7fb0cc2

Please sign in to comment.