diff --git a/third_party/terraform/resources/resource_dataflow_flex_template_job.go.erb b/third_party/terraform/resources/resource_dataflow_flex_template_job.go.erb index 1d96289d7c79..4f5805acd827 100644 --- a/third_party/terraform/resources/resource_dataflow_flex_template_job.go.erb +++ b/third_party/terraform/resources/resource_dataflow_flex_template_job.go.erb @@ -61,6 +61,8 @@ func resourceDataflowFlexTemplateJob() *schema.Resource { Optional: true, DiffSuppressFunc: resourceDataflowJobLabelDiffSuppress, ForceNew: true, + // TODO add support for labels when the API supports it + Deprecated: "Deprecated until the API supports this field", }, "parameters": { diff --git a/third_party/terraform/website/docs/r/dataflow_flex_template_job.html.markdown b/third_party/terraform/website/docs/r/dataflow_flex_template_job.html.markdown index 307871d081c8..93af9426f819 100644 --- a/third_party/terraform/website/docs/r/dataflow_flex_template_job.html.markdown +++ b/third_party/terraform/website/docs/r/dataflow_flex_template_job.html.markdown @@ -64,7 +64,9 @@ used in the template). * `labels` - (Optional) User labels to be specified for the job. Keys and values should follow the restrictions specified in the [labeling restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) -page. **NOTE**: Google-provided Dataflow templates often provide default labels +page. **Note**: This field is marked as deprecated in Terraform as the API does not currently +support adding labels. +**NOTE**: Google-provided Dataflow templates often provide default labels that begin with `goog-dataflow-provided`. Unless explicitly set in config, these labels will be ignored to prevent diffs on re-apply.