Untitled

 avatar
master007
plain_text
2 months ago
1.3 kB
2
Indexable
# AWS Provider
region = "us-east-1"

# Common Variables
environment_name = "production"
project_name     = "myapp"

# VPC Module Variables
vpc_name                      = "myapp-vpc"
nat_gateway_count             = 2
vpc_cidr_start                = "10.0.0.0"
vpc_cidr_netmask              = 16
private_subnet_newbits        = 3
public_subnet_newbits         = 8
public_subnet_netnum_offset   = 128
subnet_count                  = 2
enable_s3_endpoint            = true
enable_dynamodb_endpoint      = true
cidr_all                      = "0.0.0.0/0"
vpc_cidr_blocks = {
  shared = "10.0.0.0/22"
}

# Elastic Beanstalk Module Variables
beanstalk_app_name        = "myapp"
beanstalk_app_description = "My Application on Elastic Beanstalk"
beanstalk_environment_name = "myapp-env"
beanstalk_platform_arn        = "arn:aws:elasticbeanstalk:us-east-1::platform/Docker running on 64bit Amazon Linux 2023/4.4.1"
webserver_instance_type   = "t3a.xlarge"
worker_instance_type      = "t3a.medium"
webserver_min_size        = 2
webserver_max_size        = 4
worker_min_size           = 2
worker_max_size           = 4
beanstalk_role            = "aws-elasticbeanstalk-role"
ssh_allowed_cidr          = "203.0.113.0/24"  # Replace with your trusted IP range
tags = {
  Department = "Development"
  CostCenter = "12345"
}
Leave a Comment