templace/ecr: AWS credentials from IAM profile (#217)

This enable support to use credentials resolved from the IAM Instance
Profile if used. The credential are not required anymore
This commit is contained in:
Juan Ignacio Donoso
2016-07-26 12:48:48 -04:00
committed by Bill Maxwell
parent e8f86f188b
commit 1c326aeb7e
4 changed files with 71 additions and 14 deletions
+12
View File
@@ -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.1.0
stdin_open: true
+24
View File
@@ -0,0 +1,24 @@
.catalog:
name: "ECR Credential Updater"
version: "v1.1.0"
description: "Updates credentials for ECR in Rancher"
uuid: ecr-3
questions:
- variable: "aws_access_key_id"
label: "AWS Access Key ID"
description: "AWS API Access Key to use for obtaining ECR credentials. Not required if using IAM roles."
required: false
type: "string"
- variable: "aws_secret_access_key"
label: "AWS Secret Access Key"
description: "AWS API Secret Key to use for obtaining ECR credentials. Not required if using IAM roles."
required: false
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