-
Notifications
You must be signed in to change notification settings - Fork 0
feat: aws package, so builder and signet_node are isolated to k8s resources #4
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR extracts AWS IAM/KMS resource management out of the builder package into a dedicated pkg/aws module, removing inline IAM/KMS types and creation logic from pkg/builder and adding shared types, factory functions, and tests under pkg/aws.
- Removed inline IAM/KMS types, helpers, and tests from
pkg/builder - Added
pkg/aws/types.gowith policy document definitions - Introduced
pkg/aws/iam.gowithCreateIAMResourcesandCreateKMSPolicy, plus one unit test
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| pkg/builder/types.go | Removed AWS IAM imports and type definitions |
| pkg/builder/helpers.go | Deleted CreateKMSPolicy helper |
| pkg/builder/helpers_test.go | Removed now-obsolete KMS policy unit tests |
| pkg/builder/builder.go | Stripped out IAM role/policy creation code |
| pkg/aws/types.go | Added shared IAM/KMS policy type definitions |
| pkg/aws/iam.go | New AWS IAM/KMS resource factory functions |
| pkg/aws/iam_test.go | Added test for KMS policy creation |
Comments suppressed due to low confidence (2)
pkg/builder/builder.go:38
- IAM resource creation was removed from NewBuilder but no new call to aws.CreateIAMResources was added, so the component no longer provisions required IAM roles and policies. Consider invoking CreateIAMResources and integrating its outputs into the builder component.
// Create ConfigMap for environment variables
pkg/aws/iam.go:19
- CreateIAMResources is not covered by any unit tests. Consider adding tests to validate IAM role creation, policy generation, and attachment logic.
func CreateIAMResources(
55df81a to
e4b185d
Compare
e4b185d to
35cfcf6
Compare
35cfcf6 to
8430abf
Compare
b7d5735 to
4bfa0b0
Compare
8430abf to
477f988
Compare
4bfa0b0 to
8cf02b7
Compare
477f988 to
ad1e1fc
Compare
ad1e1fc to
1d0d165
Compare

No description provided.