google_container_analysis_note

A Container Analysis note is a high-level piece of metadata that describes a type of analysis that can be done for a resource.

To get more information about Note, see:

Open in Cloud Shell

Example Usage - Container Analysis Note Basic

resource "google_container_analysis_note" "note" {
  name = "attestor-note"
  attestation_authority {
    hint {
      human_readable_name = "Attestor Note"
    }
  }
}
Open in Cloud Shell

Example Usage - Container Analysis Note Attestation Full

resource "google_container_analysis_note" "note" {
  name = "attestor-note"

  short_description = "test note"
  long_description = "a longer description of test note"
  expiration_time = "2120-10-02T15:01:23.045123456Z"

  related_url {
    url = "some.url"
    label = "foo"
  }

  related_url {
    url = "google.com"
  }

  attestation_authority {
    hint {
      human_readable_name = "Attestor Note"
    }
  }
}

Argument Reference

The following arguments are supported:

The attestation_authority block supports:

The hint block supports:


The related_url block supports:

Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

Timeouts

This resource provides the following Timeouts configuration options:

Import

Note can be imported using any of these accepted formats:

In Terraform v1.5.0 and later, use an import block to import Note using one of the formats above. For example:

import {
  id = "projects/{{project}}/notes/{{name}}"
  to = google_container_analysis_note.default
}

When using the terraform import command, Note can be imported using one of the formats above. For example:

$ terraform import google_container_analysis_note.default projects/{{project}}/notes/{{name}}
$ terraform import google_container_analysis_note.default {{project}}/{{name}}
$ terraform import google_container_analysis_note.default {{name}}

User Project Overrides

This resource supports User Project Overrides.