-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs(ecr): new README for ECR example * docs(eks): updated description of update-kubeconfig.sh * docs(ecr): updated instructions
- Loading branch information
Showing
4 changed files
with
39 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Amazon ECR | ||
|
||
## Setup | ||
[This](https://github.com/Young-ook/terraform-aws-eks/blob/main/examples/ecr/main.tf) is the example of terraform configuration file to create an ECR (Elastic Container Registry) on your AWS account. Check out and apply it using terraform command. | ||
|
||
Run terraform: | ||
``` | ||
terraform init | ||
terraform apply | ||
``` | ||
Also you can use the `-var-file` option for customized paramters when you run the terraform plan/apply command. | ||
``` | ||
terraform plan -var-file default.tfvars | ||
terraform apply -var-file default.tfvars | ||
``` | ||
|
||
## Register Artifacts | ||
To register and release the artifacts from your build system, please check out [this](https://github.com/Young-ook/terraform-aws-eks/blob/main/modules/ecr) for more details. | ||
|
||
## Clean up | ||
Run terraform: | ||
``` | ||
$ terraform destroy | ||
``` | ||
Don't forget you have to use the `-var-file` option when you run terraform destroy command to delete the aws resources created with extra variable files. | ||
``` | ||
$ terraform destroy -var-file default.tfvars | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters