-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow people to override user_data and name_prefix. (#9)
* Allow people to override user_data and name_prefix. * Forgot to add the data file. * Address PR comments. Update the README accordingly. * Typo. * Formatting.
- Loading branch information
1 parent
5784dfa
commit 3341bd7
Showing
7 changed files
with
82 additions
and
54 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
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
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,8 +1,11 @@ | ||
#output "ecs_cluster" { | ||
# value = ["${aws_subnet.private.*.id}"] | ||
#} | ||
|
||
output "cluster_id" { | ||
value = "${aws_ecs_cluster.cluster.id}" | ||
} | ||
# ECS servers | ||
|
||
output "autoscaling_group" { | ||
value = { | ||
id = "${aws_autoscaling_group.ecs.id}" | ||
name = "${aws_autoscaling_group.ecs.name}" | ||
arn = "${aws_autoscaling_group.ecs.arn}" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
echo ECS_CLUSTER=${cluster_name} >> /etc/ecs/ecs.config | ||
echo 'OPTIONS="$${OPTIONS} --storage-opt dm.basesize=${docker_storage_size}G"' >> /etc/sysconfig/docker | ||
/etc/init.d/docker restart | ||
echo ECS_ENGINE_AUTH_TYPE=dockercfg >> /etc/ecs/ecs.config | ||
echo 'ECS_ENGINE_AUTH_DATA={"https://index.docker.io/v1/": { "auth": "${dockerhub_token}", "email": "${var.dockerhub_email}"}}' >> /etc/ecs/ecs.config |
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