Skip to content

Commit

Permalink
- pin aws provider to < 4.0
Browse files Browse the repository at this point in the history
- add bucket_key_enabled (for S3 bucket keys; https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucket-key.html)
  • Loading branch information
badra001 committed Feb 22, 2022
1 parent c019c34 commit 3c0f6d0
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 11 deletions.
26 changes: 17 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Provides standard and t26 S3 bucket construction.

## Versions
## Version 1.x

* v1.0 -- 20200719
- initial creation
Expand All @@ -15,7 +15,9 @@ Provides standard and t26 S3 bucket construction.
* v1.2 -- 20201104
- fix s3 bucket permission to not output statement with deny if no IP and VPCE provided

* v2.0 -- 20201104
## Version 2.x

* 2.0 -- 20201104
- change to aws-s3
- create submodules `standard` and `title26`
- standard
Expand All @@ -27,25 +29,31 @@ Provides standard and t26 S3 bucket construction.
- explicit boc:authority tag
- auto create encryption key

* v2.0.1 -- 20210325
* 2.0.1 -- 20210325
- make bucket policies denying missing encryption header optional
- add variable: `require_explicit_encryption` default = false

* v2.1.0 -- 20210511
* 2.1.0 -- 20210511
- add kms_policy to be used for custom kms key policy and kms_admin_roles

* v2.2.0 -- 20210520
* 2.2.0 -- 20210520
- add bucket_policy_document to be used for additional bucket policy merged with the default

* v2.2.1 -- 20210528
* 2.2.1 -- 20210528
- fix key_id for encryption to be the arn of the key (despite the name)

* v2.2.2 -- 20211104
* 2.2.2 -- 20211104
- update documenation to include sample policy and policy document

* v2.3.0 -- 20211117
* 2.3.0 -- 20211117
- add submodule kms_key to be able to create a key, and then use it for later bucket
- allow kms_key_arn to passed in for standard and title26 buckets

* v2.4.0 -- 20220118
* 2.4.0 -- 20220118
- add bucket_owner controls (default BucketOwnerPreferred)

* 2.4.1 -- 20220222
- pin aws provider to < 4.0
- add bucket_key_enabled (for S3 bucket keys; https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucket-key.html)


1 change: 1 addition & 0 deletions common/resources.tf
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ resource "aws_s3_bucket" "this" {
kms_master_key_id = local.kms_key_arn
sse_algorithm = "aws:kms"
}
bucket_key_enabled = var.bucket_key_enabled
}
}

Expand Down
6 changes: 6 additions & 0 deletions common/variables.s3.tf
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,9 @@ variable "bucket_owner" {
type = string
default = "BucketOwnerPreferred"
}

variable "bucket_key_enabled" {
description = "Enable or disable the use of S3 Bucket Keys (see AWS documenation at https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucket-key.html)."
type = bool
default = false
}
2 changes: 1 addition & 1 deletion common/version.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
locals {
_module_version = "2.3.0"
_module_version = "2.3.1"
}
2 changes: 1 addition & 1 deletion common/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 3.66.0"
version = "~> 3.0"
}
null = {
source = "hashicorp/null"
Expand Down

0 comments on commit 3c0f6d0

Please sign in to comment.