Skip to content

Instantly share code, notes, and snippets.

@shreeegupta
Created May 26, 2023 16:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shreeegupta/cd704a8398ecdc4b6cfe0c4af709bd87 to your computer and use it in GitHub Desktop.
Save shreeegupta/cd704a8398ecdc4b6cfe0c4af709bd87 to your computer and use it in GitHub Desktop.
two_tier_architecture_using_terraform/variables.tf
# Variables
variable "env" {
description = "Environment Name"
type = string
}
variable "aws_region" {
description = "AWS deployment region"
type = string
}
variable "ec2_name" {
description = "EC2 Web Server name"
type = string
}
variable "ssh_key" {
description = "ssh key name"
type = string
}
variable "ami" {
description = "AMI"
type = string
}
variable "instance_type" {
description = "instance type"
type = string
}
variable "db_name" {
description = "The database name"
type = string
}
variable "db_username" {
description = "The master username for the database"
type = string
}
variable "db_password" {
description = "Password for the master DB user"
type = string
sensitive = true
}
variable "vpc_cidr" {
type = string
description = "This configures the vpc cidr"
}
variable "public_subnet1_az1_cidr" {
type = string
description = "This configures the public subnet1 cidr"
}
variable "public_subnet2_az2_cidr" {
type = string
description = "This configures the public subnet2 cidr"
}
variable "private_subnet1_az1_cidr" {
type = string
description = "This configures the private subnet1 cidr"
}
variable "private_subnet2_az2_cidr" {
type = string
description = "This configures the private subnet2 cidr"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment