aws-meta

command module
v0.87.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2026 License: MIT Imports: 1 Imported by: 0

README

AWS Metadata

A Go package for exposing information about AWS Partitions, Regions and Services

Go Nightly Update Weekly Release Go Reference Go Report Card

Knowing what AWS services are available in which regions and partitions can be a bit of a pain; this package aims to keep an up to date reference for the available endpoints for all AWS services.

Features

  • Partitions: Get all AWS partition names (aws, aws-cn, aws-us-gov)
  • Regions: List all AWS regions across all partitions
  • Services: Access AWS service information and operations
  • Regional Services: Find which services are available in specific regions
  • Service Operations: Get all available operations for any AWS service

Installation

go get github.com/myerscode/aws-meta

Quick Start

Working with Partitions
import "github.com/myerscode/aws-meta/pkg/partitions"

// Get all partition names
partitions := partitions.AllPartitionNames()
fmt.Printf("Available partitions: %v\n", partitions)

// Get detailed partition information
partitionList, err := partitions.List()
if err != nil {
    log.Fatal(err)
}

// Get partitions by type
commercial, _ := partitions.CommercialPartitions()
sovereign, _ := partitions.SovereignPartitions()
isolated, _ := partitions.IsolatedPartitions()
Working with Services and Regions
import "github.com/myerscode/aws-meta/pkg/services"

// Get all regions
regions := services.AllRegionNames()

// Get detailed service metadata
services, err := services.ServiceMeta()
if err != nil {
    log.Fatal(err)
}

// Get services available in a specific region
regionServices, err := services.ServiceMetaForRegion("us-east-1")
if err != nil {
    log.Fatal(err)
}

// Get service operations
operations, err := services.ServiceOperations("S3")
if err != nil {
    log.Fatal(err)
}

Documentation

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
examples
list-all command
list-partitions command
list-regions command
partition-types command
service-meta command
internal
aws
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL