Skip to content

Commit

Permalink
feat: terraform vscode
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwong-cs committed Oct 6, 2024
1 parent 6a1c9ed commit 1801504
Show file tree
Hide file tree
Showing 5 changed files with 1,168 additions and 1,006 deletions.
5 changes: 5 additions & 0 deletions infra/ecr.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ resource "aws_ecr_repository" "theia" {
name = "${var.prefix}-theia"
}

resource "aws_ecr_repository" "vscode" {
name = "${var.prefix}-vscode"
}

resource "aws_ecr_repository" "s3sync" {
name = "${var.prefix}-s3sync"
}
Expand Down Expand Up @@ -268,6 +272,7 @@ data "aws_iam_policy_document" "aws_vpc_endpoint_ecr" {
"${aws_ecr_repository.pgadmin.arn}",
"${aws_ecr_repository.remotedesktop.arn}",
"${aws_ecr_repository.theia.arn}",
"${aws_ecr_repository.vscode.arn}",
"${aws_ecr_repository.s3sync.arn}",
"${aws_ecr_repository.metrics.arn}",
"${aws_ecr_repository.sentryproxy.arn}",
Expand Down
3 changes: 3 additions & 0 deletions infra/ecs_main_admin.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ locals {
fargate_spawner__pgadmin_task_definition_arn = "${aws_ecs_task_definition.pgadmin.family}"
fargate_spawner__remotedesktop_task_definition_arn = "${aws_ecs_task_definition.remotedesktop.family}"
fargate_spawner__theia_task_definition_arn = "${aws_ecs_task_definition.theia.family}"
fargate_spawner__vscode_task_definition_arn = "${aws_ecs_task_definition.vscode.family}"
fargate_spawner__superset_task_definition_arn = "${aws_ecs_task_definition.superset.family}"

fargate_spawner__user_provided_task_definition_arn = "${aws_ecs_task_definition.user_provided.family}"
Expand Down Expand Up @@ -437,6 +438,8 @@ data "aws_iam_policy_document" "admin_run_tasks" {
"arn:aws:ecs:${data.aws_region.aws_region.name}:${data.aws_caller_identity.aws_caller_identity.account_id}:task-definition/${aws_ecs_task_definition.remotedesktop.family}-*",
"arn:aws:ecs:${data.aws_region.aws_region.name}:${data.aws_caller_identity.aws_caller_identity.account_id}:task-definition/${aws_ecs_task_definition.theia.family}",
"arn:aws:ecs:${data.aws_region.aws_region.name}:${data.aws_caller_identity.aws_caller_identity.account_id}:task-definition/${aws_ecs_task_definition.theia.family}-*",
"arn:aws:ecs:${data.aws_region.aws_region.name}:${data.aws_caller_identity.aws_caller_identity.account_id}:task-definition/${aws_ecs_task_definition.vscode.family}",
"arn:aws:ecs:${data.aws_region.aws_region.name}:${data.aws_caller_identity.aws_caller_identity.account_id}:task-definition/${aws_ecs_task_definition.vscode.family}-*",
"arn:aws:ecs:${data.aws_region.aws_region.name}:${data.aws_caller_identity.aws_caller_identity.account_id}:task-definition/${aws_ecs_task_definition.superset.family}",
"arn:aws:ecs:${data.aws_region.aws_region.name}:${data.aws_caller_identity.aws_caller_identity.account_id}:task-definition/${aws_ecs_task_definition.superset.family}-*",
"arn:aws:ecs:${data.aws_region.aws_region.name}:${data.aws_caller_identity.aws_caller_identity.account_id}:task-definition/${aws_ecs_task_definition.user_provided.family}-*",
Expand Down
Loading

0 comments on commit 1801504

Please sign in to comment.