github.com/filecoin-project/bacalhau@v0.3.23-0.20230228154132-45c989550ace/scripts/testing-setup/modules/instance/main.tf (about)

     1  resource "aws_instance" "bacalhau_node" {
     2    ami           = lookup(var.AMIS, var.AWS_REGION)
     3    instance_type = var.INSTANCE_TYPE
     4    
     5  
     6    # the VPC subnet
     7    subnet_id = var.SUBNET_ID
     8    # the security group
     9    vpc_security_group_ids = ["${var.SECURITY_GROUP_ALLOW_SSH_ID}"]
    10    # the public SSH key
    11    key_name = var.AWS_KEY_PAIR_DEPLOYER_KEY_NAME
    12  
    13    tags = {
    14      Name = "bacalhau_node_${var.NODE_NUMBER}"
    15    }
    16  }
    17