Skip to content

Creating Recommendation Apps on Agent Builder via Terraform (SOLUTION_TYPE_RECOMMENDATION) #18806

Open
GoogleCloudPlatform/magic-modules
#14538
@lbalvarenga

Description

@lbalvarenga

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

I was investigating how to create different app types in Terraform for Google Cloud’s Agent Builder and I’ve hit a roadblock regarding changing app types in IaC. All apps are created with the “Search” type, but I need an app of type “Recommendations”.

There are no parameters that allow me to modify the engine’s solution type directly. I’ve tried importing a recommendations app into my Terraform state, but every apply a replacement gets triggered, modifying INDUSTRY_VERTICAL and search parameters, but not app type explicitly.

New or Affected Resource(s)

  • google_discovery_engine_search_engine

Potential Terraform Configuration

resource "google_discovery_engine_search_engine" "recommendations" {
  display_name   = "Display Name"
  engine_id      = "${local.config.resource-prefix}-recommendations-engine-${terraform.workspace}"
  collection_id  = "default_collection"
  location       = google_discovery_engine_data_store.main.location
  data_store_ids = [google_discovery_engine_data_store.main.data_store_id]

  industry_vertical = google_discovery_engine_data_store.main.industry_vertical

  +++ solution_type = "SOLUTION_TYPE_RECOMMENDATION"

  search_engine_config {}
}

References

Forum Discussion

b/359238192

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions