pulumi_wasm_providers_gcp_mini::compute

Module project_metadata_item

source
Expand description

Manages a single key/value pair on metadata common to all instances for a project in GCE. Using gcp.compute.ProjectMetadataItem lets you manage a single key/value setting in the provider rather than the entire project metadata map.

§Example Usage

use pulumi_wasm_rust::Output;
use pulumi_wasm_rust::{add_export, pulumi_main};
#[pulumi_main]
fn test_main() -> Result<(), Error> {
    let default = project_metadata_item::create(
        "default",
        ProjectMetadataItemArgs::builder()
            .key("my_metadata")
            .value("my_value")
            .build_struct(),
    );
}

§Import

Project metadata items can be imported using the key, e.g.

  • {{key}}

When using the pulumi import command, project metadata items can be imported using one of the formats above. For example:

$ pulumi import gcp:compute/projectMetadataItem:ProjectMetadataItem default {{key}}

Structs§

Functions§

  • Registers a new resource with the given unique name and arguments