# DevOps Training (AWS Create IAM user to Access AWS via Terraform)
###### tags: `Devops` `AWS` `Terraform`
### Terraform
```javascript=
What is Terraform?
Allows you to automate and manage you infrastructure, your platform and services running on the platform.
Terraform is IaaS. Infrastructure as a service.
Terraform is a tool for provisioning the infrastruture.
Terraform vs Ansible:
Both IaaC Tools.
Terraform is mainly infrastrute tools and Ansible is a configuration Tools.
Ansible is more mature and Terraform is more new and advnace in orchestration.
So Terraform is better for infrastructure and ansible is better for configuraing the infrastucture.
```
### Open the AWS Console and Search the IAM and Select the IAM.

### Click on the USERS:

### Click on the Add User:

### Add the username, select the programmatic access and Click on Next

### Create the Group to Provide Permission to that user.

### Add the Group Name, Select the admin access to provide full access and click on create group

### Now you can see the Group name and access permissions on the window, click next:tags:

### It optional step if you want to do, I just skipp and click next: Review

### Just take a look all the things ok then next: create user

### So the Terraform user is created, Donwload the CSV file which is really important:

### When you Download CSV file. Open the Power Shell and see the File in Downloads folder and see the content in the file. This is Very important.

### Now configure the aws using the profile we created "Terraform"

### Install the awscli for using Window PowerShell.
Download the file:
https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html

Open the PoweShell and Run the file:
```javascript=
# PS:\> msiexec.exe /i https://awscli.amazonaws.com/AWSCLIV2.msi
```


```javascript=
# PS:\> aws --version
```
### configure the aws using PowerShell

### Configuration Create 2 new files 1: config 2: Credentials
