Datasync agent creation - error

I am seeing below error when creating a datasync agent using the TF code

}, ErrorCode: “PrivateLinkConfigInvalid”, Message_: “Private link configuration is invalid: Task Subnet Arns should have exactly 1 subnet arn for PrivateLink activation keys” }