Showing posts with label IAM. Show all posts
Showing posts with label IAM. Show all posts

Tuesday, June 9, 2020

AWS - how to create admin user?

AWS

Objectives

Today I'm going to describe how to create a new admin user in the biggest cloud platform - AWS. AWS currently contains 212 available services which can be used to build complete environment. Admin user is necessary to manage all environments and services but that role is also limited and there is no default permission to some high level services like i.e. billing 

Admin user

At the beginning let's find IAM (Identity and Access Management) service and create new group.




















Press button "Create new group"



Type your group name

















Select appropriate policy















And finally create new group














So, the Administrators group has just been created. Let's create "admin" user and add it to previously created group.  

Press button "Add user"














Type user name and select access types


























Select group with permissions 


















Add tags















User is almost created 




























That's it. User is active and access key is generated 




























Amazon CLI - Command Line Interface

CLI is very useful tool which could be used by administrators or ansible playbooks to create infrastructure on AWS.


After download and install we can check it.


aws configure
AWS Access Key ID [None]: [access key]
AWS Secret Access Key [None]: [secret key]
Default region name [None]: eu-central-1
Default output format [None]: UTF-8


Base on configuration we can create KeyPair for testing


aws ec2 create-key-pair --key-name ArtsciKeyPair --query 'KeyMaterial' --output text > ArtsciKeyPair.pem


And using AWS console we can observe the results :)