Created
February 18, 2021 23:11
-
-
Save Craigson/c1aa3f6efdb27cc814a3c6d39e716d98 to your computer and use it in GitHub Desktop.
AWS EC2 instance for polkadot validator
This file contains 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_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