Project Description

The goal of this project is to create a lightweight multi-cloud metadata CLI for Public Cloud environments. There are cloud specific packages that exist but they all have different API and many are developed in Python which is quite heavy for cloud images, especially containers. Leveraging a compiled language will help with keeping the CLI lightweight.

Goal for this Hackweek

  • A multi-cloud metadata package that works in all cloud frameworks (as support is added)
  • Developed in Go to keep the package and dependencies lightweight
  • Developed using Plugin Oriented Programming style to allow for easy inclusion of new Cloud Frameworks. Ideally with a simple config file (no new code).

Resources

Looking for hackers with the skills:

golang cloud publiccloud cli

This project is part of:

Hack Week 21

Activity

  • 17 days ago: ucaliskan liked this project.
  • about 1 month ago: amunoz joined this project.
  • about 1 month ago: amunoz liked this project.
  • about 1 month ago: jesus_bv joined this project.
  • 2 months ago: RicardoFelipeKlein liked this project.
  • 4 months ago: seanmarlow started this project.
  • 4 months ago: seanmarlow added keyword "golang" to this project.
  • 4 months ago: seanmarlow added keyword "cloud" to this project.
  • 4 months ago: seanmarlow added keyword "publiccloud" to this project.
  • 4 months ago: seanmarlow added keyword "cli" to this project.
  • 4 months ago: seanmarlow originated this project.

  • Comments

    • seanmarlow
      6 days ago by seanmarlow | Reply

      Unfortunately I will only have a couple days to work on this for Hackweek. Otherwise it would be nice to coordinate the project with anyone interested in joining. What I plan to get to is:

      • Getting started with Golang
      • "Psuedo" programming the basic concept in Python
      • Put together yaml config files for the 3 major CSPs (Azure, AWS, GCP)

      The idea is that there's hopefully no new code to add a csp. The config files would map attr names to a jmespath query such as:

      metadata-url: http://169.254.169.254/metadata/instance?api-version=2021-02-01
      private-ipv4-addrs: network.interface[].ipv4.ipAddress[].privateIpAddress
      private-ipv6-addrs: network.interface[].ipv6.ipAddress[].privateIpAddress
      private-ip-addrs: network.interface[].*.ipAddress[][].privateIpAddress
      region: compute.location
      

    • seanmarlow
      6 days ago by seanmarlow | Reply

      I think the challenge will be AWS as Azure and GCE both have ways to get the entire metadata dictionary with a single get request. Afaik AWS doesn't provide this functionality.

    • seanmarlow
      6 days ago by seanmarlow | Reply

      It gets a bit complex to query certain items such as the Azure image URN:

      compute.storageProfile.imageReference.[publisher,offer,sku,version] | join(':', @)
      

      And as above (after ipAddress) when you do a wildcard for some reason it adds an extra nested list to the next object:

      network.interface[].*.ipAddress[][].privateIpAddress
      

    Similar Projects

    grog by gbaccini

    [comment]: # (Please use the project descriptio...


    Add combustion support to the terraform-provider-libvirt by oholecek

    [comment]: # (Please use the project descriptio...


    A CLI for Harvester by mohamed.belgaied

    [comment]: # Harvester does not officially come...


    Create a CLI tool for interacting with Rancher Support Matrix by dpock

    Rancher Support Matrix CLI Helper

    A tool t...


    Updatecli Kubernetes Operator by olblak

    [comment]: # (Please use the project descriptio...


    Loggee - A tool to interact with your board game collection and plays (made in Elixir) by gfilippetti

    [comment]: # (Please use the project descriptio...


    Build Modern Unix Collection by hennevogel

    Get [modern-unix tools](https://github.com/ibra...


    Create a CLI tool for interacting with Rancher Support Matrix by dpock

    Rancher Support Matrix CLI Helper

    A tool t...


    A CLI for Harvester by mohamed.belgaied

    [comment]: # Harvester does not officially come...