Skip to content

[DEV-14958] Upgrade s3 storage version and add needed variables#553

Merged
emuzykin1 merged 2 commits intoIPA-7.5.11.rcfrom
dev-14958-7511
Mar 27, 2026
Merged

[DEV-14958] Upgrade s3 storage version and add needed variables#553
emuzykin1 merged 2 commits intoIPA-7.5.11.rcfrom
dev-14958-7511

Conversation

@ltellesfl
Copy link
Copy Markdown
Contributor

@ltellesfl ltellesfl commented Mar 27, 2026

Note

Medium Risk
Upgrades the S3 buckets Terraform module and changes lifecycle/retention inputs, which can alter object version and backup cleanup behavior if misconfigured.

Overview
Updates the s3-storage Terraform module from 4.5.0 to 4.6.0 and switches S3 retention configuration from the older submission_expiry/uploads_expiry inputs to new lifecycle controls.

Adds s3_cleanup_noncurrent_days and s3_retain_backup_days variables and wires them into the module via cleanup_noncurrent_days and retain_backup_days, while removing the deprecated variables from smoke-test config and sample user_vars.auto.tfvars.

Written by Cursor Bugbot for commit e4cb0a3. This will update automatically on new commits. Configure here.

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Comment thread tf-smoketest-variables.tf
existing_kms_key = "${jsonencode(var.existing_kms_key)}"
bucket_versioning = "${jsonencode(var.bucket_versioning)}"
submission_expiry = "${jsonencode(var.submission_expiry)}"
uploads_expiry = "${jsonencode(var.uploads_expiry)}"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

New variables missing from auto-generated smoketest configmap

Low Severity

The tf-smoketest-variables.tf file (which is auto-generated via generate-variables and marked "DO NOT EDIT") was manually edited to remove submission_expiry and uploads_expiry, but the new s3_cleanup_noncurrent_days and s3_retain_backup_days variables were not added. The file needs to be regenerated by running the generate-variables script so the Kubernetes ConfigMap used by smoke tests stays in sync with variables.tf.

Fix in Cursor Fix in Web

@emuzykin1 emuzykin1 merged commit 2a44aad into IPA-7.5.11.rc Mar 27, 2026
5 checks passed
@emuzykin1 emuzykin1 deleted the dev-14958-7511 branch March 27, 2026 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants