Files
ENI-Terraform/atelier3/variables.tf
T
2026-08-05 09:11:14 +02:00

64 lines
1.3 KiB
Terraform

variable "aws_region" {
type = string
description = "AWS region"
default = "eu-west-3"
}
variable "vpc_cidr_block" {
description = "VPC CIDR block"
type = string
default = "10.0.0.0/16"
}
variable "subnets" {
description = "Subnets to create"
type = map(map(string))
default = {}
}
variable "images" {
description = "Images to use with instances"
type = map(map(string))
default = {
ubuntu = {
name_filter = "ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-*",
owner = "099720109477"
},
amazon = {
name_filter = "al2023-ami-*-kernel-6.1-x86_64"
owner = "137112412989"
}
}
}
variable "instances" {
description = "AWS instance type for app"
type = map(map(string))
default = {
demo01 = {
instance_type = "t3.micro",
image = "ubuntu",
subnet = "sub01"
},
demo02 = {
instance_type = "t3.micro",
image = "amazon",
subnet = "sub02"
}
}
}
variable "common_tags" {
type = map(string)
description = "Default common tags"
default = {
Owner = "user"
CourseId = "my_course"
}
}
variable "trigram" {
type = string
description = "User trigram"
}