Juju stores all the EC2 Instance Types in the following generate.go location.
The instance types capture all the information from Amazon AWS EC2 in a consumable format for juju, so that when deploying to an instance type (think juju deploy mysql --constraints 'instance-type=m2.xlarge'
), we can validate and gain information about the various instance types.
Updating
To update the generate.go file you first need to ensure that you’ve setup up juju correctly, so when you run the following it generates the file correctly.
Firstly you should download the following file index.json, which is provided by amazon directly.
Place the file in the following juju folder
provider/ec2/internal/ec2instancetypes
Then run the following command inside that folder
go generate .
The generate.go file should now be correctly updated and a PR of the changes can then be submitted.