This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ====== 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}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ====== 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}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ====== 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}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -v http://<instance ip>:2375 | |
* Rebuilt URL to: http://<instance ip>:2375/ | |
* Hostname was NOT found in DNS cache | |
* Trying <instance ip>... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |