АО
Size: a a a
АО
AK
AK
i
i
variable "mongo"{
degault = {
testing = {
count = 1
type = t2.mini
env = testing
}
staging = .......
resource "aws_instance" "mongodb" {
count = var.mongo.item.count
ami = var.ami
instance_type = var.mongo.item.type
tags = {
component = "mongodb"
app_env = mongo.item.env
}
}
i
i
resource "aws_instance" "mongodb" {
for_each = var.mongo
instance_type = each.value.type
R
U
U
U
U
U
DZ
GT
РР
GT
АО
АО
VT