apigee: add data source google_apigee_instance#16956
Conversation
Add a data source for google_apigee_instance, allowing users to look up an existing Apigee instance by org_id and name and retrieve its metadata (host, port, service_attachment, etc.) for use in other resources such as PSC service attachments. Fixes: hashicorp/terraform-provider-google#25911
|
Googlers: For automatic test runs see go/terraform-auto-test-runs. @roaks3, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look. You can help make sure that review is quick by doing a self-review and by running impacted tests locally. |
|
@roaks3 This PR has been waiting for review for 3 weekdays. Please take a look! Use the label |
roaks3
left a comment
There was a problem hiding this comment.
You'll need to resolve some merge conflicts.
Also, did you consider generation from the resource with datasource:\ngenerate: true, or calling the resource Read?
This comment was marked as duplicate.
This comment was marked as duplicate.
1 similar comment
|
We've moved over to using a registry for data sources instead of manually registering them. This means that provider_mmv1_resources no longer exists, which is what's causing the merge conflict. You'll also need to add an |
|
@xuchenma, this PR is waiting for action from you. If no action is taken, this PR will be closed in 28 days. Please address any comments or change requests, or re-request review from a core reviewer if no action is required. This notification can be disabled with the |
|
@xuchenma, this PR is waiting for action from you. If no action is taken, this PR will be closed in 14 days. Please address any comments or change requests, or re-request review from a core reviewer if no action is required. This notification can be disabled with the |
|
@xuchenma, this PR is waiting for action from you. If no action is taken, this PR will be closed in 2 weekdays. Please address any comments or change requests, or re-request review from a core reviewer if no action is required. This notification can be disabled with the |
|
@xuchenma, this PR is being closed due to inactivity. |
|
Obsolete — the |

Description
Adds a new
google_apigee_instancedata source, allowing users to look up an existing Apigee instance byorg_idandnameand retrieve its metadata (host, port, service_attachment, consumer_accept_list, etc.).Use case: Retrieve the
service_attachmentURI of an Apigee instance to configure a PSC endpoint, without needing to manage the instance as a Terraform resource.Example:
Fixes: hashicorp/terraform-provider-google#25911
Tests