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

PLT-292 Test infra for opt-out-import #51

Merged
merged 23 commits into from
Feb 27, 2024
Merged

Conversation

gsf
Copy link
Member

@gsf gsf commented Feb 20, 2024

🎫 Ticket

https://jira.cms.gov/browse/PLT-292

🛠 Changes

Refactoring of shared terraform to support test infra for opt-out-import.

ℹ️ Context for reviewers

In adding the opt-out-import test infra I realized we could wrap resources like S3 buckets and KMS keys in modules to standardize configuration. I also updated handling of AWS account IDs to mask them in logs.

I've also dropped the reusable terraform-command workflow, which is both too powerful (allowing one-off infra changes without understanding context) and not flexible enough to enable updates like the ones mentioned in Acceptance Validation below.

Note that these changes will also require updates to roles and buckets in opt-out-import workflows in ab2d-lambdas and dpc-app, and roles in ab2d and ab2d-events.

✅ Acceptance Validation

All terraform plans should pass. I'm also temporarily updating some apply workflows to move resources in state (like tfstate buckets) to avoid deletion. These should be reviewed on merge, and I will follow up with a PR to return those apply workflows to their usual commands.

🔒 Security Implications

None.

@gsf gsf marked this pull request as ready for review February 27, 2024 06:26
Copy link
Contributor

@gfreeman-navapbc gfreeman-navapbc left a comment

Choose a reason for hiding this comment

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

LGTM

@gsf gsf merged commit d1223ad into main Feb 27, 2024
63 checks passed
@gsf gsf deleted the plt-292-opt-out-import-test-infra branch February 27, 2024 15:47
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants