Replace 'endpoints' block with 'endpoint' string and remove unsupported arguments for older Terraform versions.