Resource

dcloud_errors_database_link

Connects an Error Tracking project to a managed PostgreSQL database of the organization: the project's Queries tab then lists every statement the database measured (Query insights), joined with the statements its traces saw. Needs errors:UpdateProject on the project and rds:DescribeDBQueryInsights on the database; readers still need the latter to see the statements. Destroying it disconnects; nothing in the database changes.

Example Usage

resource "dcloud_errors_project" "web" {
  name     = "web"
  platform = "javascript-nextjs"
}

# The project's Queries tab then lists every statement the database measured,
# not only the ones in sampled traces.
resource "dcloud_errors_database_link" "web" {
  project_id     = dcloud_errors_project.web.id
  db_instance_id = dcloud_db_instance.shop.id
}

Schema

Required

  • db_instance_id (String) The id of the parent resource ({dbInstanceId} in the path). Changing it replaces the resource.
  • project_id (String) The id of the parent resource ({id} in the path). Changing it replaces the resource.

Read-Only

  • id (String) The resource's id.
  • identifier (String) The database's name.

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

terraform import dcloud_errors_database_link.web <project-id>/<db-instance-id>

Generated from the provider's schema.