1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. netapp
  5. Kmsconfig
Google Cloud v8.23.0 published on Monday, Mar 24, 2025 by Pulumi

gcp.netapp.Kmsconfig

Explore with Pulumi AI

NetApp Volumes always encrypts your data at rest using volume-specific keys.

A CMEK policy (customer-managed encryption key) warps such volume-specific keys in a key stored in Cloud Key Management Service (KMS).

To get more information about kmsconfig, see:

Example Usage

Kms Config Create

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const kmsConfig = new gcp.netapp.Kmsconfig("kmsConfig", {
    name: "kms-test",
    description: "this is a test description",
    cryptoKeyName: "crypto-name",
    location: "us-central1",
});
Copy
import pulumi
import pulumi_gcp as gcp

kms_config = gcp.netapp.Kmsconfig("kmsConfig",
    name="kms-test",
    description="this is a test description",
    crypto_key_name="crypto-name",
    location="us-central1")
Copy
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/netapp"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := netapp.NewKmsconfig(ctx, "kmsConfig", &netapp.KmsconfigArgs{
			Name:          pulumi.String("kms-test"),
			Description:   pulumi.String("this is a test description"),
			CryptoKeyName: pulumi.String("crypto-name"),
			Location:      pulumi.String("us-central1"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var kmsConfig = new Gcp.Netapp.Kmsconfig("kmsConfig", new()
    {
        Name = "kms-test",
        Description = "this is a test description",
        CryptoKeyName = "crypto-name",
        Location = "us-central1",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.netapp.Kmsconfig;
import com.pulumi.gcp.netapp.KmsconfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var kmsConfig = new Kmsconfig("kmsConfig", KmsconfigArgs.builder()
            .name("kms-test")
            .description("this is a test description")
            .cryptoKeyName("crypto-name")
            .location("us-central1")
            .build());

    }
}
Copy
resources:
  kmsConfig:
    type: gcp:netapp:Kmsconfig
    properties:
      name: kms-test
      description: this is a test description
      cryptoKeyName: crypto-name
      location: us-central1
Copy

Create Kmsconfig Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Kmsconfig(name: string, args: KmsconfigArgs, opts?: CustomResourceOptions);
@overload
def Kmsconfig(resource_name: str,
              args: KmsconfigArgs,
              opts: Optional[ResourceOptions] = None)

@overload
def Kmsconfig(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              crypto_key_name: Optional[str] = None,
              location: Optional[str] = None,
              description: Optional[str] = None,
              labels: Optional[Mapping[str, str]] = None,
              name: Optional[str] = None,
              project: Optional[str] = None)
func NewKmsconfig(ctx *Context, name string, args KmsconfigArgs, opts ...ResourceOption) (*Kmsconfig, error)
public Kmsconfig(string name, KmsconfigArgs args, CustomResourceOptions? opts = null)
public Kmsconfig(String name, KmsconfigArgs args)
public Kmsconfig(String name, KmsconfigArgs args, CustomResourceOptions options)
type: gcp:netapp:Kmsconfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. KmsconfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. KmsconfigArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. KmsconfigArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. KmsconfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. KmsconfigArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var kmsconfigResource = new Gcp.Netapp.Kmsconfig("kmsconfigResource", new()
{
    CryptoKeyName = "string",
    Location = "string",
    Description = "string",
    Labels = 
    {
        { "string", "string" },
    },
    Name = "string",
    Project = "string",
});
Copy
example, err := netapp.NewKmsconfig(ctx, "kmsconfigResource", &netapp.KmsconfigArgs{
	CryptoKeyName: pulumi.String("string"),
	Location:      pulumi.String("string"),
	Description:   pulumi.String("string"),
	Labels: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Name:    pulumi.String("string"),
	Project: pulumi.String("string"),
})
Copy
var kmsconfigResource = new Kmsconfig("kmsconfigResource", KmsconfigArgs.builder()
    .cryptoKeyName("string")
    .location("string")
    .description("string")
    .labels(Map.of("string", "string"))
    .name("string")
    .project("string")
    .build());
Copy
kmsconfig_resource = gcp.netapp.Kmsconfig("kmsconfigResource",
    crypto_key_name="string",
    location="string",
    description="string",
    labels={
        "string": "string",
    },
    name="string",
    project="string")
Copy
const kmsconfigResource = new gcp.netapp.Kmsconfig("kmsconfigResource", {
    cryptoKeyName: "string",
    location: "string",
    description: "string",
    labels: {
        string: "string",
    },
    name: "string",
    project: "string",
});
Copy
type: gcp:netapp:Kmsconfig
properties:
    cryptoKeyName: string
    description: string
    labels:
        string: string
    location: string
    name: string
    project: string
Copy

Kmsconfig Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The Kmsconfig resource accepts the following input properties:

CryptoKeyName This property is required. string
Resource name of the KMS key to use. Only regional keys are supported. Format: projects/{{project}}/locations/{{location}}/keyRings/{{key_ring}}/cryptoKeys/{{key}}.
Location
This property is required.
Changes to this property will trigger replacement.
string
Name of the policy location. CMEK policies apply to the whole region.
Description string
Description for the CMEK policy.
Labels Dictionary<string, string>

Labels as key value pairs. Example: { "owner": "Bob", "department": "finance", "purpose": "testing" }.

Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

Name Changes to this property will trigger replacement. string
Name of the CMEK policy.


Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
CryptoKeyName This property is required. string
Resource name of the KMS key to use. Only regional keys are supported. Format: projects/{{project}}/locations/{{location}}/keyRings/{{key_ring}}/cryptoKeys/{{key}}.
Location
This property is required.
Changes to this property will trigger replacement.
string
Name of the policy location. CMEK policies apply to the whole region.
Description string
Description for the CMEK policy.
Labels map[string]string

Labels as key value pairs. Example: { "owner": "Bob", "department": "finance", "purpose": "testing" }.

Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

Name Changes to this property will trigger replacement. string
Name of the CMEK policy.


Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
cryptoKeyName This property is required. String
Resource name of the KMS key to use. Only regional keys are supported. Format: projects/{{project}}/locations/{{location}}/keyRings/{{key_ring}}/cryptoKeys/{{key}}.
location
This property is required.
Changes to this property will trigger replacement.
String
Name of the policy location. CMEK policies apply to the whole region.
description String
Description for the CMEK policy.
labels Map<String,String>

Labels as key value pairs. Example: { "owner": "Bob", "department": "finance", "purpose": "testing" }.

Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

name Changes to this property will trigger replacement. String
Name of the CMEK policy.


project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
cryptoKeyName This property is required. string
Resource name of the KMS key to use. Only regional keys are supported. Format: projects/{{project}}/locations/{{location}}/keyRings/{{key_ring}}/cryptoKeys/{{key}}.
location
This property is required.
Changes to this property will trigger replacement.
string
Name of the policy location. CMEK policies apply to the whole region.
description string
Description for the CMEK policy.
labels {[key: string]: string}

Labels as key value pairs. Example: { "owner": "Bob", "department": "finance", "purpose": "testing" }.

Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

name Changes to this property will trigger replacement. string
Name of the CMEK policy.


project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
crypto_key_name This property is required. str
Resource name of the KMS key to use. Only regional keys are supported. Format: projects/{{project}}/locations/{{location}}/keyRings/{{key_ring}}/cryptoKeys/{{key}}.
location
This property is required.
Changes to this property will trigger replacement.
str
Name of the policy location. CMEK policies apply to the whole region.
description str
Description for the CMEK policy.
labels Mapping[str, str]

Labels as key value pairs. Example: { "owner": "Bob", "department": "finance", "purpose": "testing" }.

Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

name Changes to this property will trigger replacement. str
Name of the CMEK policy.


project Changes to this property will trigger replacement. str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
cryptoKeyName This property is required. String
Resource name of the KMS key to use. Only regional keys are supported. Format: projects/{{project}}/locations/{{location}}/keyRings/{{key_ring}}/cryptoKeys/{{key}}.
location
This property is required.
Changes to this property will trigger replacement.
String
Name of the policy location. CMEK policies apply to the whole region.
description String
Description for the CMEK policy.
labels Map<String>

Labels as key value pairs. Example: { "owner": "Bob", "department": "finance", "purpose": "testing" }.

Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

name Changes to this property will trigger replacement. String
Name of the CMEK policy.


project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Outputs

All input properties are implicitly available as output properties. Additionally, the Kmsconfig resource produces the following output properties:

EffectiveLabels Dictionary<string, string>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
Id string
The provider-assigned unique ID for this managed resource.
Instructions string
Access to the key needs to be granted. The instructions contain gcloud commands to run to grant access. To make the policy work, a CMEK policy check is required, which verifies key access.
PulumiLabels Dictionary<string, string>
The combination of labels configured directly on the resource and default labels configured on the provider.
ServiceAccount string
The Service account which needs to have access to the provided KMS key.
EffectiveLabels map[string]string
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
Id string
The provider-assigned unique ID for this managed resource.
Instructions string
Access to the key needs to be granted. The instructions contain gcloud commands to run to grant access. To make the policy work, a CMEK policy check is required, which verifies key access.
PulumiLabels map[string]string
The combination of labels configured directly on the resource and default labels configured on the provider.
ServiceAccount string
The Service account which needs to have access to the provided KMS key.
effectiveLabels Map<String,String>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
id String
The provider-assigned unique ID for this managed resource.
instructions String
Access to the key needs to be granted. The instructions contain gcloud commands to run to grant access. To make the policy work, a CMEK policy check is required, which verifies key access.
pulumiLabels Map<String,String>
The combination of labels configured directly on the resource and default labels configured on the provider.
serviceAccount String
The Service account which needs to have access to the provided KMS key.
effectiveLabels {[key: string]: string}
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
id string
The provider-assigned unique ID for this managed resource.
instructions string
Access to the key needs to be granted. The instructions contain gcloud commands to run to grant access. To make the policy work, a CMEK policy check is required, which verifies key access.
pulumiLabels {[key: string]: string}
The combination of labels configured directly on the resource and default labels configured on the provider.
serviceAccount string
The Service account which needs to have access to the provided KMS key.
effective_labels Mapping[str, str]
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
id str
The provider-assigned unique ID for this managed resource.
instructions str
Access to the key needs to be granted. The instructions contain gcloud commands to run to grant access. To make the policy work, a CMEK policy check is required, which verifies key access.
pulumi_labels Mapping[str, str]
The combination of labels configured directly on the resource and default labels configured on the provider.
service_account str
The Service account which needs to have access to the provided KMS key.
effectiveLabels Map<String>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
id String
The provider-assigned unique ID for this managed resource.
instructions String
Access to the key needs to be granted. The instructions contain gcloud commands to run to grant access. To make the policy work, a CMEK policy check is required, which verifies key access.
pulumiLabels Map<String>
The combination of labels configured directly on the resource and default labels configured on the provider.
serviceAccount String
The Service account which needs to have access to the provided KMS key.

Look up Existing Kmsconfig Resource

Get an existing Kmsconfig resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: KmsconfigState, opts?: CustomResourceOptions): Kmsconfig
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        crypto_key_name: Optional[str] = None,
        description: Optional[str] = None,
        effective_labels: Optional[Mapping[str, str]] = None,
        instructions: Optional[str] = None,
        labels: Optional[Mapping[str, str]] = None,
        location: Optional[str] = None,
        name: Optional[str] = None,
        project: Optional[str] = None,
        pulumi_labels: Optional[Mapping[str, str]] = None,
        service_account: Optional[str] = None) -> Kmsconfig
