Skip to content

Commit

Permalink
get most of the ecs service
Browse files Browse the repository at this point in the history
  • Loading branch information
Grunet authored Aug 27, 2024
1 parent 015d845 commit bf34c17
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions packages/aws-terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,25 @@ resource "aws_ecs_cluster" "cluster" {
cloud-native-honeypot = true
}
}

resource "aws_ecs_service" "service" {
name = "service-${random_uuid.unique_suffix.result}"

cluster = var.cluster_name_or_arn != "" ? var.cluster_name_or_arn : aws_ecs_cluster.cluster.name
desired_count = 1
enable_ecs_managed_tags = true
launch_type = "FARGATE"
network_configuration {
assign_public_ip = false
# TODO - need to fill these references out
# subnets = []
# security_groups = []
}
platform_version = "1.4.0"
propagate_tags = "SERVICE"
tags = {
cloud-native-honeypot = true
}
# TODO - need to fill this reference out
# task_definition = ""
}

0 comments on commit bf34c17

Please sign in to comment.