Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 13 days ago
JSON representation
Set of templates that you can implement using Terraform
- Host: GitHub
- URL: https://github.com/ismailbarkani/terraform-with-aws-examples-of-use
- Owner: IsmailBarkani
- Created: 2020-05-15T21:39:38.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-05T19:25:19.000Z (over 4 years ago)
- Last Synced: 2024-10-17T11:41:51.483Z (29 days ago)
- Topics: aws, aws-cli, aws-ec2, terraform, terraform-aws, terraform-configurations, terraform-managed, terraform-provider, terraform-scripts
- Language: HCL
- Homepage:
- Size: 85 KB
- Stars: 4
- Watchers: 0
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```