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

This scraper enables you to retrieve Ubuntu image ID(s) available on various public clouds.

Notifications You must be signed in to change notification settings

dragonraid/ubuntu-images-scraper

Repository files navigation

Ubuntu images scraper

This scraper enables you to retrieve Ubuntu image ID(s) available on various public clouds. Ubuntu is a complete Linux operating system, freely available with both community and professional support. If you want to know more about ubuntu, check following docs.

Motivation

Imagine you have tons of deployments running in public cloud (AWS, Microsoft Azure, Google Cloud,..) on Ubuntu as your base operating system. These images needs to be periodically updated for reasons like:

  • new features
  • bug fixes
  • security patches

This scraper saves you time by extracting relevant image IDs for your cloud provider. You can even hook some post-processor to it (for example opening Pull-Request to your repository).

Usage

Run as actor on Apify Platform. One run of this actor consumes cca 0.003 CU, with memory size 1024 MB. Use of apify proxy is not required for this actor.

Input and Output

This scraper fetches data from https://cloud-images.ubuntu.com/locator/. As you can see dropdowns at the bottom of the page corresponds with inputs.

Name Description Example
Cloud Select images only for specific cloud provider Amazon AWS
Zone Zone ~ group of data-centers us-east-1
Name Ubuntu friendly name focal
Version Ubuntu version 20.04
Architecture Processor architecture amd64
Instance type Instance type depending on cloud provider hvm-ssd
Release Ubuntu release 20200729
ID Image ID ami-0758470213bdd23b1
Number of results Number of image descriptions to be fetched 1

All of the inputs above are optional. However it is not very useful not to provide any, since they enable you to filter through all the images available.

With following input example you will get latest release of Ubuntu 20.04 in AWS Northern Virginia region.

Input:

{
    "cloud": "Amazon AWS",
    "zone": "us-east-1",
    "name": "focal",
    "version": "20.04",
    "arch": "Any",
    "instanceType": "hvm-ssd",
    "numberOfResults": 1
}

Output:

[
    {
        "cloud": "Amazon AWS",
        "zone": "us-east-1",
        "name": "focal",
        "version": "20.04",
        "arch": "amd64",
        "instanceType": "hvm-ssd",
        "release": "20200729",
        "id": "ami-0758470213bdd23b1"
    }
]

Limitation / Cavetas

  • Maximum number of results is limited to 100 due to source page limitations

Versioning

Versioning upholds to Apify standards. See docs for more information.

About

This scraper enables you to retrieve Ubuntu image ID(s) available on various public clouds.

Resources

Stars

Watchers

Forks

Packages

No packages published