Skip to content

Commit

Permalink
add exmaple for kms key
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Nov 17, 2021
1 parent 271896d commit bc94be2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
Here we have some examples for use of this module and supporting submodules.

## policy
## s3 standard
## s3 title26
## kms_key
## s3-standard
## s3-title26
## kms-key

<!-- BEGIN_TF_DOCS -->
<!-- END_TF_DOCS -->
17 changes: 17 additions & 0 deletions examples/kms-key/simple-kms-key.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module "simple-key" {
source = "git@github.e.it.census.gov:terraform-modules/aws-s3.git//kms_key"
key_name = "my-simple-key"

## optional
# kms_admin_roles = [ aws_iam_role.cloud-admin.arn ]
# kms_policy_document = data.aws_iam_policy_document.mypolicy.json
}

output "my-simple-key" {
description = "KMS Key Details"
value = {
arn = module.simple-key.kms_key_arn
id = module.simple-key.kms_key_id
alias = module.simple-key.kms_key_alias
}
}

0 comments on commit bc94be2

Please sign in to comment.