Skip to content

Commit

Permalink
disable versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandarknezevic committed Jun 30, 2023
1 parent d701a60 commit 0933d5d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/complete/fixtures.us-east-2.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,5 @@ env_vars = {
"DB_PASSWORD" = "zzzzzzzzzzzzzzzzzzz"
"ANOTHER_ENV_VAR" = "123456789"
}

s3_bucket_versioning_enabled = false
2 changes: 2 additions & 0 deletions examples/complete/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ module "elastic_beanstalk_environment" {
prefer_legacy_service_policy = false
scheduled_actions = var.scheduled_actions

s3_bucket_versioning_enabled = var.s3_bucket_versioning_enabled

context = module.this.context
}

Expand Down
5 changes: 5 additions & 0 deletions examples/complete/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -184,3 +184,8 @@ variable "scheduled_actions" {
default = []
description = "Define a list of scheduled actions"
}

variable "s3_bucket_versioning_enabled" {
type = bool
description = "When set to 'true' the s3 origin bucket will have versioning enabled"
}

0 comments on commit 0933d5d

Please sign in to comment.