AWS_ACCESS_KEY_ID
and AWS_SECRET_ACCESS_KEY
environment variables. AWS SDKs will automatically pick these up from the environment variables and authenticate with the corresponding AWS service. The accesskey and secretaccesskey can be found in the AWS console and can be generated by your Infra team.How to create an IAM role and service account?
Get cluster and accountdetails
Get Cluster's OIDC Provider URL
oidc.eks.YOUR_REGION.amazonaws.com/id/YOUR_OIDC_ID
Create an IAM Policy
Create an IAM Role
Attach the IAM Policy to the Role
Create and Apply the Kubernetes Service Account
service-account.yaml
):Verify the Service Account
aws s3 ls
to verify if you are able to access the S3 bucket.