Skip to content

Commit

Permalink
feat: upgrade AWS instances to Ubuntu 18 LTS (#128)
Browse files Browse the repository at this point in the history
Co-authored-by: Ivan Borovkov <v2nek@iPro-11.local>
  • Loading branch information
v2nek and Ivan Borovkov authored Mar 16, 2020
1 parent dc473dc commit 6932977
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions terraform/aws/instances.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ resource "aws_instance" "web" {
Hostname = "web-${count.index + 1}"
DashNetwork = terraform.workspace
}

lifecycle {
ignore_changes = [ami]
}

}

# dashd wallet nodes (for faucet and masternode collaterals)
Expand All @@ -45,6 +50,11 @@ resource "aws_instance" "dashd_wallet" {
Hostname = "dashd-wallet-${count.index + 1}"
DashNetwork = terraform.workspace
}

lifecycle {
ignore_changes = [ami]
}

}

# dashd full nodes
Expand All @@ -67,6 +77,11 @@ resource "aws_instance" "dashd_full_node" {
Hostname = "node-${count.index + 1}"
DashNetwork = terraform.workspace
}

lifecycle {
ignore_changes = [ami]
}

}

# cpu miners (not running a node)
Expand All @@ -89,6 +104,11 @@ resource "aws_instance" "miner" {
Hostname = "miner-${count.index + 1}"
DashNetwork = terraform.workspace
}

lifecycle {
ignore_changes = [ami]
}

}

# masternodes
Expand Down Expand Up @@ -116,6 +136,11 @@ resource "aws_instance" "masternode" {
Hostname = "masternode-${count.index + 1}"
DashNetwork = terraform.workspace
}

lifecycle {
ignore_changes = [ami]
}

}

resource "aws_instance" "vpn" {
Expand All @@ -136,5 +161,10 @@ resource "aws_instance" "vpn" {
Hostname = "vpn"
DashNetwork = terraform.workspace
}

lifecycle {
ignore_changes = [ami]
}

}

2 changes: 1 addition & 1 deletion terraform/aws/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ data "aws_ami" "ubuntu" {
name = "name"

values = [
"ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-*",
"ubuntu/images/hvm-ssd/ubuntu-*-18.04-amd64-server-*",
]
}

Expand Down

0 comments on commit 6932977

Please sign in to comment.