Skip to content

Commit

Permalink
Merge pull request #10 from QuiNovas/develop
Browse files Browse the repository at this point in the history
add tags
  • Loading branch information
vchinnakotla authored Aug 13, 2021
2 parents 60d8559 + 9ccd942 commit 965ab0e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ resource "aws_s3_bucket" "log" {
}
}
}

tags = variables.tags
}

data "aws_elb_service_account" "main" {
Expand Down Expand Up @@ -83,5 +85,4 @@ resource "aws_s3_bucket_public_access_block" "log" {
block_public_policy = true
ignore_public_acls = true
restrict_public_buckets = true

}
3 changes: 1 addition & 2 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ output "arn" {
output "id" {
description = "The name of the bucket."
value = aws_s3_bucket.log.id
}

}
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,10 @@ variable "transition_to_glacier" {
default = 30
description = "The number of days to wait before transitioning an object to Glacier"
type = number
}

variable "tags" {
description = "(Optional) A mapping of tags to assign to the resources"
type = map(string)
default = {}
}

0 comments on commit 965ab0e

Please sign in to comment.