Key Ring Args
data class KeyRingArgs(val location: Output<String>? = null, val name: Output<String>? = null, val project: Output<String>? = null) : ConvertibleToJava<KeyRingArgs>
A KeyRing
is a toplevel logical grouping of CryptoKeys
.
Note: KeyRings cannot be deleted from Google Cloud Platform. Destroying a provider-managed KeyRing will remove it from state but will not delete the resource from the project. To get more information about KeyRing, see:
How-to Guides
Example Usage
Kms Key Ring Basic
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.kms.KeyRing;
import com.pulumi.gcp.kms.KeyRingArgs;
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 example_keyring = new KeyRing("example-keyring", KeyRingArgs.builder()
.location("global")
.build());
}
}
Content copied to clipboard
Import
KeyRing can be imported using any of these accepted formats
$ pulumi import gcp:kms/keyRing:KeyRing default projects/{{project}}/locations/{{location}}/keyRings/{{name}}
Content copied to clipboard
$ pulumi import gcp:kms/keyRing:KeyRing default {{project}}/{{location}}/{{name}}
Content copied to clipboard
$ pulumi import gcp:kms/keyRing:KeyRing default {{location}}/{{name}}
Content copied to clipboard