Skip to content

Commit

Permalink
add usage
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Jul 31, 2020
1 parent 375e89b commit d8acaa4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
16 changes: 12 additions & 4 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/* = About =
* = Usage =
* module "mybucket" {
* source = "git@github.e.it.census.gov:terraform-modules/aws-t26-s3.git"
* }
*
*/

locals {
enforced_tags = {
"boc:safeguard" = "title26"
Expand All @@ -24,10 +32,10 @@ resource "aws_s3_bucket" "this" {
enabled = true
}

logging {
target_bucket = var.access_log_bucket
target_prefix = format("%s/%s/",var.access_log_bucket_prefix,var.access_log_bucket)
}
logging {
target_bucket = var.access_log_bucket
target_prefix = format("%s/%s/", var.access_log_bucket_prefix, var.access_log_bucket)
}

lifecycle {
prevent_destroy = true
Expand Down
8 changes: 4 additions & 4 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ variable "kms_key_id" {

variable "tags" {
description = "AWS Tags"
type = map(string)
default = { }
type = map(string)
default = {}
}

variable "access_log_bucket_prefix" {
description = "Access log bucket prefix, to which the bucket name will be appended to make the target_prefix"
type = string
default = "s3"
type = string
default = "s3"
}

0 comments on commit d8acaa4

Please sign in to comment.