Skip to content

About

Hashicorp Packer files for creating a METplus AMI for the METplus 2022 Hackathon

Resources

Stars

0 stars

Watchers

2 watching

Forks

Latest commit

 

History

57 Commits

Folders and files

Repository files navigation

VxMETplusAMI

Hashicorp Packer files for creating a METplus AMI for the METplus 2022 Hackathon

Getting started

Creating the AMI

# Define the required variables in a file
$ cat << EOF > vars.auto.pkrvars.hcl
subnet_id = "subnet-id"

security_group_ids = [
  "sg-id1", # inbound SSH access from where Packer is being run
  "sg-id2", # outbound access to the internet
]

tags = {
  "tag1" = "value1"
  "tag2"  = "value2"
}
EOF
$ packer init .
$ packer validate .
$ packer fmt .
$ packer build metplus.pkr.hcl

The build will take roughly an hour to download and configure everything.

Starting an instance from the AMI

You will need to do some further setup to install METplus and configure the conda environment for both users. A sample user-data.sh script is provided in the root of the repo for this purpose. It can be used to configure new instances at launch time.

Development

Docs

Packer EBS builder

Variable Files

Documentation

A variable file named like so vars.auto.pkrvars.hcl will be auto loaded by Packer.

Pass -var-file= to use a different variable file to e.g. - target different accounts.

METplus Installation Notes

This installation assumes:

About

Hashicorp Packer files for creating a METplus AMI for the METplus 2022 Hackathon

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages