Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Aug 22, 2022
1 parent 840ce21 commit 25304b1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 39 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# About aws-ecr-copy-images
This module will create ECR repositories with the prefix of `_application_name_` for the list of
repositories in `_application_list_`. This allows for a project to upload their images into
This module will create ECR repositories with the prefix of _application\_name_ for the list of
repositories in \_application\_list\_. This allows for a project to upload their images into
/{application\_name}/{sub\_app}/\_image\_:\_tag\_.

Also, if provided a list of source image configurations, it will download them from their location
and upload them to the prefix of `_application_name_` followed by the _name_ in the `image_config`
and upload them to the prefix of _application\_name\_ followed by the \_name_ in the `image_config`
object.

# Usage
Expand Down
34 changes: 1 addition & 33 deletions examples/simple/copy-images.tf
Original file line number Diff line number Diff line change
@@ -1,41 +1,9 @@
locals {
image_config = [
{
enabled = true
dest_path = null
name = "openjdk-8"
source_image = "ubi8/openjdk-8"
source_registry = "registry.access.redhat.com"
source_tag = null
tag = "latest"
},
{
enabled = true
name = "nginx-118"
dest_path = null
source_image = "ubi8/nginx-118"
source_registry = "registry.access.redhat.com"
source_tag = null
tag = "latest"
},
{
enabled = true
name = "nodejs-14"
dest_path = null
source_image = "ubi8/nodejs-14"
source_registry = "registry.access.redhat.com"
source_tag = null
tag = "latest"
},
]
}

module "images" {
source = "git@github.e.it.census.gov:terraform-modules/aws-ecr-copy-images.git"

application_list = ["app1", "app2"]
application_name = "org-project"
image_config = local.image_config
image_config = var.image_config
tags = {}

### optional
Expand Down
6 changes: 3 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*
* # About aws-ecr-copy-images
* This module will create ECR repositories with the prefix of `_application_name_` for the list of
* repositories in `_application_list_`. This allows for a project to upload their images into
* This module will create ECR repositories with the prefix of _application_name_ for the list of
* repositories in _application_list_. This allows for a project to upload their images into
* /{application_name}/{sub_app}/_image_:_tag_.
*
* Also, if provided a list of source image configurations, it will download them from their location
* and upload them to the prefix of `_application_name_` followed by the _name_ in the `image_config`
* and upload them to the prefix of _application_name_ followed by the _name_ in the `image_config`
* object.
*
* # Usage
Expand Down

0 comments on commit 25304b1

Please sign in to comment.