Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/crispab/ansible_role_aws_ecr_docker_push
Ansible role to create a AWS Elastic Container Registry (ECR) and push a provided Docker image to it.
https://github.com/crispab/ansible_role_aws_ecr_docker_push
ansible ansible-role aws aws-ecr docker
Last synced: 20 days ago
JSON representation
Ansible role to create a AWS Elastic Container Registry (ECR) and push a provided Docker image to it.
- Host: GitHub
- URL: https://github.com/crispab/ansible_role_aws_ecr_docker_push
- Owner: crispab
- License: mit
- Created: 2018-12-28T19:52:41.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-03T17:46:17.000Z (about 6 years ago)
- Last Synced: 2024-11-16T22:27:27.862Z (3 months ago)
- Topics: ansible, ansible-role, aws, aws-ecr, docker
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
crisp.aws_ecr_docker_push
============================*Crisp AWS Elastic Container Registry Docker Push*
This role creates a ECR and pushes a provided Docker image to the ECR.
Requirements
------------AWS credentials.
AWS CLI.
Permissions to create a Elastic Container Registry.
Permissions to publish to a Elastic Container Registry.Packages:
* boto3
* dockerRole Variables
--------------`ecr_name` - The name of the Elastic Container Reqistry to create/use.
Example value: *betrcode/goodtimes*`region` - The AWS region to use.
Example value: *eu-west-1*`source_image_name` - The source image name.
Example value: *betrcode/goodtimes*`source_image_tag` - The source image tag.
Example value: *latest*`destination_image_tag` - The destination image tag.
Will default to the `source_image_tag` if not set.
Example value: *latest*`debugging` - Set this to true (or any value) to turn on debug statements.
The output variable `full_destination_image` can be used by
later tasks, for instance to know which image to download from a userdata script
in a AWS AutoScalingGroup.Dependencies
------------Not dependent on any other role.
Example Playbook
-------------------
- hosts: localhost
connection: local
roles:
- role: betrcode.aws_ecr_docker_push
ecr_name: betrcode/goodtimes
region: eu-west-1
source_image_name: betrcode/goodtimes
source_image_tag: latestLicense
-------MIT
Author Information
------------------Max Wenzin, partner at Crisp
https://www.crisp.se/konsulter/max-wenzin