We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7c57606 + da36e74 commit 280fb71Copy full SHA for 280fb71
service.tf
@@ -25,6 +25,17 @@ resource "aws_ecs_service" "application" {
25
}
26
27
28
+ dynamic "network_configuration" {
29
+ for_each = contains(var.requires_compatibilities, "FARGATE") ? [1] : []
30
+
31
+ content {
32
+ subnets = var.private_subnet_ids
33
+ security_groups = [aws_security_group.application.id]
34
+ assign_public_ip = var.assign_public_ip
35
+ }
36
37
38
39
lifecycle {
40
ignore_changes = [desired_count]
41
variables.tf
@@ -256,4 +256,9 @@ variable "requires_compatibilities" {
256
variable "network_mode" {
257
default = "bridge"
258
type = string
259
+}
260
261
+variable "assign_public_ip" {
262
+ default = false
263
+ type = bool
264
0 commit comments