terraform { required_providers { aws = { source = "hashicorp/aws" version = "5.37.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 vpc_security_group_ids = var.security_groups tags = merge(var.additional_tags, { "Name" = "${var.base_name}-jump-host", }) user_data = <