Skip to content

Commit

Permalink
Change default Availability Zones to Any (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
guikcd authored and osterman committed Mar 2, 2018
1 parent 5c5efff commit b91c914
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Terraform module to provision AWS Elastic Beanstalk environment
| keypair |__REQUIRED__ |Name of SSH key that will be deployed on Elastic Beanstalk and DataPipeline instance. The key should be present in AWS|
| root_volume_size |"8" |The size of the EBS root volume|
| root_volume_type |"gp2" |The type of the EBS root volume|
| availability_zones |"Any 2" |Choose the number of AZs for your instances|
| loadbalancer_certificate_arn |"" |Load Balancer SSL certificate ARN. The certificate must be present in AWS Certificate Manager|
| loadbalancer_type |"classic" |Load Balancer type, e.g. 'application' or 'classic'|
| name |"app" |Solution name, e.g. 'app' or 'jenkins'|
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ resource "aws_elastic_beanstalk_environment" "default" {
setting {
namespace = "aws:autoscaling:asg"
name = "Availability Zones"
value = "Any 2"
value = "${var.availability_zones}"
}
setting {
namespace = "aws:autoscaling:asg"
Expand Down
5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ variable "root_volume_type" {
description = "The type of the EBS root volume"
}

variable "availability_zones" {
default = "Any 2"
description = "Choose the number of AZs for your instances"
}

variable "rolling_update_type" {
default = "Health"
description = "Set it to Immutable to apply the configuration change to a fresh group of instances"
Expand Down

0 comments on commit b91c914

Please sign in to comment.