Skip to content

Conversation

@rswanson
Copy link
Member

No description provided.

@rswanson rswanson mentioned this pull request May 20, 2025
@rswanson rswanson marked this pull request as ready for review May 20, 2025 21:09
@rswanson rswanson requested a review from Copilot May 20, 2025 21:10
Copy link
Contributor

Copilot AI left a 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.go with policy document definitions
  • Introduced pkg/aws/iam.go with CreateIAMResources and CreateKMSPolicy, 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(

@rswanson rswanson mentioned this pull request May 27, 2025
@rswanson rswanson force-pushed the swanny/aws-for-now branch from 55df81a to e4b185d Compare May 27, 2025 16:56
@rswanson rswanson requested review from Evalir and dylanlott May 27, 2025 17:00
@rswanson rswanson force-pushed the swanny/aws-for-now branch from e4b185d to 35cfcf6 Compare May 27, 2025 17:06
This was referenced May 27, 2025
@rswanson rswanson force-pushed the swanny/aws-for-now branch from 35cfcf6 to 8430abf Compare May 29, 2025 11:25
@rswanson rswanson force-pushed the swanny/utils-are-dry branch from b7d5735 to 4bfa0b0 Compare May 29, 2025 11:25
@rswanson rswanson force-pushed the swanny/aws-for-now branch from 8430abf to 477f988 Compare May 29, 2025 11:29
@rswanson rswanson force-pushed the swanny/utils-are-dry branch from 4bfa0b0 to 8cf02b7 Compare May 29, 2025 11:29
@rswanson rswanson self-assigned this May 29, 2025
@rswanson rswanson changed the base branch from swanny/utils-are-dry to graphite-base/4 May 29, 2025 13:50
@rswanson rswanson force-pushed the swanny/aws-for-now branch from 477f988 to ad1e1fc Compare May 29, 2025 13:52
@graphite-app graphite-app bot changed the base branch from graphite-base/4 to main May 29, 2025 13:53
@rswanson rswanson force-pushed the swanny/aws-for-now branch from ad1e1fc to 1d0d165 Compare May 29, 2025 13:53
@rswanson rswanson merged commit f9e9df6 into main May 29, 2025
2 checks passed
Copy link
Member Author

Merge activity

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.

3 participants