Skip to content

Add delete support for Endpoint With Model Garden Deployment resource #10430

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

Conversation

modular-magician
Copy link
Collaborator

This PR adds the necessary custom code templates and resource configuration fields to enable deletion support for the vertexai_endpoint_with_model_garden_deployment resource.

Specifically, this PR:

  • Updates the EndpointWithModelGardenDeployment.yaml file with new fields to enable custom_delete.
  • Adds a custom_delete template that undeploys the model deployed to the endpoint and deletes the endpoint.
  • Updates post_create to read and set field values required to undeploy model from endpoint.
  • Updates acceptance tests to verify that resource is deleted.
  • Adds additional examples and acceptance tests demonstrating various use cases for the resource.

Vertex AI Model Garden service
Based on:

Addresses:

vertexai: added `custom_delete` field to `google_vertex_ai_endpoint_with_model_garden_deployment` resource

Derived from GoogleCloudPlatform/magic-modules#14650

… (#14650)

[upstream:199c6bffaf0dcb2d887f77c055af1c2645cd544c]

Signed-off-by: Modular Magician <[email protected]>
@modular-magician modular-magician requested a review from a team as a code owner July 29, 2025 18:18
@modular-magician modular-magician merged commit c126291 into hashicorp:main Jul 29, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant