Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

Daniel bucket #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions master.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ locals {
resource "aws_s3_bucket" "bucket" {
count = var.is_guardduty_master && (var.has_ipset || var.has_threatintelset) ? 1 : 0
bucket = var.bucket_name
force_destroy = var.force_destroy
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be re-indented.

acl = "private"
}

Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ variable "bucket_name" {
default = ""
}

variable "force_destroy" {
type = bool
description = "(Optional) A boolean that indicates all objects should be deleted from the bucket so that the bucket can be destroyed without error. These objects are not recoverable."
default = false
}

variable "is_guardduty_master" {
type = bool
description = "Whether the account is a master account"
Expand Down