func GetKmsconfig(ctx *Context, name string, id IDInput, state *KmsconfigState, opts ...ResourceOption) (*Kmsconfig, error)
public static Kmsconfig Get(string name, Input<string> id, KmsconfigState? state, CustomResourceOptions? opts = null)
public static Kmsconfig get(String name, Output<String> id, KmsconfigState state, CustomResourceOptions options)
resources:  _:    type: gcp:netapp:Kmsconfig    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
CryptoKeyName string
Resource name of the KMS key to use. Only regional keys are supported. Format: projects/{{project}}/locations/{{location}}/keyRings/{{key_ring}}/cryptoKeys/{{key}}.
Description string
Description for the CMEK policy.
EffectiveLabels Dictionary<string, string>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
Instructions string
Access to the key needs to be granted. The instructions contain gcloud commands to run to grant access. To make the policy work, a CMEK policy check is required, which verifies key access.
Labels Dictionary<string, string>

Labels as key value pairs. Example: { "owner": "Bob", "department": "finance", "purpose": "testing" }.

Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

Location Changes to this property will trigger replacement. string
Name of the policy location. CMEK policies apply to the whole region.
Name Changes to this property will trigger replacement. string
Name of the CMEK policy.


Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
PulumiLabels Dictionary<string, string>
The combination of labels configured directly on the resource and default labels configured on the provider.
ServiceAccount string
The Service account which needs to have access to the provided KMS key.
CryptoKeyName string
Resource name of the KMS key to use. Only regional keys are supported. Format: projects/{{project}}/locations/{{location}}/keyRings/{{key_ring}}/cryptoKeys/{{key}}.
Description string
Description for the CMEK policy.
EffectiveLabels map[string]string
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
Instructions string
Access to the key needs to be granted. The instructions contain gcloud commands to run to grant access. To make the policy work, a CMEK policy check is required, which verifies key access.
Labels map[string]string

