Skip to content

Instantly share code, notes, and snippets.

@Craigson
Created February 18, 2021 23:11
Show Gist options
  • Save Craigson/c1aa3f6efdb27cc814a3c6d39e716d98 to your computer and use it in GitHub Desktop.
Save Craigson/c1aa3f6efdb27cc814a3c6d39e716d98 to your computer and use it in GitHub Desktop.
AWS EC2 instance for polkadot validator
resource "aws_instance" "main-syntropy-polkadot" {
ami = var.image # Ubuntu 20.04 LTS
instance_type = var.machine_type # m4.large
key_name = "syntropy-polkadot"
subnet_id = aws_subnet.main-syntropy-polkadot.id
vpc_security_group_ids = [aws_security_group.main-syntropy-polkadot.id]
root_block_device {
volume_size = 400
}
lifecycle {
create_before_destroy = true
}
tags = {
Name = "syntropy-polkadot"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment