Hello! I'm trying to run a flow in an AWS Push Wor...
# prefect-cloud
r
Hello! I'm trying to run a flow in an AWS Push Work Pool. The code is running correctly but I need it to run on a specific subnet in AWS. When I try to run it, it sometimes uses the subnet that I need but some other times it randomly uses any of the other available subnets in the VPC. I tried making changes in the Base Job Template by adding network_configuration with the specific subnet to use but still it's not working. My configuration looks like this:
Copy code
"network_configuration": {
        "type": "object",
        "title": "Network Configuration",
        "default": {
          "subnets": [
            "subnet-XX"
          ],
          "assignPublicIp": "DISABLED",
          "securityGroups": [
            "sg-XX"
          ]
        },
        "description": "Apply a custom network configuration. See the [AWS documentation](<https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-awsvpcconfiguration.html>) for available options."
      }
Also I've explicitly declared the VPC ID which seems to be required for this to run, but I'm still getting the same error. Does anyone know how to fix this?