Complete Cloud KMS

Terraform scripts to create a complete GCP Cloud KMS using the module kms.

To create a complete GCP Cloud KMS:

terraform init
terraform plan
terraform apply

To delete all resource:

terraform destroy

Requirements

Name

Version

terraform

>= 1.0

external

~> 2.3.1

google

~> 6.16.0

local

~> 2.4.0

null

~> 3.2.1

Providers

Name

Version

external

~> 2.3.1

google

~> 6.16.0

local

~> 2.4.0

null

~> 3.2.1

Modules

Name

Source

Version

complete_kms

../../../kms

n/a

Resources

Name

Type

local_file.date_sh

resource

null_resource.timestamp

resource

external_external.static_timestamp

data source

google_client_openid_userinfo.current

data source

Inputs

Name

Description

Type

Default

Required

project

Project name

string

n/a

yes

region

The GCP region used to deploy the KMS.

string

"europe-west9"

no

Outputs

Name

Description

crypto_key_ids

The Map of the created crypto keys.

crypto_key_roles

The IAM roles for the crypto keys.

key_ring_id

The ID of the KeyRing.

key_ring_location

The location for the KeyRing.

key_ring_name

The resource name for the KeyRing.

key_ring_roles

The IAM roles for the KeyRing.