Labels as key value pairs. Example: { "owner": "Bob", "department": "finance", "purpose": "testing" }.

Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

Location Changes to this property will trigger replacement. string
Name of the policy location. CMEK policies apply to the whole region.
Name Changes to this property will trigger replacement. string
Name of the CMEK policy.


Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
PulumiLabels map[string]string
The combination of labels configured directly on the resource and default labels configured on the provider.
ServiceAccount string
The Service account which needs to have access to the provided KMS key.
cryptoKeyName String
Resource name of the KMS key to use. Only regional keys are supported. Format: projects/{{project}}/locations/{{location}}/keyRings/{{key_ring}}/cryptoKeys/{{key}}.
description String
Description for the CMEK policy.
effectiveLabels Map<String,String>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
instructions String
Access to the key needs to be granted. The instructions contain gcloud commands to run to grant access. To make the policy work, a CMEK policy check is required, which verifies key access.
labels Map<String,String>

Labels as key value pairs. Example: { "owner": "Bob", "department": "finance", "purpose": "testing" }.

Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

location Changes to this property will trigger replacement. String
Name of the policy location. CMEK policies apply to the whole region.
name Changes to this property will trigger replacement. String
Name of the CMEK policy.


project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
pulumiLabels Map<String,String>
The combination of labels configured directly on the resource and default labels configured on the provider.
serviceAccount String
The Service account which needs to have access to the provided KMS key.
cryptoKeyName string
Resource name of the KMS key to use. Only regional keys are supported. Format: projects/{{project}}/locations/{{location}}/keyRings/{{key_ring}}/cryptoKeys/{{key}}.
description string
Description for the CMEK policy.
effectiveLabels {[key: string]: string}
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
instructions string
Access to the key needs to be granted. The instructions contain gcloud commands to run to grant access. To make the policy work, a CMEK policy check is required, which verifies key access.
labels {[key: string]: string}

