• Stars
    star
    183
  • Rank 210,154 (Top 5 %)
  • Language HCL
  • License
    MIT License
  • Created about 9 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Terraform files for deploying and running Amazon ECS (+ Private Docker Registry)

Terraform AWS ECS (+ Docker Registry)

Note - This is still a work in progress, so expect issues and bugs .. Feel free to jump in and start fixing things.

This repo contains a Terraform plan to run up an Amazon ECS cluster with a private Docker registry.

Inspired from http://blog.codeship.com/running-a-private-docker-registry-on-ec2/

Includes -

  • Private S3 bucket for container registry data
  • Docker container running allingeek/registry:2-s3 (by default)
  • ECS cluster, launch configuration and autoscaling group

### Prerequisites

### Usage

  1. Clone the repo
  2. Set some required variables -
export TF_VAR_key_name=name of ssh key
export TF_VAR_key_file=the ssh key file to use
export TF_VAR_aws_access_key=The AWS access key ID
export TF_VAR_aws_secret_key=The AWS secret key

Run the plan -

terraform apply

Alternatively the variables can be passed on the command line e.g. -

terraform apply -var 'key_name=name' -var 'key_file=path_to_file' -var 'aws_access_key=access_key' -var 'aws_secret_key=secret_key'

For a full list of overridable variables see variables.tf

### Known issues

If you are using terraform v0.6.3 and encounter this error -

* aws_ecs_service.s3-registry-elb: InvalidParameterException: Unable to assume role and validate the listeners configured on your load balancer.  Please verify the role being passed has the proper permissions.
  status code: 400, request id: []

This is probably down to this bug / issue with waits/timeouts - hashicorp/terraform#2869.

You can either compile terraform from the latest master branch, or re-run the terraform apply again which should succeed the second time.

More Repositories

1

Apollo

🚀 An open-source platform for cloud native applications based on Apache Mesos and Docker.
Python
725
star
2

kubeform

Form your ⛵ Kubernetes ⚓ cluster anywhere using CoreOS, Terraform and Ansible
Python
326
star
3

mesos-ui

An alternative web UI for Apache Mesos, built with ❤️ and React.JS
JavaScript
220
star
4

dcx-react-library

React Library UI/UX agnostic
TypeScript
113
star
5

terraform-control

A PoC for managing your infrastructure with Terraform in a collaborative way 👯 https://capgemini.github.io/devops/Controlling-the-state-of-your-infrastructure/
Go
70
star
6

powerapps-specflow-bindings

A SpecFlow bindings library for model-driven Power Apps.
C#
41
star
7

TerraKube-AWS

HCL
36
star
8

cloud-native-training

Training, resources and materials for becoming a cloud native engineer ☁️ 🐳
23
star
9

xrm-datamigration

Export and import data for Microsoft Dataverse. Supports JSON and CSV.
C#
23
star
10

powerapps-packagedeployer-template

Enhanced deployment capabilities when deploying with the Power Apps Package Deployer.
C#
21
star
11

powerapps-project-template

A Yeoman generator for scaffolding Power Apps projects based on our tooling and best practices.
C#
18
star
12

angular-cart-demo

Example shopping cart application using MEAN stack (Mongo/ExpressJS/Angular/NodeJS)
JavaScript
18
star
13

spring-boot-capgemini

Java
16
star
14

dcos-cli-docker

A docker image for DCOS CLI 🙌
Shell
14
star
15

tf_tls

A Terraform module with a collection of common TLS certificate settings.
HCL
12
star
16

grade-ladder

Capgemini UK Software Engineering Grade Ladder
HTML
12
star
17

msbuild-xrm-sourcecontrol

MSBuild Visual Studio Extensions to provide easy source control for Dynamics 365
PowerShell
11
star
18

dotnet-code-analysis

This is an open-source project which aims to identify common bad programming practices that should be avoided in a C# code base through the use of the .NET compiler-as-a-service technology.
C#
11
star
19

xrm-datamigration-xrmtoolbox

Export and import data for Microsoft Dataverse as an XrmToolBox plugin. Supports JSON and CSV.
C#
8
star
20

azure-devops-extension-xrm-release

Provides Tasks that enable Continuous Deployment pipelines for Dynamics 365.
PowerShell
8
star
21

react-scaffold

React + React Router + Flux + Gulp + Webpack boilerplate
JavaScript
8
star
22

drupal-doctrine-cache

Doctrine cache that uses the Drupal caching API
PHP
8
star
23

portable-k8s-demo

Shell
8
star
24

dtx-polyfiller

A Chrome Extension used to rewrite IE events for chrome to help support legacy tools
JavaScript
8
star
25

spalp

Single Page App Landing Page module for Drupal - this mirror is no longer maintained
PHP
7
star
26

kuwit

This is http://KuWit.io 🤖 🤖 🤖 the AI bot who knows everything about Kubernetes. https://capgemini.github.io/bots/kuwit/
JavaScript
7
star
27

angular_unit_example

Learn how to get started with unit testing an Angular app
JavaScript
7
star
28

weave-ansible

An ansible role for setting up https://github.com/weaveworks/weave
7
star
29

azure-devops-extension-xrm-build

Provides Tasks that enable Continuous Integration pipelines for Dynamics 365.
6
star
30

msft-release-extensions

A suite of Azure DevOps extensions and scaffolders allowing you to simplify the application lifecycle management process.
PowerShell
5
star
31

xrm-solutionaudit

This is an open-source project which aims to facilitate the audit of Dynamics 365 components within managed solutions.
C#
5
star
32

react-material-alert

A set of react components for displaying alerts implementing google material design
JavaScript
4
star
33

dockerfiles

collection of reusable dockerfiles
PowerShell
4
star
34

grade-ladder-fullstack

3
star
35

notepad2

Simple Jekyll theme, evolved from https://github.com/hmfaysal/Notepad
HTML
3
star
36

jmeter-client

Shell
2
star
37

apollo-drupal-commerce-kickstart

Dockerfile for building Drupal Commerce Kickstart distribution
PHP
2
star
38

innersource-template

A Boilerplate project with the basics for an innersource project
2
star
39

open-linux-hardening-check

Tooling to assist security checks on Linux systems
Shell
2
star
40

step-ansible-lint

ansible-lint step for http://wercker.com/
Shell
2
star
41

microsoft-team-labs

JavaScript
2
star
42

twig_svg

Drupal module to add a Twig extension to easily include inline SVG in twig templates
PHP
2
star
43

capgemini.github.io

Public repo for Capgemini software engineering blog -see https://github.com/Capgemini/blog-private to get involved
HTML
2
star
44

voting-demo

This a super simplified version or https://github.com/docker/example-voting-app for demo purposes.
JavaScript
1
star
45

Apollo-ELK

ELK stack running in standalone mode with docker
Python
1
star
46

gregor

A utility library that simplifies consuming from and sending messages to a Kafka broker.
Java
1
star
47

apollo-spring-boot

Java
1
star
48

MuleSoft-Conference-Demo

1
star
49

CoreXPlatform

PowerShell
1
star
50

commerce_order_cleanup

PHP
1
star
51

step-packer-push

A Wercker step for packer push into Atlas.
Shell
1
star
52

step-apollo-deploy

A Wercker step for deploying Apollo.
Shell
1
star
53

validators

Drupal Symfony Validator allows you to use the Symfony Validator component inside your Drupal projects
PHP
1
star
54

ngTraining

A demo of a traditional server side web app
JavaScript
1
star