An open API service indexing awesome lists of open source software.

https://github.com/happypathway/terraform-aws-ecr-clone

Terraform Module
https://github.com/happypathway/terraform-aws-ecr-clone

module terraform terraform-managed

Last synced: 3 months ago
JSON representation

Terraform Module

Awesome Lists containing this project

README

        

[![Terraform Validation](https://github.com/HappyPathway/terraform-aws-ecr-clone/actions/workflows/terraform.yaml/badge.svg)](https://github.com/HappyPathway/terraform-aws-ecr-clone/actions/workflows/terraform.yaml)

## Requirements

No requirements.

## Providers

| Name | Version |
|------|---------|
| [aws](#provider\_aws) | 5.64.0 |
| [null](#provider\_null) | 3.2.2 |

## Modules

No modules.

## Resources

| Name | Type |
|------|------|
| [aws_ecr_repository.apps_repos](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecr_repository) | resource |
| [aws_ecr_repository.image_repos](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecr_repository) | resource |
| [null_resource.copy_images](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |
| [aws_caller_identity.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) | data source |
| [aws_ecr_authorization_token.token](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/ecr_authorization_token) | data source |
| [aws_region.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/region) | data source |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [account\_alias](#input\_account\_alias) | AWS Account Alias | `string` | `""` | no |
| [account\_id](#input\_account\_id) | AWS Account ID (default will pull from current user) | `string` | `""` | no |
| [application\_list](#input\_application\_list) | List of application repositories to create for /{application\_name}/{image\_name} for those not in image\_config | `list(string)` | `[]` | no |
| [application\_name](#input\_application\_name) | Appliication name, usually {org}-{project}, which is likely a prefix to the EKS cluster name | `string` | n/a | yes |
| [destination\_insecure](#input\_destination\_insecure) | Destination registry is insecure | `string` | `false` | no |
| [destination\_password](#input\_destination\_password) | OCI destination repository password | `string` | `null` | no |
| [destination\_username](#input\_destination\_username) | OCI destination repository username | `string` | `null` | no |
| [encryption\_type](#input\_encryption\_type) | The encryption configuration for the repository. Must be one of: AES256 or KMS | `string` | `"KMS"` | no |
| [image\_config](#input\_image\_config) | List of image configuration objects to copy from SOURCE to DESTINATION |

list(object({
name = string,
tag = string,
dest_path = string,
source_registry = string,
source_image = string,
source_tag = optional(string),
enabled = bool,
}))
| `[]` | no |
| [image\_scan\_on\_push](#input\_image\_scan\_on\_push) | The image scanning configuration for the repository. Must be one of: true or false | `bool` | `true` | no |
| [image\_tag\_mutability](#input\_image\_tag\_mutability) | The image tag mutability setting for the repository. Must be one of: MUTABLE or IMMUTABLE | `string` | `"MUTABLE"` | no |
| [override\_prefixes](#input\_override\_prefixes) | Override built-in prefixes by component. This should be used primarily for common infrastructure things | `map(string)` | `{}` | no |
| [region](#input\_region) | Region in which to create the ECR repositories (default of current region) | `string` | `null` | no |
| [source\_insecure](#input\_source\_insecure) | Source registry is insecure | `string` | `false` | no |
| [source\_password](#input\_source\_password) | OCI source repository password | `string` | `""` | no |
| [source\_username](#input\_source\_username) | OCI source repository username | `string` | `""` | no |
| [tags](#input\_tags) | AWS Tags to apply to appropriate resources | `map(string)` | `{}` | no |

## Outputs

| Name | Description |
|------|-------------|
| [images](#output\_images) | Final full merge of images with extra details |