Skip to content

feat: S3 table and table bucket CMK encryption support #327

New issue

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

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

Already on GitHub? Sign in to your account

Conversation

magreenbaum
Copy link
Member

Description

Add support for table bucket and table CMK encryption.
Also fix default value of maintenance_configuration to allow for passing no configuration.

Motivation and Context

hashicorp/terraform-provider-aws#42356

Breaking Changes

No.

How Has This Been Tested?

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects
  • I have executed pre-commit run -a on my pull request

variable "maintenance_configuration" {
description = "Map of table bucket maintenance configurations"
type = any
default = {}
default = null
Copy link
Member Author

Choose a reason for hiding this comment

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

Turns out if you don't specify maintenance_configuration and rely on this default value, an error occurs unless null.

╷
│ Error: Incorrect attribute value type
│ 
│   on ../../modules/table-bucket/main.tf line 6, in resource "aws_s3tables_table_bucket" "this":
│    6:   maintenance_configuration = var.maintenance_configuration
│     ├────────────────
│     │ var.maintenance_configuration is object with no attributes
│ 
│ Inappropriate value for attribute "maintenance_configuration": attribute "iceberg_unreferenced_file_removal" is required.
╵

@antonbabenko antonbabenko merged commit 541232b into terraform-aws-modules:master May 16, 2025
19 checks passed
antonbabenko pushed a commit that referenced this pull request May 16, 2025
## [4.9.0](v4.8.0...v4.9.0) (2025-05-16)

### Features

* S3 table and table bucket CMK encryption support ([#327](#327)) ([541232b](541232b))
@antonbabenko
Copy link
Member

This PR is included in version 4.9.0 🎉

@magreenbaum magreenbaum deleted the feat/s3table_bucket_encryption branch May 19, 2025 14:30
Copy link

I'm going to lock this pull request 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 related to this change, 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 Jun 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants