Authenticate To AWS Services Using IAM Service Account
Connecting applications to AWS services from inside an Amazon Elastic Kubernetes Service (EKS) cluster is streamlined through native integration. Leveraging Kubernetes-native constructs like ServiceAccounts and IAM roles for pods, applications can securely access various AWS services using AWS SDKs. This enhances scalability and flexibility while maintaining robust security protocols.Below document is an example of connecting to S3 from inside of EKS cluster.
Step 4 - Annotate the serviceaccount with IAM role ARN
Create a service account in the namespace and annotate it with the IAM role ARN using TrueFoundry platform here with the following serviceaccount spec: