mirror of
https://github.com/status-im/libp2p-test-plans.git
synced 2025-03-03 16:00:40 +00:00
30 lines
460 B
Terraform
30 lines
460 B
Terraform
|
terraform {
|
||
|
required_providers {
|
||
|
aws = {
|
||
|
source = "hashicorp/aws"
|
||
|
version = "4.67.0"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
resource "aws_key_pair" "perf" {
|
||
|
key_name_prefix = "perf-"
|
||
|
public_key = file("${path.module}/files/perf.pub")
|
||
|
}
|
||
|
|
||
|
resource "aws_instance" "perf" {
|
||
|
tags = {
|
||
|
Name = "perf-node"
|
||
|
}
|
||
|
|
||
|
launch_template {
|
||
|
name = "perf-node"
|
||
|
}
|
||
|
|
||
|
key_name = aws_key_pair.perf.key_name
|
||
|
}
|
||
|
|
||
|
output "public_ip" {
|
||
|
value = aws_instance.perf.public_ip
|
||
|
}
|