fix variables in lab 1
This commit is contained in:
parent
bdd349bdd3
commit
b70b78f207
3 changed files with 28 additions and 0 deletions
|
@ -118,6 +118,9 @@ Now lets run some code.
|
||||||
First lets initialise our terraform/tofu environment:
|
First lets initialise our terraform/tofu environment:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
cd 1-getting-started/code/
|
||||||
tofu init
|
tofu init
|
||||||
```
|
```
|
||||||
|
|
||||||
|
![tofu init output on screen](./img/tofu-init.png)
|
||||||
|
|
||||||
|
|
|
@ -9,3 +9,28 @@ variable "environment" {
|
||||||
type = string
|
type = string
|
||||||
default = "dev"
|
default = "dev"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
variable "private_subnet_suffix" {
|
||||||
|
description = "Suffix to append to private subnets name"
|
||||||
|
type = string
|
||||||
|
default = "private-"
|
||||||
|
}
|
||||||
|
|
||||||
|
variable "public_subnet_suffix" {
|
||||||
|
description = "Suffix to append to public subnets name"
|
||||||
|
type = string
|
||||||
|
default = "public-"
|
||||||
|
}
|
||||||
|
|
||||||
|
variable "database_subnet_suffix" {
|
||||||
|
description = "Suffix to append to database subnets name"
|
||||||
|
type = string
|
||||||
|
default = "rds-"
|
||||||
|
}
|
||||||
|
|
||||||
|
variable "additional_tags" {
|
||||||
|
description = "Additional default resource tags"
|
||||||
|
type = map(string)
|
||||||
|
default = {}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
BIN
1-getting-started/img/tofu-init.png
Normal file
BIN
1-getting-started/img/tofu-init.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 392 KiB |
Loading…
Reference in a new issue