Complete AWS KMS Example
Terraform scripts to create a complete AWS KMS using the module kms.
To create a complete AWS KMS:
terraform init
terraform plan
terraform apply
To delete all resource:
terraform destroy
Note that this example may create resources which will incur monetary charges on your AWS bill. Run terraform destroy when you no longer need these resources.
Requirements
Name |
Version |
|---|---|
>= 1.0 |
|
>= 5.61 |
|
~> 2.3.1 |
|
>= 3.2.1 |
Providers
Name |
Version |
|---|---|
>= 5.61 |
|
~> 2.3.1 |
|
>= 3.2.1 |
Modules
Name |
Source |
Version |
|---|---|---|
../../../kms |
n/a |
Resources
Name |
Type |
|---|---|
resource |
|
resource |
|
data source |
|
data source |
|
data source |
Inputs
Name |
Description |
Type |
Default |
Required |
|---|---|---|---|---|
Profile of AWS credentials to deploy Terraform sources |
|
|
no |
|
AWS region where the infrastructure will be deployed |
|
|
no |
Outputs
Name |
Description |
|---|---|
KMS alias |
|
The Amazon Resource Name (ARN) of the key |
|
The globally unique identifier for the key |