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: 23 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 (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-05T19:25:19.000Z (almost 5 years ago)
- Last Synced: 2025-04-01T20:51:30.788Z (23 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
[](https://www.terraform.io/downloads.html)
[](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
```