Support for Creating AWS Service Linked Roles #2337
Labels
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
kind/enhancement
Categorizes issue or PR as related to existing feature enhancements.
service/iam
Indicates issues or PRs that are related to iam-controller.
Currently, when attempting to create an IAM Role with the AWSServiceRoleFor* prefix using the ack-iam-controller, AWS returns the following error:
This happens because AWS restricts the creation of Service Linked Roles (SLRs) to AWS services themselves. However, for Kubernetes workloads that require service-linked roles (e.g., EC2 Spot Instances, RDS, Lambda, etc.), it would be beneficial if ack-iam-controller could either:
Without this support, users must manually create SLRs through the AWS CLI or AWS Management Console, breaking the declarative nature of Kubernetes + ACK IAM.
Steps to Reproduce:
This results in:
Expected Behavior:
Either ack-iam-controller should be able to trigger AWS Service Linked Role creation automatically and/or allow referencing existing Service Linked Roles as IAM roles in Kubernetes.
Workarounds & Current Issues:
Currently, we must manually create the SLRs using the AWS CLI:
This is not ideal because:
It breaks automation and GitOps principles.
It requires manual intervention, making Kubernetes management more complex.
Request for Enhancement:
Would it be possible for ack-iam-controller to support automatic creation or referencing of AWS Service Linked Roles? This would make it much easier to manage AWS-integrated workloads in Kubernetes.
The text was updated successfully, but these errors were encountered: