πŸ“œ
Our Manifesto
🧰
Backup & Disaster Recovery
πŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘¦ Customer Success & Supporty
πŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘¦ Community
Powered By GitBook
EKS Access for an IAM User
It's always recommended to use the IAM Security best practices as per AWS guidelines.

STEP 1: Create an IAM user from the AWS Console

    1.
    Sign into the AWS Management Console and open the IAM console: https://console.aws.amazon.com/iam/.
    2.
    In the navigation panel, choose "Users", and then choose "Add User".
    3.
    Type the username for the new user. This is the same as the sign-in name for AWS.
Select Add_User
    1.
    Select the type of access that this set of users will have.
    2.
    Create the user (without any permission boundary).
Select Set_Permissions
    1.
    Provide the required tags (optional).
Select Required_Tags
    1.
    Click on "Create User".
Select Review
    1.
    Download the .csv file that has the Access ID and Secret Key for the new user.
Select Account_Created

STEP 2: Create a policy for the IAM user

    1.
    Sign in to the AWS Management Console and open the IAM console: https://console.aws.amazon.com/iam/.
    2.
    In the navigation panel on the left, choose "Policies".
    3.
    Choose "Create Policy".
    4.
    Choose the "JSON" tab.
    5.
    Type or paste a JSON policy document to allow access for a particular EKS cluster:
1
{
2
"Version": "2012-10-17",
3
"Statement": [
4
{
5
"Sid": "VisualEditor0",
6
"Effect": "Allow",
7
"Action": [
8
"eks:ListClusters",
9
"eks:DescribeAddonVersions",
10
"eks:CreateCluster"
11
],
12
"Resource": "*"
13
},
14
{
15
"Sid": "VisualEditor1",
16
"Effect": "Allow",
17
"Action": "eks:*",
18
"Resource": "EKS Cluster ARN Value"
19
}
20
]
21
}
Copied!
Select Created_Policy
πŸ‘€ Note: You can get the cluster ARN value from the EKS section.
    1.
    Choose the "Elastic Kubernetes Service".
    2.
    Click on the cluster under the "Amazon EKS" section.
    3.
    Select the cluster.
    4.
    Click on the "Configuration" tab, and get the ARN value.
    5.
    When you are finished, choose "Next: Tags".
    6.
    On the "Review Policy" page, type a name and a description (optional) for the policy that you are creating.
    7.
    Review the policy summary to see the permissions that are granted by your policy, then choose "Create policy" to save your work.

STEP 3: Attach the policy to the user

    1.
    Go to "IAM Services". In the navigation panel, select the users to which you need to assign the permissions.
Attach_Permission
    1.
    Click on "Attach Policy" and choose the newly created policy, then click on "Attach Permission".
Choose_Policy

STEP 4: Add the newly created user in the EKS cluster through CloudFormation

    1.
    Go to CloudFormation services, and choose the Atlan Stack.
    2.
    Update the stack.
Stack_Update
    1.
    Use the current template, and click on "Next".
    2.
    Provide the user ARN in the AWS IAM User ARN to access the EKS cluster through the Kubectl section.
User_ARN
    1.
    Click on "Next", then "Update", then "Finish".
πŸ‘€ Note: If the update fails for the "LicensevalidateLambda" stack, then update the main stack and select the "Replace current template" option. For the template URL, use https://atlan.s3.amazonaws.com/deploy/cf/templates/main.yaml​

STEP 5: Connect to the running EKS cluster

    1.
    To set up the AWS CLI, run this command, then provide the Access ID and Secret Key of the IAM user with access to the EKS cluster.
1
$ aws configure
Copied!
    1.
    Run the following command to get the kubeconfig:
1
$ aws eks update-kubeconfig --region <EKS_REGION> --name <EKS_CLUSTER_NAME>
Copied!
    1.
    Verify the cluster:
1
$ kubectl cluster-info
Copied!
Last modified 3d ago