Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Make kms_master_key_id optional #6

Closed
oleksii-borodai opened this issue Oct 23, 2019 · 5 comments
Closed

Make kms_master_key_id optional #6

oleksii-borodai opened this issue Oct 23, 2019 · 5 comments

Comments

@oleksii-borodai
Copy link
Contributor

Sample code:

module "s3_bucket" {
  source = "terraform-aws-modules/s3-bucket/aws"

  bucket = "sample-bucket-1234567890"
  acl = "private"

  server_side_encryption_configuration = {
    rule = {
      apply_server_side_encryption_by_default = {
        sse_algorithm = "AES256"
      }
    }
  }

}

Expected outcome: Bucket created with SSE-S3 encryption.

Real outcome:

Error: Unsupported attribute

  on .terraform/modules/s3_bucket/terraform-aws-modules-terraform-aws-s3-bucket-f778720/main.tf line 190, in resource "aws_s3_bucket" "this":
 190:               kms_master_key_id = apply_server_side_encryption_by_default.value.kms_master_key_id
    |----------------
    | apply_server_side_encryption_by_default.value is object with 1 attribute "sse_algorithm"

This object does not have an attribute named "kms_master_key_id"
@oleksii-borodai
Copy link
Contributor Author

PR #5 fixes this issue

@oleksii-borodai oleksii-borodai changed the title Make Make kms_master_key_id optional Oct 23, 2019
@michael-robbins
Copy link

I'm hitting this exact issue too, @antonbabenko is there anything holding up merging this PR?

@antonbabenko
Copy link
Member

antonbabenko commented Dec 30, 2019 via email

@antonbabenko
Copy link
Member

Thanks @aboroday for the report and fix.

v1.5.0 of this module has been just released.

yarda7 pushed a commit to yarda7/terraform-aws-s3-bucket that referenced this issue Jan 20, 2021
@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 29, 2022
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants