Difference between revisions of "Terraform resource aws ecs task definition: revision"
Jump to navigation
Jump to search
(Created page with "* https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_task_definition#revision") |
|||
(4 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
* https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_task_definition#revision | * https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_task_definition#revision | ||
+ | |||
+ | |||
+ | |||
+ | resource "[[aws_ecs_service]]" "your_service" { | ||
+ | name = "your-service-${var.env}-service" | ||
+ | cluster = aws_ecs_cluster.your_cluster[[.name]] | ||
+ | [[task_definition]] = "${aws_ecs_task_definition.your_task.family}:${aws_ecs_task_definition.you_task.revision}" | ||
+ | |||
+ | |||
+ | == See also == | ||
+ | * {{aws_ecs_task_definition}} | ||
+ | * {{Terraform ECS}} | ||
+ | |||
+ | [[Category:Terraform]] |
Latest revision as of 11:41, 7 June 2023
resource "aws_ecs_service" "your_service" { name = "your-service-${var.env}-service" cluster = aws_ecs_cluster.your_cluster.name task_definition = "${aws_ecs_task_definition.your_task.family}:${aws_ecs_task_definition.you_task.revision}"
See also[edit]
- Terraform resource:
aws_ecs_task_definition: container_definitions, family, revision, cpu, cpu_architecture, memory, MemoryReservation, volume, execution_role_arn, requires_compatibilities, dependsOn
- Terraform ECS: module, resources:
aws_ecs_cluster, aws_ecs_service: task definition, aws_ecs_task_definition: container_definitions
Advertising: