-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathvariables.tf
More file actions
30 lines (26 loc) · 921 Bytes
/
variables.tf
File metadata and controls
30 lines (26 loc) · 921 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
variable "instance_name" {
description = "Name to be used on all resources as prefix"
type = string
default = "example-instance"
}
variable "instance_type" {
description = "The type of instance to start"
type = string
default = "t3.micro"
}
variable "ami_id" {
description = "ID of AMI to use for the instance"
type = string
default = "ami-0dee22c13ea7a9a67" # Amazon Linux 2023 AMI in ap-south-1 (verify this if needed, but using a placeholder/common one is usually okay for templates)
}
variable "aws_subnet_id" {
description = "The VPC Subnet ID to launch the instance in"
type = string
sensitive = true
default = "" # Leave empty for default VPC, or specify a subnet ID if needed
}
variable "region" {
description = "The AWS region to deploy resources in"
type = string
default = "" # Replace with your desired AWS region
}