8000 add: ECS example template by ericpaulsen · Pull Request #3915 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

add: ECS example template #3915

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Sep 8, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
cleanup
  • Loading branch information
ericpaulsen committed Sep 6, 2022
commit deeaba660a14a9189227ec01301316bcb8bd41ee
12 changes: 2 additions & 10 deletions examples/templates/ecs-container/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,6 @@ provider "aws" {
shared_credentials_files = ["/home/coder/.aws/credentials"]
}

# data "template_file" "user-data-start" {
# template = file("${path.module}/config/user-data-start.sh")
# }
#
# data "template_file" "user-data-end" {
# template = file("${path.module}/config/user-data-end.sh")
# }

locals {

# User data is used to stop/start AWS instances. See:
Expand Down Expand Up @@ -112,7 +104,7 @@ resource "aws_launch_template" "coder-oss-ubuntu" {
user_data = data.cloudinit_config.main.rendered
}

# provision auto-scaling group to host ECS task defintions
# provision auto-scaling group to host ECS task definitions
resource "aws_autoscaling_group" "main" {
name = "coder-ecs-auto-scaling-group"
min_size = 1
Expand Down Expand Up @@ -206,7 +198,7 @@ resource "aws_ecs_task_definition" "workspace" {
}
])

# workspace persistent volume defintion
# workspace persistent volume definition
volume {
name = "home-dir"

Expand Down
0