Skip to content

fix: add iam policies and lakeformation changes for legacy loading - #288

Merged
mmalenic merged 1 commit into
mainfrom
feat/orcavault-run-legacy-load
Oct 27, 2026
Merged

mmalenic merged 1 commit into
mainfrom
feat/orcavault-run-legacy-load

Conversation

@mmalenic

Copy link
Copy Markdown
Member

From yesterday's debugging session:

  • Adjust redshift serverless base and max RPUs.
  • Adjust fargate task memory and CPU.
  • Rename some variables and remove defaults.
  • Add data_portal database to IAM and lakeformation grants.

@mmalenic

Copy link
Copy Markdown
Member Author

related to https://github.com/umccr/orcahouse-project/issues/64

@mmalenic mmalenic self-assigned this Oct 27, 2026
@mmalenic mmalenic added the enhancement New feature or request label Oct 27, 2026
@mmalenic
mmalenic requested a balanced review from Copilot October 27, 2026 00:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Production permission changes and the AWS provider upgrade need human-reviewed Terraform plans to confirm deployment impact.

No open issues 🎉

2 files not reviewed
  • infra/redshift/environments/dev/.terraform.lock.hcl: Generated file
  • infra/redshift/environments/prod/.terraform.lock.hcl: Generated file
What changed in this PR

This PR enables legacy data loading by extending the Orcavault runner’s source permissions and increasing compute capacity in development and production.

Changes:

  • Add data_portal Lake Formation grants and S3 access for the legacy export prefix.
  • Make source databases, bucket, and prefixes explicit module inputs, with tests for source permissions.
  • Increase Fargate resources and Redshift maximum capacity, and upgrade the Redshift AWS provider.
File Description
infra/​redshift/​environments/​prod/​main.tf Raise maximum capacity to 8 RPUs and update the provider requirement.
infra/​redshift/​environments/​prod/​.terraform.lock.hcl Lock AWS provider 6.70.0 and refresh checksums.
infra/​redshift/​environments/​dev/​main.tf Apply matching capacity and provider changes in development.
infra/​redshift/​environments/​dev/​.terraform.lock.hcl Lock AWS provider 6.70.0 and refresh checksums.
infra/​orcavault-run/​modules/​orcavault-run/​variables.tf Require explicit source inputs and increase Fargate CPU and memory.
infra/​orcavault-run/​modules/​orcavault-run/​test_orcavault_run.tftest.hcl Add source inputs and assertions for database grants and S3 prefixes.
infra/​orcavault-run/​modules/​orcavault-run/​main.tf Use the renamed bucket input.
infra/​orcavault-run/​modules/​orcavault-run/​lakeformation.tf Grant access to all configured source databases.
infra/​orcavault-run/​modules/​orcavault-run/​iam.tf Support multiple S3 prefixes for listing and reading files.
infra/​orcavault-run/​environments/​prod/​main.tf Configure CDC and legacy data sources explicitly.
infra/​orcavault-run/​environments/​dev/​main.tf Configure the same source access for development.

Review effort: Balanced

@mmalenic
mmalenic requested a review from victorskl October 27, 2026 01:12
@victorskl

Copy link
Copy Markdown
Member

reviewing...

@victorskl victorskl left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@victorskl

Copy link
Copy Markdown
Member

(to kiro)

This should tick "bump the Redshift Serverless capacity to base_capacity = 4, max_capacity = 8 RPU via Terraform".

@mmalenic
mmalenic added this pull request to the merge queue Oct 27, 2026
Merged via the queue into main with commit a85fa0e Oct 27, 2026
7 checks passed
@mmalenic
mmalenic deleted the feat/orcavault-run-legacy-load branch October 27, 2026 01:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants