-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3129 from berendt/example_unify_syntax
examples: unify the configuration file syntax
- Loading branch information
Showing
26 changed files
with
379 additions
and
382 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
output "security_group" { | ||
value = "${aws_security_group.default.id}" | ||
value = "${aws_security_group.default.id}" | ||
} | ||
output "launch_configuration" { | ||
value = "${aws_launch_configuration.web-lc.id}" | ||
value = "${aws_launch_configuration.web-lc.id}" | ||
} | ||
output "asg_name" { | ||
value = "${aws_autoscaling_group.web-asg.id}" | ||
value = "${aws_autoscaling_group.web-asg.id}" | ||
} | ||
output "elb_name" { | ||
value = "${aws_elb.web-elb.dns_name}" | ||
} | ||
value = "${aws_elb.web-elb.dns_name}" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,42 @@ | ||
variable "aws_region" { | ||
description = "The AWS region to create things in." | ||
default = "us-east-1" | ||
description = "The AWS region to create things in." | ||
default = "us-east-1" | ||
} | ||
|
||
# ubuntu-trusty-14.04 (x64) | ||
variable "aws_amis" { | ||
default = { | ||
"us-east-1" = "ami-5f709f34" | ||
"us-west-2" = "ami-7f675e4f" | ||
} | ||
default = { | ||
"us-east-1" = "ami-5f709f34" | ||
"us-west-2" = "ami-7f675e4f" | ||
} | ||
} | ||
|
||
variable "availability_zones" { | ||
default = "us-east-1b,us-east-1c,us-east-1d,us-east-1e" | ||
description = "List of availability zones, use AWS CLI to find your " | ||
default = "us-east-1b,us-east-1c,us-east-1d,us-east-1e" | ||
description = "List of availability zones, use AWS CLI to find your " | ||
} | ||
|
||
variable "key_name" { | ||
description = "Name of AWS key pair" | ||
description = "Name of AWS key pair" | ||
} | ||
|
||
variable "instance_type" { | ||
default = "t2.micro" | ||
description = "AWS instance type" | ||
default = "t2.micro" | ||
description = "AWS instance type" | ||
} | ||
|
||
variable "asg_min" { | ||
description = "Min numbers of servers in ASG" | ||
default = "1" | ||
description = "Min numbers of servers in ASG" | ||
default = "1" | ||
} | ||
|
||
variable "asg_max" { | ||
description = "Max numbers of servers in ASG" | ||
default = "2" | ||
description = "Max numbers of servers in ASG" | ||
default = "2" | ||
} | ||
|
||
variable "asg_desired" { | ||
description = "Desired numbers of servers in ASG" | ||
default = "1" | ||
description = "Desired numbers of servers in ASG" | ||
default = "1" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
variable "aws_region" { | ||
description = "The AWS region to create things in." | ||
default = "us-west-2" | ||
description = "The AWS region to create things in." | ||
default = "us-west-2" | ||
} | ||
|
||
# Ubuntu Precise 12.04 LTS (x64) | ||
variable "aws_amis" { | ||
default = { | ||
"eu-west-1" = "ami-b1cf19c6" | ||
"us-east-1" = "ami-de7ab6b6" | ||
"us-west-1" = "ami-3f75767a" | ||
"us-west-2" = "ami-21f78e11" | ||
} | ||
default = { | ||
"eu-west-1" = "ami-b1cf19c6" | ||
"us-east-1" = "ami-de7ab6b6" | ||
"us-west-1" = "ami-3f75767a" | ||
"us-west-2" = "ami-21f78e11" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
variable "aws_region" { | ||
description = "The AWS region to create things in." | ||
default = "us-east-1" | ||
description = "The AWS region to create things in." | ||
default = "us-east-1" | ||
} | ||
|
||
# ubuntu-trusty-14.04 (x64) | ||
variable "aws_amis" { | ||
default = { | ||
"us-east-1" = "ami-5f709f34" | ||
"us-west-2" = "ami-7f675e4f" | ||
} | ||
default = { | ||
"us-east-1" = "ami-5f709f34" | ||
"us-west-2" = "ami-7f675e4f" | ||
} | ||
} | ||
|
||
variable "key_name" { | ||
description = "Name of the SSH keypair to use in AWS." | ||
description = "Name of the SSH keypair to use in AWS." | ||
} | ||
|
Oops, something went wrong.