terraform { required_providers { aws = { source = "hashicorp/aws" version = "5.17.0" } } } data "aws_ami" "ubuntu" { most_recent = true owners = ["099720109477"] # Canonical filter { name = "name" values = ["ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-*"] } } resource "aws_instance" "jump_host" { ami = data.aws_ami.ubuntu.id instance_type = "c5a.large" associate_public_ip_address = true iam_instance_profile = var.iam_instance_profile subnet_id = var.subnet_id security_groups = [var.security_group_id] tags = { "Name" = "${var.base_name}-jump-host" } user_data = <