Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Provide machine-readable list of AMIs #206

Open
joschi opened this issue Jan 19, 2018 · 3 comments
Open

Provide machine-readable list of AMIs #206

joschi opened this issue Jan 19, 2018 · 3 comments

Comments

@joschi
Copy link
Contributor

joschi commented Jan 19, 2018

In order to simplify configuration management and infrastructure-as-code for users of the official AMI, there should be a machine-readable list of available AMIs per version and per region:

https://github.com/Graylog2/graylog2-images/blob/2.4/aws/README.md

I propose the following format:

{
   "serial" : 1,
   "last_update" : "2018-01-19T23:42:00.000Z",
   "amis" : {
      "<version>" : {
         "<region-1>" : {
            "id" : "<ami-id>"
         },
         "<region-2>" : {
            "id" : "<ami-id>"
         }
      },
      "2.3.2-2" : {
         "eu-central-1" : {
            "id" : "ami-4b54ed24"
         }
      },
      "2.4.0-1" : {
         "us-east-1" : {
            "id" : "ami-9f2663e5"
         }
      }
   }
}
@joschi joschi added the feature label Jan 19, 2018
@mariussturm
Copy link
Contributor

Do you have a tool in mind with which we can generate this file? Updating it by hand would be a pain I guess.

@joschi
Copy link
Contributor Author

joschi commented Jan 19, 2018

@mariussturm No idea. Currently we're manually maintaining the list in the README.md file manually anyway.

@malcyon
Copy link
Contributor

malcyon commented Feb 26, 2021

The updating of the aws/README.md has been automated in our CI system. It uses:

https://github.com/Graylog2/graylog2-images/blob/4.0/scripts/update-aws-ami.rb

It doesn't create a json file, though. It could certainly be added, but I'm unsure of the demand for this feature. There is not a lot of activity on this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants