-
Hi, I'm having some issues when trying to use network_configuration for FARGATE tasks. This is the code I have:
But it looks like both, Could you please confirm if I'm doing something wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
This comment has been hidden.
This comment has been hidden.
-
Hello, Definition of
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/security_group_rule |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply @denis256, but it looks like in GW code there is no conditional and according to the TF documentation you refer:
So it looks like both (cidr_blocks and source_security_group_id) can't be used at the same time, it looks like it has to be one or the other |
Beta Was this translation helpful? Give feedback.
-
It was not quite clear looking at the code or the documentation, but all made sense after looking at this example https://github.com/gruntwork-io/terraform-aws-service-catalog/blob/master/examples/for-learning-and-testing/services/ecs-service/main.tf One of those fields has to be set to null (not just remove it) |
Beta Was this translation helpful? Give feedback.
It was not quite clear looking at the code or the documentation, but all made sense after looking at this example https://github.com/gruntwork-io/terraform-aws-service-catalog/blob/master/examples/for-learning-and-testing/services/ecs-service/main.tf
One of those fields has to be set to null (not just remove it)