forked from hashicorp-guides/pet-nulls-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomponents.tfstack.hcl
More file actions
51 lines (40 loc) · 750 Bytes
/
components.tfstack.hcl
File metadata and controls
51 lines (40 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
variable "prefix" {
type = string
}
variable "instances" {
type = number
}
required_providers {
random = {
source = "hashicorp/random"
version = "~> 3.5.1"
}
null = {
source = "hashicorp/null"
version = "~> 3.2.2"
}
}
provider "random" "this" {}
provider "null" "this" {}
component "pet" {
source = "./pet"
# source = "git::https://github.com/ker-an/pet-module.git"
inputs = {
prefix = var.prefix
}
providers = {
random = provider.random.this
}
}
component "nulls" {
source = "./nulls"
inputs = {
pet = component.pet.name
instances = var.instances
}
providers = {
null = provider.null.this
}
}