diff --git a/templates/ecr/1/docker-compose.yml b/templates/ecr/1/docker-compose.yml new file mode 100644 index 0000000..3033731 --- /dev/null +++ b/templates/ecr/1/docker-compose.yml @@ -0,0 +1,12 @@ +ecr-updater: + environment: + AWS_ACCESS_KEY_ID: ${aws_access_key_id} + AWS_SECRET_ACCESS_KEY: ${aws_secret_access_key} + AWS_REGION: ${aws_region} + labels: + io.rancher.container.pull_image: always + io.rancher.container.create_agent: 'true' + io.rancher.container.agent.role: environment + tty: true + image: objectpartners/rancher-ecr-credentials:1.0.1 + stdin_open: true diff --git a/templates/ecr/1/rancher-compose.yml b/templates/ecr/1/rancher-compose.yml new file mode 100644 index 0000000..ca2f443 --- /dev/null +++ b/templates/ecr/1/rancher-compose.yml @@ -0,0 +1,24 @@ +.catalog: + name: "ECR Credential Updater" + version: "v1.0.1" + description: "Updates credentials for ECR in Rancher" + uuid: ecr-2 + questions: + - variable: "aws_access_key_id" + label: "AWS Access Key ID" + description: "AWS API Access Key to use for obtaining ECR credentials" + required: true + type: "string" + - variable: "aws_secret_access_key" + label: "AWS Secret Access Key" + description: "AWS API Secret Key to use for obtaining ECR credentials" + required: true + type: "string" + - variable: "aws_region" + label: "AWS Region" + description: "AWS Region that hosts the ECR" + default: us-east-1 + required: true + type: "string" +ecr-updater: + scale: 1 diff --git a/templates/ecr/config.yml b/templates/ecr/config.yml index 4dd875b..ead6cad 100644 --- a/templates/ecr/config.yml +++ b/templates/ecr/config.yml @@ -1,6 +1,6 @@ name: ECR Credential Updater description: | Automatically updates AWS EC2 Container Registry credentials in Rancher. -version: v1.0.0 +version: v1.0.1 category: Applications maintainer: John Engelman