Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Dec 17, 2020
1 parent 4a51407 commit bad7e1c
Show file tree
Hide file tree
Showing 5 changed files with 80 additions and 4 deletions.
34 changes: 34 additions & 0 deletions common/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
## Requirements

No requirements.

## Providers

| Name | Version |
|------|---------|
| aws | n/a |
| null | n/a |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| \_module\_version | Module version number | `string` | `"2.0"` | no |
| access\_log\_bucket | Server Access Logging Bucket ID | `string` | n/a | yes |
| access\_log\_bucket\_prefix | Access log bucket prefix, to which the bucket name will be appended to make the target\_prefix | `string` | `"s3"` | no |
| allowed\_cidr | List of allowed source IPs (NOT from within the VPC) | `list(string)` | `[]` | no |
| allowed\_endpoints | List of allowed VPC endpoint IDs | `list(string)` | `[]` | no |
| bucket\_folders | List of folders (keys) to create after creation of bucket | `list(string)` | `[]` | no |
| bucket\_name | AWS Bucket Name | `string` | n/a | yes |
| force\_destroy | Sets force\_destroy to allow the bucket and contents to be deleted. The deletion may take a very long time | `bool` | `false` | no |
| kms\_key\_id | AWS KMS Key ID (one per bucket) | `string` | `""` | no |
| tags | AWS Tags | `map(string)` | `{}` | no |

## Outputs

| Name | Description |
|------|-------------|
| kms\_key\_arn | Created KMS Key ARN |
| kms\_key\_id | Created KMS Key ID |
| s3\_bucket\_arn | Created S3 Bucket ARN |
| s3\_bucket\_id | Created S3 Bucket ID |
11 changes: 10 additions & 1 deletion standard/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# About aws-s3
# About aws-s3 :: standard

This submodule allows you to create an S3 bucket using the standard prefixes and settings required for
non-FTI Data. This includes
- Server Access Logging

Other configurations such as versioning or data safegurad tagging (only on the bucket/keys) are oiptional

# Usage

Expand All @@ -7,9 +13,12 @@ module "mybucket" {
source = "git@github.e.it.census.gov:terraform-modules/aws-s3.git//standard"
bucket_name = "mynormalbucket"
access_log_bucket = "mylogbucket"
}
```

This automaticaly creates an AWS KMS key used just for this bucket.

## Requirements

No requirements.
Expand Down
10 changes: 9 additions & 1 deletion standard/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
/*
* # About aws-s3
* # About aws-s3 :: standard
*
* This submodule allows you to create an S3 bucket using the standard prefixes and settings required for
* non-FTI Data. This includes
* - Server Access Logging
*
* Other configurations such as versioning or data safegurad tagging (only on the bucket/keys) are oiptional
*
* # Usage
*
Expand All @@ -8,9 +14,11 @@
* source = "git@github.e.it.census.gov:terraform-modules/aws-s3.git//standard"
*
* bucket_name = "mynormalbucket"
* access_log_bucket = "mylogbucket"
* }
* ```
*
* This automaticaly creates an AWS KMS key used just for this bucket.
*/

locals {
Expand Down
15 changes: 14 additions & 1 deletion title26/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# About aws-s3
# About aws-s3 :: title26

This submodule allows you to create an S3 bucket using the standard prefixes and settings required for
FTI (Title26). This includes
- Versioning (though the requirements are unclear on this, this may be removed)
- Tag of boc:safeguade=title26
- Server Access Logging

# Usage

Expand All @@ -7,10 +13,17 @@ module "mybucket" {
source = "git@github.e.it.census.gov:terraform-modules/aws-s3.git//title26"
bucket_name = "myt26bucket"
access_log_bucket = "mylogbucket"
# enable_title26 = true
}
```

This automatically enables the enable\_title26 flag, giving you a tag of `boc:safeguard=title26`.
It does all you to add other safeguards as necessary (title13, pii, etc), and these are joined together
to make a comma separated list.

This automaticaly creates an AWS KMS key used just for this bucket.

## Requirements

No requirements.
Expand Down
14 changes: 13 additions & 1 deletion title26/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
/*
* # About aws-s3
* # About aws-s3 :: title26
*
* This submodule allows you to create an S3 bucket using the standard prefixes and settings required for
* FTI (Title26). This includes
* - Versioning (though the requirements are unclear on this, this may be removed)
* - Tag of boc:safeguade=title26
* - Server Access Logging
*
* # Usage
*
Expand All @@ -8,10 +14,16 @@
* source = "git@github.e.it.census.gov:terraform-modules/aws-s3.git//title26"
*
* bucket_name = "myt26bucket"
* access_log_bucket = "mylogbucket"
* # enable_title26 = true
* }
* ```
*
* This automatically enables the enable_title26 flag, giving you a tag of `boc:safeguard=title26`.
* It does all you to add other safeguards as necessary (title13, pii, etc), and these are joined together
* to make a comma separated list.
*
* This automaticaly creates an AWS KMS key used just for this bucket.
*/

locals {
Expand Down

0 comments on commit bad7e1c

Please sign in to comment.