Skip to content

Commit

Permalink
add exmaple for s3-standard
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Nov 17, 2021
1 parent bc94be2 commit e65e2f4
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 2 deletions.
27 changes: 27 additions & 0 deletions examples/kms-key/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## Requirements

No requirements.

## Providers

No providers.

## Modules

| Name | Source | Version |
|------|--------|---------|
| <a name="module_simple-key"></a> [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 |
|------|-------------|
| <a name="output_simple-key-info"></a> [simple-key-info](#output\_simple-key-info) | KMS Key Info |
4 changes: 2 additions & 2 deletions examples/kms-key/simple-kms-key.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
27 changes: 27 additions & 0 deletions examples/s3-standard/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## Requirements

No requirements.

## Providers

No providers.

## Modules

| Name | Source | Version |
|------|--------|---------|
| <a name="module_my-bucket"></a> [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 |
|------|-------------|
| <a name="output_my-bucket-info"></a> [my-bucket-info](#output\_my-bucket-info) | S3 Standard Bucket Info |
19 changes: 19 additions & 0 deletions examples/s3-standard/simple-bucket.tf
Original file line number Diff line number Diff line change
@@ -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
}
}

0 comments on commit e65e2f4

Please sign in to comment.