Labels as key value pairs. Example: { "owner": "Bob", "department": "finance", "purpose": "testing" }.

Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

location Changes to this property will trigger replacement. string
Name of the policy location. CMEK policies apply to the whole region.
name Changes to this property will trigger replacement. string
Name of the CMEK policy.


project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
pulumiLabels {[key: string]: string}
The combination of labels configured directly on the resource and default labels configured on the provider.
serviceAccount string
The Service account which needs to have access to the provided KMS key.
crypto_key_name str
Resource name of the KMS key to use. Only regional keys are supported. Format: projects/{{project}}/locations/{{location}}/keyRings/{{key_ring}}/cryptoKeys/{{key}}.
description str
Description for the CMEK policy.
effective_labels Mapping[str, str]
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
instructions str
Access to the key needs to be granted. The instructions contain gcloud commands to run to grant access. To make the policy work, a CMEK policy check is required, which verifies key access.
labels Mapping[str, str]

Labels as key value pairs. Example: { "owner": "Bob", "department": "finance", "purpose": "testing" }.

Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

location Changes to this property will trigger replacement. str
Name of the policy location. CMEK policies apply to the whole region.
name Changes to this property will trigger replacement. str
Name of the CMEK policy.


project Changes to this property will trigger replacement. str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
pulumi_labels Mapping[str, str]
The combination of labels configured directly on the resource and default labels configured on the provider.
service_account str
The Service account which needs to have access to the provided KMS key.
cryptoKeyName String
Resource name of the KMS key to use. Only regional keys are supported. Format: projects/{{project}}/locations/{{location}}/keyRings/{{key_ring}}/cryptoKeys/{{key}}.
description String
Description for the CMEK policy.
effectiveLabels Map<String>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
instructions String
Access to the key needs to be granted. The instructions contain gcloud commands to run to grant access. To make the policy work, a CMEK policy check is required, which verifies key access.
labels Map<String>

Labels as key value pairs. Example: { "owner": "Bob", "department": "finance", "purpose": "testing" }.

Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

location Changes to this property will trigger replacement. String
Name of the policy location. CMEK policies apply to the whole region.
name Changes to this property will trigger replacement. String
Name of the CMEK policy.


project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
pulumiLabels Map<String>
The combination of labels configured directly on the resource and default labels configured on the provider.
serviceAccount String
The Service account which needs to have access to the provided KMS key.

Import

kmsconfig can be imported using any of these accepted formats:

  • projects/{{project}}/locations/{{location}}/kmsConfigs/{{name}}

  • {{project}}/{{location}}/{{name}}

  • {{location}}/{{name}}

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

$ pulumi import gcp:netapp/kmsconfig:Kmsconfig default projects/{{project}}/locations/{{location}}/kmsConfigs/{{name}}
Copy
$ pulumi import gcp:netapp/kmsconfig:Kmsconfig default {{project}}/{{location}}/{{name}}
Copy
$ pulumi import gcp:netapp/kmsconfig:Kmsconfig default {{location}}/{{name}}
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Google Cloud (GCP) Classic pulumi/pulumi-gcp
License
Apache-2.0
Notes
This Pulumi package is based on the google-beta Terraform Provider.