Make examples in READMEs runnable and testable

This commit is contained in:
Julio Castillo
2020-11-07 10:28:33 +01:00
parent 3bb8ca5388
commit eecdee63e6
40 changed files with 624 additions and 272 deletions

View File

@@ -21,6 +21,7 @@ module "service-directory" {
]
}
}
# tftest:modules=1:resources=2
```
### Services with IAM and endpoints
@@ -49,6 +50,7 @@ module "service-directory" {
"one/second" = { address = "127.0.0.2", port = 80, metadata = {} }
}
}
# tftest:modules=1:resources=5
```
### DNS based zone
@@ -80,10 +82,10 @@ module "dns-sd" {
type = "service-directory"
name = "apps"
domain = "apps.example.org."
client_networks = [local.vpc_self_link]
client_networks = [var.vpc.self_link]
service_directory_namespace = module.service-directory.id
}
# tftest:modules=2:resources=5
```
<!-- BEGIN TFDOC -->