Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
oanhnn committed Jan 31, 2023
1 parent 766d50c commit 68719c0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/run-linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,17 @@ jobs:
path: ~/.tflint.d/plugins
key: tflint-${{ hashFiles('.tflint.hcl') }}

- name: Init TFLint
run: tflint --init
- name: Run init
run: |
tflint --init
terraform init -upgrade
- name: Show version
run: |
terraform --version
tflint --version
- name: Run TFLint
- name: Run linting
run: |
terraform fmt --recursive
tflint -f compact --module
Expand Down
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,16 @@ Terraform module which creates ECR repository resources on AWS.
```hcl
module "php" {
source = "rabiloo/ecr/aws"
version = "~> 0.1.1"
version = "~> 0.2.0"
name = "app-name/php"
image_tag_mutability = "MUTABLE"
input_encryption_type = "AES256"
protected_tags = ["v", "latest"]
max_image_count = 20
untagged_image_expiration_days = 1
name = "app-name/php"
tags = {
Owner = "user"
Service = "app-name"
Expand Down
4 changes: 2 additions & 2 deletions modules/ecr-lifecycle-policy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ module "ecr_lifecycle_policy" {
source = "rabiloo/ecr/aws//modules/ecr-lifecycle-policy"
version = "~> 0.2.0"
protected_tags = ["v", "latest"]
max_image_count = 20
protected_tags = ["v", "latest"]
max_image_count = 20
untagged_image_expiration_days = 1
}
```
Expand Down

0 comments on commit 68719c0

Please sign in to comment.