Skip to content

terraform/map-instance-id

Map Terraform Instance ID

Provides the TF lookup self.[name] reference when the .id field does not map to the providers true ID.

Uses the ${self.[path]} address space used from inside the Terraform resource so self. is required.

This allows users to create machines using the Terraform Instance ID from a Terraform run

Typical values:

  • most use: .id
  • google: .instance_id

Objects that Reference terraform/map-instance-id

Objects used by terraform/map-instance-id

Not used in current content packs