Skip to content

Instantly share code, notes, and snippets.

View swade1987's full-sized avatar

Steve Wade swade1987

View GitHub Profile
# ====== Bastion security groups ======= #
# Allow access to the bastion host from authorised networks.
# This security group will be applied to the bastion server.
resource "aws_security_group" "bastion" {
name = "bastion"
description = "Allow access from allowed_networks via SSH, and NAT internal traffic"
vpc_id = "${var.vpc_id}"
@swade1987
swade1987 / bastion module
Created June 14, 2016 15:53
public to private subnet issue
# ====== Bastion security groups ======= #
# Allow access to the bastion host from authorised networks.
# This security group will be applied to the bastion server.
resource "aws_security_group" "bastion" {
name = "bastion"
description = "Allow access from allowed_networks via SSH, and NAT internal traffic"
vpc_id = "${var.vpc_id}"
# ====== Bastion security groups ======= #
# Allow access to the bastion host from authorised networks.
# This security group will be applied to the bastion server.
resource "aws_security_group" "bastion" {
name = "bastion"
description = "Allow access from allowed_networks via SSH, and NAT internal traffic"
vpc_id = "${var.vpc_id}"
14:26:17.213 Pulling web (ukpds/search-for-member:0.1.78)...
14:26:53.094 Recreating searchformember_redis_1
14:26:54.129 Recreating searchformember_web_1
14:26:55.097 Recreating searchformember_lb_1
14:26:55.465
14:26:55.465 ERROR: for lb Unable to find a node that satisfies the following conditions
14:26:55.465 [port 80 (Bridge mode)]
14:26:55.465 Traceback (most recent call last):
curl -v http://<instance ip>:2375
* Rebuilt URL to: http://<instance ip>:2375/
* Hostname was NOT found in DNS cache
* Trying <instance ip>...
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: swarm/1.2.2
Role: primary
Strategy: spread
Filters: health, port, containerslots, dependency, affinity, constraint
Nodes: 1
sudo docker run -d --name consul \
-p $host_ip:8300:8300 \
-p $host_ip:8301:8301 \
-p $host_ip:8301:8301/udp \
-p $host_ip:8302:8302 \
-p $host_ip:8302:8302/udp \
-p $host_ip:8400:8400 \
-p $host_ip:8500:8500 \
-e 'CONSUL_LOCAL_CONFIG={"skip_leave_on_interrupt": true}' \
consul agent \
20:26:20.468 [go] Start to execute task: <exec command="make" >
<arg>build</arg>
</exec>.
20:26:20.475 make: *** No rule to make target `build'. Stop.
20:26:20.595 [go] Current job status: failed.
@swade1987
swade1987 / terraform module
Created May 23, 2016 14:41
consul cluster
resource "aws_security_group" "consul_server" {
name = "consul-server-security-group"
description = "Consul internal traffic + maintenance."
// These are for internal traffic
ingress {
from_port = 0
to_port = 65535
protocol = "tcp"
self = true
resource "aws_security_group" "consul_server" {
name = "consul-server-security-group"
description = "Consul internal traffic + maintenance."
// These are for internal traffic
ingress {
from_port = 0
to_port = 65535
protocol = "tcp"
self = true