Skip to content

Instantly share code, notes, and snippets.

@melbourne2991
Last active October 23, 2017 10:15
Show Gist options
  • Save melbourne2991/d41ed025a9632c2e03cc0f2d336f2acc to your computer and use it in GitHub Desktop.
Save melbourne2991/d41ed025a9632c2e03cc0f2d336f2acc to your computer and use it in GitHub Desktop.
Tfrm service
# resource "aws_ecs_service" "scraper" {
# name = "scraper_service"
# cluster = "${aws_ecs_cluster.scraper_cluster.name}"
# # Track the latest ACTIVE revision
# task_definition = "${aws_ecs_task_definition.scraper_task.family}:${max("${aws_ecs_task_definition.scraper_task.revision}", "${data.aws_ecs_task_definition.scraper_task.revision}")}"
# desired_count = 1
# }
data "aws_ecs_task_definition" "scraper_task" {
task_definition = "${aws_ecs_task_definition.scraper_task.family}"
}
# # HTTP access from anywhere
# ingress {
# from_port = 3000
# to_port = 3000
# protocol = "tcp"
# cidr_blocks = ["0.0.0.0/0"]
# }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment