Skip to content

Commit 88fa348

Browse files
committed
some more typo fixes and fmt.
1 parent 5607472 commit 88fa348

File tree

8 files changed

+44
-46
lines changed

8 files changed

+44
-46
lines changed

Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ For more complicated service discovery which handles cases like versioning, we'd
194194

195195
### Bastion
196196

197-
The bastion host acts as the "jump point" for the rest of the infrastructure. Since most of our instances aren't exposed to the external internet, the bastion acts as the gatekeeper for any direct SSH access.
197+
The bastion host acts as the "jump point" for the rest of the infrastructure. Since most of our instances are not exposed to the external internet, the bastion acts as the gatekeeper for any direct SSH access.
198198

199199
The bastion is provisioned using the key name that you pass to the stack (and hopefully have stored somewhere). If you ever need to access an instance directly, you can do it by "jumping through" the bastion:
200200

defaults/main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ variable "cidr" {
2424

2525
variable "default_ecs_ami" {
2626
type = "map"
27+
2728
default = {
2829
us-east-1 = "ami-dde4e6ca"
2930
us-west-1 = "ami-6d21770d"
@@ -41,6 +42,7 @@ variable "default_ecs_ami" {
4142
# http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/enable-access-logs.html#attach-bucket-policy
4243
variable "default_log_account_ids" {
4344
type = "map"
45+
4446
default = {
4547
us-east-1 = "127311923021"
4648
us-west-2 = "797873946194"

docs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Usage:
8888
# bastion
8989

9090
The bastion host acts as the "jump point" for the rest of the infrastructure.
91-
Since most of our instances aren't exposed to the external internet, the bastion acts as the gatekeeper for any direct SSH access.
91+
Since most of our instances are not exposed to the external internet, the bastion acts as the gatekeeper for any direct SSH access.
9292
The bastion is provisioned using the key name that you pass to the stack (and hopefully have stored somewhere).
9393
If you ever need to access an instance directly, you can do it by "jumping through" the bastion.
9494

@@ -130,7 +130,7 @@ Usage:
130130
# defaults
131131

132132
This module is used to set configuration defaults for the AWS infrastructure.
133-
It doesn't provide much value when used on its own because terraform makes it
133+
It does not provide much value when used on its own because terraform makes it
134134
hard to do dynamic generations of things like subnets, for now it's used as
135135
a helper module for the stack.
136136

@@ -248,7 +248,7 @@ Usage:
248248
| instance_type | The instance type to use, e.g t2.small | - | yes |
249249
| instance_ebs_optimized | When set to true the instance will be launched with EBS optimized turned on | `true` | no |
250250
| min_size | Minimum instance count | `3` | no |
251-
| max_size | Maxmimum instance count | `100` | no |
251+
| max_size | Maximum instance count | `100` | no |
252252
| desired_capacity | Desired instance count | `3` | no |
253253
| associate_public_ip_address | Should created instances be publicly accessible (if the SG allows) | `false` | no |
254254
| root_volume_size | Root volume size in GB | `25` | no |

ecs-cluster/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ variable "desired_capacity" {
9393

9494
variable "associate_public_ip_address" {
9595
description = "Should created instances be publicly accessible (if the SG allows)"
96-
default = false
96+
default = false
9797
}
9898

9999
variable "root_volume_size" {

iam-role/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ EOF
9595
}
9696

9797
resource "aws_iam_instance_profile" "default_ecs" {
98-
name = "ecs-instance-profile-${var.name}-${var.environment}"
99-
path = "/"
100-
role = "${aws_iam_role.default_ecs_role.name}"
98+
name = "ecs-instance-profile-${var.name}-${var.environment}"
99+
path = "/"
100+
role = "${aws_iam_role.default_ecs_role.name}"
101101
}
102102

103103
output "default_ecs_role_id" {

main.tf

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -46,31 +46,31 @@ variable "cidr" {
4646
}
4747

4848
variable "internal_subnets" {
49-
type = "list"
49+
type = "list"
5050
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"
51-
default = ["10.30.0.0/19" ,"10.30.64.0/19", "10.30.128.0/19"]
51+
default = ["10.30.0.0/19", "10.30.64.0/19", "10.30.128.0/19"]
5252
}
5353

5454
variable "external_subnets" {
55-
type = "list"
55+
type = "list"
5656
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"
5757
default = ["10.30.32.0/20", "10.30.96.0/20", "10.30.160.0/20"]
5858
}
5959

6060
variable "availability_zones" {
61-
type = "list"
61+
type = "list"
6262
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"
6363
default = ["us-west-2a", "us-west-2b", "us-west-2c"]
6464
}
6565

6666
variable "bastion_instance_type" {
6767
description = "Instance type for the bastion"
68-
default = "t2.micro"
68+
default = "t2.micro"
6969
}
7070

7171
variable "ecs_cluster_name" {
7272
description = "the name of the cluster, if not specified the variable name will be used"
73-
default = ""
73+
default = ""
7474
}
7575

7676
variable "ecs_instance_type" {
@@ -205,28 +205,28 @@ module "iam_role" {
205205
}
206206

207207
module "ecs_cluster" {
208-
source = "./ecs-cluster"
209-
name = "${coalesce(var.ecs_cluster_name, var.name)}"
210-
environment = "${var.environment}"
211-
vpc_id = "${module.vpc.id}"
212-
image_id = "${coalesce(var.ecs_ami, module.defaults.ecs_ami)}"
213-
subnet_ids = "${module.vpc.internal_subnets}"
214-
key_name = "${var.key_name}"
215-
instance_type = "${var.ecs_instance_type}"
216-
instance_ebs_optimized = "${var.ecs_instance_ebs_optimized}"
217-
iam_instance_profile = "${module.iam_role.profile}"
218-
min_size = "${var.ecs_min_size}"
219-
max_size = "${var.ecs_max_size}"
220-
desired_capacity = "${var.ecs_desired_capacity}"
221-
region = "${var.region}"
222-
availability_zones = "${module.vpc.availability_zones}"
223-
root_volume_size = "${var.ecs_root_volume_size}"
224-
docker_volume_size = "${var.ecs_docker_volume_size}"
225-
docker_auth_type = "${var.ecs_docker_auth_type}"
226-
docker_auth_data = "${var.ecs_docker_auth_data}"
227-
security_groups = "${coalesce(var.ecs_security_groups, format("%s,%s,%s", module.security_groups.internal_ssh, module.security_groups.internal_elb, module.security_groups.external_elb))}"
228-
extra_cloud_config_type = "${var.extra_cloud_config_type}"
229-
extra_cloud_config_content = "${var.extra_cloud_config_content}"
208+
source = "./ecs-cluster"
209+
name = "${coalesce(var.ecs_cluster_name, var.name)}"
210+
environment = "${var.environment}"
211+
vpc_id = "${module.vpc.id}"
212+
image_id = "${coalesce(var.ecs_ami, module.defaults.ecs_ami)}"
213+
subnet_ids = "${module.vpc.internal_subnets}"
214+
key_name = "${var.key_name}"
215+
instance_type = "${var.ecs_instance_type}"
216+
instance_ebs_optimized = "${var.ecs_instance_ebs_optimized}"
217+
iam_instance_profile = "${module.iam_role.profile}"
218+
min_size = "${var.ecs_min_size}"
219+
max_size = "${var.ecs_max_size}"
220+
desired_capacity = "${var.ecs_desired_capacity}"
221+
region = "${var.region}"
222+
availability_zones = "${module.vpc.availability_zones}"
223+
root_volume_size = "${var.ecs_root_volume_size}"
224+
docker_volume_size = "${var.ecs_docker_volume_size}"
225+
docker_auth_type = "${var.ecs_docker_auth_type}"
226+
docker_auth_data = "${var.ecs_docker_auth_data}"
227+
security_groups = "${coalesce(var.ecs_security_groups, format("%s,%s,%s", module.security_groups.internal_ssh, module.security_groups.internal_elb, module.security_groups.external_elb))}"
228+
extra_cloud_config_type = "${var.extra_cloud_config_type}"
229+
extra_cloud_config_content = "${var.extra_cloud_config_content}"
230230
}
231231

232232
module "s3_logs" {

s3-logs/main.tf

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
variable "name" {
2-
}
1+
variable "name" {}
32

4-
variable "environment" {
5-
}
3+
variable "environment" {}
64

7-
variable "account_id" {
8-
}
5+
variable "account_id" {}
96

107
variable "logs_expiration_enabled" {
118
default = false
@@ -28,8 +25,8 @@ resource "aws_s3_bucket" "logs" {
2825
bucket = "${var.name}-${var.environment}-logs"
2926

3027
lifecycle_rule {
31-
id = "logs-expiration"
32-
prefix = ""
28+
id = "logs-expiration"
29+
prefix = ""
3330
enabled = "${var.logs_expiration_enabled}"
3431

3532
expiration {

web-service/elb/main.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ variable "internal_zone_id" {
4848
description = "The zone ID to create the record in"
4949
}
5050

51-
variable "ssl_certificate_id" {
52-
}
51+
variable "ssl_certificate_id" {}
5352

5453
/**
5554
* Resources.

0 commit comments

Comments
 (0)