rancher / terraform-provider-rancher2

Terraform Rancher2 provider
https://www.terraform.io/docs/providers/rancher2/
Mozilla Public License 2.0
253 stars 216 forks source link

Add project_id syntax for rancher2_project_role_template_binding #1272

Closed nemobis closed 7 months ago

nemobis commented 7 months ago

Previously undocumented but mentioned in https://github.com/rancher/terraform-provider-rancher2/issues/225#issue-549757012

Using only the project_id produces an error:

Error: Bad response statusCode [404]. Status [404 Not Found]. Body: [message=failed to find resource by id, baseType=error, code=NotFound] from []

Issue:

Problem

Solution

Testing

Engineering Testing

Manual Testing

Automated Testing

QA Testing Considerations

Regressions Considerations

kkaempf commented 7 months ago

Thanks for your contribution !

nemobis commented 6 months ago

Thank you for the quick review!

I had pushed another commit to also document the format to be used in terraform import but it turns out it wasn't added here, I opened a new PR for that: https://github.com/rancher/terraform-provider-rancher2/pull/1274