variables.tf 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. variable "name" {
  2. description = "the name of your stack, e.g. \"customer1\""
  3. }
  4. variable "environment" {
  5. description = "the name of your environment, e.g. \"prod-west\""
  6. }
  7. variable "key_name" {
  8. description = "the name of the ssh key to use, e.g. \"internal-key\""
  9. }
  10. variable "domain_name" {
  11. description = "the internal DNS name to use with services"
  12. default = "stack.local"
  13. }
  14. variable "region" {
  15. description = "the AWS region in which resources are created, you must set the availability_zones variable as well if you define this value to something other than the default"
  16. default = "eu-west-1"
  17. }
  18. variable "cidr" {
  19. description = "the CIDR block to provision for the VPC, if set to something other than the default, both internal_subnets and external_subnets have to be defined as well"
  20. default = "10.30.0.0/16"
  21. }
  22. variable "internal_subnets" {
  23. description = "a list of CIDRs for internal subnets in your VPC, must be set if the cidr variable is defined, needs to have as many elements as there are availability zones"
  24. default = ["10.30.0.0/19" ,"10.30.64.0/19", "10.30.128.0/19"]
  25. }
  26. variable "external_subnets" {
  27. description = "a list of CIDRs for external subnets in your VPC, must be set if the cidr variable is defined, needs to have as many elements as there are availability zones"
  28. default = ["10.30.32.0/20", "10.30.96.0/20", "10.30.160.0/20"]
  29. }
  30. variable "availability_zones" {
  31. description = "a comma-separated list of availability zones, defaults to all AZ of the region, if set to something other than the defaults, both internal_subnets and external_subnets have to be defined as well"
  32. default = ["eu-west-1a", "eu-west-1b", "eu-west-1c"]
  33. }