Name | Version |
---|---|
terraform | >= 1.3.0 |
aws | >= 4.41.0 |
kubectl | >= 1.14.0 |
kubernetes | >= 2.23.0 |
Name | Version |
---|---|
aws | >= 4.41.0 |
kubectl | >= 1.14.0 |
kubernetes | >= 2.23.0 |
No modules.
Name | Type |
---|---|
aws_ecr_lifecycle_policy.main | resource |
aws_ecr_repository.main | resource |
aws_ecr_repository_policy.main | resource |
kubectl_manifest.main | resource |
kubernetes_deployment.main | resource |
kubernetes_service.main | resource |
aws_iam_policy_document.main | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
deployment | Kubernetes deployment configuration | object({ |
n/a | yes |
ecr_allowed_aws_accounts | AWS accounts allowed to pull from the created ECR. | list(string) |
[] |
no |
ecr_lifecycle_policy | Sets the lifecycle policy of the ECR. If set ecr_number_of_images_to_keep won't work. |
string |
"{\n \"rules\": [\n {\n \"rulePriority\": 1,\n \"description\": \"Keep last 50 images (master,main)\",\n \"selection\": {\n \"tagStatus\": \"tagged\",\n \"tagPatternList\": [\n \"master-*\",\n \"main-*\"\n ],\n \"countType\": \"imageCountMoreThan\",\n \"countNumber\": 50\n },\n \"action\": {\n \"type\": \"expire\"\n }\n },\n {\n \"rulePriority\": 2,\n \"description\": \"Keep last 30 images (develop)\",\n \"selection\": {\n \"tagStatus\": \"tagged\",\n \"tagPatternList\": [\n \"develop-*\"\n ],\n \"countType\": \"imageCountMoreThan\",\n \"countNumber\": 30\n },\n \"action\": {\n \"type\": \"expire\"\n }\n },\n {\n \"rulePriority\": 3,\n \"description\": \"Keep last 10 images of the branches images\",\n \"selection\": {\n \"tagStatus\": \"any\",\n \"countType\": \"imageCountMoreThan\",\n \"countNumber\": 10\n },\n \"action\": {\n \"type\": \"expire\"\n }\n }\n ]\n}\n\n" |
no |
image_repository | General repository from where to pull container images from. Specific repositories may still be defined on the respective containers. | string |
"" |
no |
strategy_rolling_update | Rolling update config params. Present only if type = RollingUpdate. | list(any) |
[] |
no |
strategy_type | Type of deployment. Can be 'Recreate' or 'RollingUpdate'. | string |
"RollingUpdate" |
no |
Name | Description |
---|---|
ecr_repository_url | The URL of the ECR repository |