diff --git a/examples/kms-key/README.md b/examples/kms-key/README.md new file mode 100644 index 0000000..d172bd4 --- /dev/null +++ b/examples/kms-key/README.md @@ -0,0 +1,27 @@ +## Requirements + +No requirements. + +## Providers + +No providers. + +## Modules + +| Name | Source | Version | +|------|--------|---------| +| [simple-key](#module\_simple-key) | git@github.e.it.census.gov:terraform-modules/aws-s3.git//kms_key | n/a | + +## Resources + +No resources. + +## Inputs + +No inputs. + +## Outputs + +| Name | Description | +|------|-------------| +| [simple-key-info](#output\_simple-key-info) | KMS Key Info | diff --git a/examples/kms-key/simple-kms-key.tf b/examples/kms-key/simple-kms-key.tf index c68429d..9e8e9b1 100644 --- a/examples/kms-key/simple-kms-key.tf +++ b/examples/kms-key/simple-kms-key.tf @@ -7,8 +7,8 @@ module "simple-key" { # kms_policy_document = data.aws_iam_policy_document.mypolicy.json } -output "my-simple-key" { - description = "KMS Key Details" +output "simple-key-info" { + description = "KMS Key Info" value = { arn = module.simple-key.kms_key_arn id = module.simple-key.kms_key_id diff --git a/examples/s3-standard/README.md b/examples/s3-standard/README.md new file mode 100644 index 0000000..f842a0e --- /dev/null +++ b/examples/s3-standard/README.md @@ -0,0 +1,27 @@ +## Requirements + +No requirements. + +## Providers + +No providers. + +## Modules + +| Name | Source | Version | +|------|--------|---------| +| [my-bucket](#module\_my-bucket) | git@github.e.it.census.gov:terraform-modules/aws-s3.git//standard | n/a | + +## Resources + +No resources. + +## Inputs + +No inputs. + +## Outputs + +| Name | Description | +|------|-------------| +| [my-bucket-info](#output\_my-bucket-info) | S3 Standard Bucket Info | diff --git a/examples/s3-standard/simple-bucket.tf b/examples/s3-standard/simple-bucket.tf new file mode 100644 index 0000000..8a62cc6 --- /dev/null +++ b/examples/s3-standard/simple-bucket.tf @@ -0,0 +1,19 @@ +module "my-bucket" { + source = "git@github.e.it.census.gov:terraform-modules/aws-s3.git//standard" + + bucket_name = "my-normalbucket" + access_log_bucket = "my-logbucket" + # kms_admin_roles = [ aws_iam_role.cloud-admin.arn ] + + ## optional + # kms_policy_document = data.aws_iam_policy_document.my-policy.json + # bucket_policy_document = data.aws_iam_policy_document.my-bucketpolicy.json +} + +output "my-bucket-info" { + description = "S3 Standard Bucket Info" + value = { + arn = module.my-bucket.s3_bucket_arn + id = module.my-bucket.s3_bucket_id + } +}