Skip to content

Commit

Permalink
Merge pull request #18 from ministryofjustice/lifecycle-expiry-limit
Browse files Browse the repository at this point in the history
Lifecycle expiry limit
  • Loading branch information
vijay-veeranki authored May 8, 2019
2 parents c6f0b83 + 1fc823c commit aa8fdff
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Note: From version 3.0 of this module, The AWS region will default to eu-west-2
|------|-------------|:----:|:-----:|:-----:|
| repo_name | name of the repository to be created | string | - | yes |
| team_name | name of the team creating the credentials | string | - | yes |
| enable_policy | Sets a ECR lifecycle policy to delete every image after count 40 | string | true | yes
| enable_policy | Sets a ECR lifecycle policy to delete every image after count 100 | string | true | yes
| aws_region | region into which the resource will be created | string | eu-west-2 | no
| providers | provider creating resources | arrays of string | default provider | no

Expand Down
2 changes: 1 addition & 1 deletion examples/ecr.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
*/
module "example_team_ecr_credentials" {
source = "github.com/ministryofjustice/cloud-platform-terraform-ecr-credentials?ref=3.2"
source = "github.com/ministryofjustice/cloud-platform-terraform-ecr-credentials?ref=3.3"
repo_name = "example-module"
team_name = "example-team"

Expand Down
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ resource "aws_ecr_lifecycle_policy" "lifecycle_policy" {
"rules": [
{
"rulePriority": 2,
"description": "Expire images over count 40",
"description": "Expire images over count 100",
"selection": {
"tagStatus": "any",
"countType": "imageCountMoreThan",
"countNumber": 40
"countNumber": 100
},
"action": {
"type": "expire"
Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ variable "repo_name" {}
variable "team_name" {}

variable "enable_policy" {
description = "Sets a ECR lifecycle policy to delete every image after count 40. Default is true."
description = "Sets a ECR lifecycle policy to delete every image after count 100. Default is true."
default = true
}

Expand Down

0 comments on commit aa8fdff

Please sign in to comment.