Skip to content

Commit

Permalink
test: use single instance in simple example test
Browse files Browse the repository at this point in the history
Signed-off-by: Bruce Becker <brucellino@protonmail.com>
  • Loading branch information
brucellino committed Aug 2, 2022
1 parent 6a539fa commit 0498960
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions examples/simple/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,23 @@ provider "digitalocean" {
token = data.vault_generic_secret.do.data["token"]
}



module "vpc" {
source = "brucellino/vpc/digitalocean"
version = "1.0.0"
vpc_name = "consultest"
project = {
description = "Consul Test project"
environment = "development"
name = "consulTest"
purpose = "Personal"
}
}

module "consul" {
source = "../../"
vpc = "consultest"
depends_on = [module.vpc]
source = "../../"
servers = 1
agents = 1
vpc_name = "consultest"
project_name = "consulTest"
}

0 comments on commit 0498960

Please sign in to comment.