Skip to content

ISSUE-2337 IAM service linked role support #134

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions apis/v1alpha1/ack-generate-metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
ack_generate_info:
build_date: "2025-05-02T16:46:04Z"
build_hash: f8dc5330705b3752ce07dce0ac831161fd4cb14f
build_date: "2025-05-03T16:27:40Z"
build_hash: 0909e7f0adb8ffe4120a8c20d5d58b991f2539e9
go_version: go1.24.2
version: v0.45.0
api_directory_checksum: 7e1c19231d3275a1147157f6943a7391953f7001
version: v0.44.0-3-g0909e7f
Copy link
Member

Choose a reason for hiding this comment

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

we made a new release for code-generator with v0.45.0.

api_directory_checksum: d7e5854d868fce7b5e9495117543d7d0b1201112
api_version: v1alpha1
aws_sdk_go_version: v1.32.6
generator_config_info:
file_checksum: 41d31ed2f36d33ae7877a9cd2c85d1e293f37cfe
file_checksum: a1e6585209ae3bff29e73f95edbd3ad234a510b1
original_file_name: generator.yaml
last_modification:
reason: API generation
15 changes: 14 additions & 1 deletion apis/v1alpha1/generator.yaml
Copy link
Member

Choose a reason for hiding this comment

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

should we mark all fields as immutable? except Description

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ignore:
- PolicyVersion
#- Role
- SAMLProvider
- ServiceLinkedRole
#- ServiceLinkedRole
- ServiceSpecificCredential
#- User
- VirtualMFADevice
Expand Down Expand Up @@ -342,3 +342,16 @@ resources:
Tags:
compare:
is_ignored: true
ServiceLinkedRole:
tags:
ignore: true
find_operation:
custom_method_name: customGetServiceLinkedRole
Comment on lines +348 to +349
Copy link
Member

Choose a reason for hiding this comment

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

can we do this instead? https://github.com/aws-controllers-k8s/ec2-controller/blob/cfbaec9206c64a720c4b2ce89d691b8c30715995/generator.yaml#L287-L291

We can use GetRole as operation and READ_ONE as operation_type

update_operation:
custom_method_name: customUpdateServiceLinkedRole
hooks:
sdk_create_post_set_output:
template_path: hooks/service_linked_role/sdk_create_post_set_output.go.tpl
exceptions:
terminal_codes:
- InvalidInput
133 changes: 133 additions & 0 deletions apis/v1alpha1/service_linked_role.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

170 changes: 170 additions & 0 deletions apis/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions cmd/controller/main.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion config/controller/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ kind: Kustomization
images:
- name: controller
newName: public.ecr.aws/aws-controllers-k8s/iam-controller
newTag: 1.3.20
newTag: 0.0.0-non-release-version
Copy link
Member

Choose a reason for hiding this comment

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

can you pull the latest tags?

Loading