Skip to content

Commit 2c8f473

Browse files
committed
declares input parameters for our configurations
1 parent 66a17e3 commit 2c8f473

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

terraform/variables.tf

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
variable "aws_region" {
2+
description = "AWS region"
3+
type = string
4+
default = "us-east-1"
5+
}
6+
7+
variable "project_name" {
8+
description = "Project name for resource naming"
9+
type = string
10+
default = "api-server"
11+
}
12+
13+
variable "ami_id" {
14+
description = "Ubuntu AMI ID"
15+
type = string
16+
default = "ami-020cba7c55df1f615"
17+
}
18+
19+
variable "instance_type" {
20+
description = "EC2 instance type"
21+
type = string
22+
default = "t3.xlarge"
23+
}
24+
25+
variable "key_name" {
26+
description = "Key pair name"
27+
type = string
28+
default = "api-server"
29+
}
30+
31+
variable "vpc_cidr" {
32+
description = "VPC CIDR block"
33+
type = string
34+
default = "10.0.0.0/16"
35+
}
36+
37+
variable "public_subnet_cidr" {
38+
description = "Public subnet CIDR block"
39+
type = string
40+
default = "10.0.1.0/24"
41+
}
42+
43+
variable "availability_zone" {
44+
description = "Availability zone"
45+
type = string
46+
default = "us-east-1a"
47+
}

0 commit comments

Comments
 (0)