-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
34 lines (30 loc) · 1.01 KB
/
variables.tf
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
# Define the AWS region where the instance will be deployed
variable "region" {
description = "The AWS region to deploy the instance in"
type = string
default = "me-central-1"
}
# Define the instance type for the EC2 instance
variable "instance_type" {
description = "The instance type to use"
type = string
default = "t3.micro"
}
# Define the AMI ID for the EC2 instance
variable "ami_id" {
description = "The AMI ID to use for the instance"
type = string
default = "ami-07c6e9800ad06bb32" # Replace with the latest Amazon Linux 2023 AMI ID for your selected region
}
# Define the name of the key pair to be used for the instance
variable "key_name" {
description = "The name of the key pair to use for the instance"
type = string
default = "uptime_kuma_key"
}
# Define the path to the public key file for the key pair
variable "public_key_path" {
description = "The path to the public key file"
type = string
default = "~/.ssh/id_rsa.pub"
}