Skip to content

Commit b30401b

Browse files
authored
Merge pull request #3 from cruxstack/dev
feat: create bucket by default when bucket is enabled
2 parents 3054168 + f2241b8 commit b30401b

3 files changed

Lines changed: 1 addition & 7 deletions

File tree

examples/complete/main.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ module "securityhub_bot" {
4141
rules_s3_bucket = {
4242
enabled = true
4343
create = true
44-
name = var.rules_s3_bucket
4544
prefix = "securityhub-rules/"
4645
}
4746

examples/complete/variables.tf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ variable "stage" {
1616
default = ""
1717
}
1818

19-
variable "rules_s3_bucket" {
20-
description = "S3 bucket containing automation rules"
21-
type = string
22-
}
23-
2419
variable "slack_bot_token" {
2520
description = "Slack bot token (requires chat:write scope)"
2621
type = string

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ variable "rules_s3_bucket" {
9898
description = "S3 bucket configuration for storing automation rules. Set create=true to create a new bucket, or provide an existing bucket name."
9999
type = object({
100100
enabled = optional(bool, false)
101-
create = optional(bool, false)
101+
create = optional(bool, true)
102102
name = optional(string)
103103
prefix = optional(string, "rules/")
104104
})

0 commit comments

Comments
 (0)