diff --git a/.github/workflows/run-linting.yml b/.github/workflows/run-linting.yml index 6d25d9f..2c19e3a 100644 --- a/.github/workflows/run-linting.yml +++ b/.github/workflows/run-linting.yml @@ -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 diff --git a/README.md b/README.md index 731a514..9a7c61d 100644 --- a/README.md +++ b/README.md @@ -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" diff --git a/modules/ecr-lifecycle-policy/README.md b/modules/ecr-lifecycle-policy/README.md index 56aeb8f..5428722 100644 --- a/modules/ecr-lifecycle-policy/README.md +++ b/modules/ecr-lifecycle-policy/README.md @@ -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 } ```