Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for configuring forward proxy in google_apigee_environment resource #17832

Closed
apichick opened this issue Apr 12, 2024 · 7 comments
Closed

Comments

@apichick
Copy link

apichick commented Apr 12, 2024

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
  • Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.
  • If an issue is assigned to a user, that user is claiming responsibility for the issue.
  • Customers working with a Google Technical Account Manager or Customer Engineer can ask them to reach out internally to expedite investigation and resolution of this issue.

Description

Please add support for configuring forward proxy for an Apigee environment in the google_apigee_environment resources. The API call is the following one

METHOD: "PUT"
URL: "https://apigee.googleapis.com/v1/organizations/$PROJECT_ID/environments/$ENV"
BODY: { “forwardProxyUri”: “http://$FORWARD_PROXY_IP:$FORWARD_PROXY_PORT” }

New or Affected Resource(s)

  • google_apigee_environment

Potential Terraform Configuration

References

b/334929937

@github-actions github-actions bot added forward/review In review; remove label to forward service/apigee labels Apr 12, 2024
@xuchenma
Copy link

@c2thorn For this one we need to support different update_verb for different fields. We had this discussion last year: GoogleCloudPlatform/magic-modules#6349 (comment)

I tried to set "update_verb" as PUT under this field, but the generated resource_apigee_environment.go still thinks this field should be updated with PATCH.

  - !ruby/object:Api::Type::String
    name: 'forwardProxyUri'
    description: |
      Optional. URI of the forward proxy to be applied to the runtime instances in this environment.
    required: false
    update_verb: :PUT

Do we have support for using different update_verb within the same TF resource? Or do we really have to handwrite this resource now.

@SarahFrench
Copy link
Member

SarahFrench commented Apr 15, 2024

Note from triage:

Resources support 'standard updates' and 'partial updates'. If a resource is defined to use a mix of both then the standard update behaviour will be present and partial update will not be present in the code.

Using pre/post update logic or addressing the problem above by using 2x partial updates can unblock the issue seen in #17832 (comment)

We could update our alerting to flag when someone is mixing standard & partial updates in a resource definition, to help avoid this issue in future.

@SarahFrench
Copy link
Member

Forwarding this ticket with the expectation that #17849 has been completed

@xuchenma
Copy link

Thanks Sarah! Reading more about the source code, I realize in this case it is also a PATCH, so we will still stick to the standard updates.

Making GoogleCloudPlatform/magic-modules#10457 to address this

@SarahFrench
Copy link
Member

Awesome, thanks! I'll close the issue as completed.

Copy link

github-actions bot commented Jun 9, 2024

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants