Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ismailbarkani/terraform-with-aws-examples-of-use

Set of templates that you can implement using Terraform
https://github.com/ismailbarkani/terraform-with-aws-examples-of-use

aws aws-cli aws-ec2 terraform terraform-aws terraform-configurations terraform-managed terraform-provider terraform-scripts

Last synced: 5 days ago
JSON representation

Set of templates that you can implement using Terraform

Awesome Lists containing this project

README

        

# Terraform with AWS
[![Terraform](https://img.shields.io/static/v1?label=Terraform&message=v0.12.25&color=blueviolet&logo=Terraform)](https://www.terraform.io/downloads.html)
[![AWS](https://img.shields.io/static/v1?label=AWS-CLI&message=v1.18.60&color=orange&logo=amazon)](https://aws.amazon.com/fr/cli/)

- **Save your AWS access key in a .tfvars file (never share a .tfvars file)**

```
AWS_ACCESS_KEY="XXXXXYY"
AWS_SECRET_KEY="YYYYXXXXXXXX"
```

- **Initialize your working directory**

```
$ terraform init
```

- **Apply**

```
$ terraform apply
```

- **Authenticating Amazon ECR Repositories for Docker CLI**

Use the commande above to retrieves the password
```
$ aws ecr get-login-password
```
copy the password, in run the following commande

```bash
$ docker login –p password –e none https://aws_account_id.dkr.ecr.your_region.amazonaws.com
```