{ "variables": { "aws_access_key": "", "aws_secret_key": "", "aws_region": "us-east-1", "aws_vpc_id": "", "aws_owners": "", "aws_subnet_id": "", "aws_security_group_id": "", "llm_studio_version": "" }, "builders": [ { "type": "amazon-ebs", "ami_name": "h2oai-llm-studio-{{user `llm_studio_version`}}", "instance_type": "g4dn.xlarge", "ssh_username": "ubuntu", "tags": { "name": "h2oai-llm-studio-{{user `llm_studio_version`}}", "Owner": "ops@h2o.ai", "Project": "DevOps", "Department": "Engineering", "Environment": "Dev", "Scheduling": "self-managed" }, "run_volume_tags": { "Name": "h2oai-llm-studio-{{user `llm_studio_version`}}", "Owner": "ops@h2o.ai", "Project": "DevOps", "Department": "Engineering", "Environment": "Dev", "Scheduling": "self-managed" }, "run_tags": { "Name": "h2oai-llm-studio-{{user `llm_studio_version`}}", "Owner": "ops@h2o.ai", "Project": "DevOps", "Department": "Engineering", "Environment": "Dev", "Scheduling": "self-managed" }, "access_key": "{{user `aws_access_key`}}", "secret_key": "{{user `aws_secret_key`}}", "region": "{{user `aws_region`}}", "subnet_id": "{{user `aws_subnet_id`}}", "vpc_id": "{{user `aws_vpc_id`}}", "security_group_id": "{{user `aws_security_group_id`}}", "launch_block_device_mappings": [ { "device_name": "/dev/sda1", "volume_size": 512, "volume_type": "gp3", "delete_on_termination": true } ], "source_ami_filter": { "filters": { "virtualization-type": "hvm", "name": "ubuntu/images/*ubuntu-focal-20.04-amd64-server-*", "root-device-type": "ebs" }, "owners": ["{{user `aws_owners`}}"], "most_recent": true } } ], "post-processors": [ { "type": "manifest", "output": "aws-image-info.json", "strip_path": true, "custom_data": { "base_image": "AWS Ubuntu 20.04", "llm_studio_version": "{{user `llm_studio_version`}}" } } ], "provisioners": [ { "type": "shell", "environment_vars": ["VERSION={{user `BRANCH_VERSION`}}"], "script": "./install_llm_studio_ubuntu2004.sh" } ] }