Unverified Commit 3ad663be authored by Omar Khawaja's avatar Omar Khawaja Committed by GitHub
Browse files

AWS sandbox environment upgrade (#4873)

* upgrade Nomad from 0.8.4 to 0.8.6

* update deprecated nomad and vault commands

* update AMI ID

* add ingress rule for default fabio port and fabio UI

* upgrade Consul and Vault versions

* update AMI ID in README.md and terraform.tfvars
parent f16d96bd
Showing with 18 additions and 10 deletions
+18 -10
......@@ -38,7 +38,7 @@ properly:
```bash
$ consul members
$ nomad server members
$ nomad node-status
$ nomad node status
```
## Unseal the Vault cluster (optional)
......@@ -47,7 +47,7 @@ To initialize and unseal Vault, run:
```bash
$ vault operator init -key-shares=1 -key-threshold=1
$ vault unseal
$ vault operator unseal
$ export VAULT_TOKEN=[INITIAL_ROOT_TOKEN]
```
......
......@@ -43,7 +43,7 @@ a custom AMI:
```bash
region = "us-east-1"
ami = "ami-ec237c93"
ami = "ami-0c207c24df48e155a"
instance_type = "t2.medium"
key_name = "KEY_NAME"
server_count = "3"
......@@ -57,7 +57,7 @@ variable like so:
```bash
region = "us-east-1"
ami = "ami-ec237c93"
ami = "ami-0c207c24df48e155a"
instance_type = "t2.medium"
key_name = "KEY_NAME"
server_count = "3"
......
......@@ -65,8 +65,8 @@ To connect, add your private key and SSH into any client or server with
`ssh ubuntu@PUBLIC_IP`. You can test the integrity of the cluster by running:
$ consul members
$ nomad server-members
$ nomad node-status
$ nomad server members
$ nomad node status
If you see an error message like the following when running any of the above
commands, it usually indicates that the configuration script has not finished
......
region = "us-east-1"
ami = "ami-ec237c93"
ami = "ami-0c207c24df48e155a"
instance_type = "t2.medium"
key_name = "KEY_NAME"
server_count = "3"
......
......@@ -31,6 +31,14 @@ resource "aws_security_group" "primary" {
cidr_blocks = ["0.0.0.0/0"]
}
# Fabio
ingress {
from_port = 9998
to_port = 9999
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
}
# Consul
ingress {
from_port = 8500
......
......@@ -9,17 +9,17 @@ cd /ops
CONFIGDIR=/ops/shared/config
CONSULVERSION=1.2.0
CONSULVERSION=1.3.1
CONSULDOWNLOAD=https://releases.hashicorp.com/consul/${CONSULVERSION}/consul_${CONSULVERSION}_linux_amd64.zip
CONSULCONFIGDIR=/etc/consul.d
CONSULDIR=/opt/consul
VAULTVERSION=0.10.3
VAULTVERSION=0.11.4
VAULTDOWNLOAD=https://releases.hashicorp.com/vault/${VAULTVERSION}/vault_${VAULTVERSION}_linux_amd64.zip
VAULTCONFIGDIR=/etc/vault.d
VAULTDIR=/opt/vault
NOMADVERSION=0.8.4
NOMADVERSION=0.8.6
NOMADDOWNLOAD=https://releases.hashicorp.com/nomad/${NOMADVERSION}/nomad_${NOMADVERSION}_linux_amd64.zip
NOMADCONFIGDIR=/etc/nomad.d
NOMADDIR=/opt/nomad
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment