sc_crawler.vendors._aws
Inventory of Amazon Web Services via boto3: servers, storages, traffic, IPv4 addresses and managed PostgreSQLPostgreSQLAn open-source object-relational database system, developed by a global community and descended from the POSTGRES project at UC Berkeley in 1986. It uses and extends SQL, with transactions, many index types, extensions, and JSON data.PostgreSQL docsGlossary (RDS), with their prices.
Functions:
- inventory_compliance_frameworks – Manual list of compliance frameworks known for AWS.
- inventory_regions – List all available AWS regionsregionA geographic area where a cloud vendor runs its data centers, such as Frankfurt or Northern Virginia, made up of one or more availability zones. A server type is offered in some regions only, and its price can differ by region; a region's ID, such as
eu-central-1, is unique only within its vendor.Glossary viaboto3calls. - inventory_zones – List all available AWS availability zonesavailability zoneOne or more isolated data centers within a cloud region, with their own power, cooling and network. A server runs in one zone; spreading servers over several zones of a region keeps a service up when one zone fails. Prices and the server types on offer can differ by zone.AWS docsGlossary via
boto3calls. - inventory_servers – List all available AWS instance types in all regions via
boto3calls. - inventory_server_prices – List all on-demandon-demandA pricing model of cloud servers that charges for the time a server runs, without a commitment, typically per second or hour. The server runs until you stop it, unlike a spot instance, but it costs more than spot or reserved capacity.Glossary instance prices in all regions via
boto3calls. - inventory_server_prices_spot – List all spot instancespot instanceA cloud server that runs on the vendor's spare capacity, at a large discount from its on-demand price, but which the vendor can stop or take back at short notice when it needs the capacity. Spot prices change with the demand, e.g. several times a day.AWS docsGlossary prices in all availability zones via
boto3calls. - inventory_storages – List all storage types via
boto3calls. - inventory_storage_prices – List all storage prices in all regions via
boto3calls. - inventory_traffic_prices – List all inbound and outbound trafficegressThe network traffic leaving a cloud vendor's network, e.g. to the internet. Vendors usually charge for it per GB beyond an included amount, while incoming (ingress) traffic is usually free, so it can make up a large part of the costs of a service that sends a lot of data.Glossary prices in all regions via
boto3calls. - inventory_ipv4_prices – List IPV4 prices in all regions via
boto3calls. - inventory_databases – List all available AWS RDS PostgreSQL instance types via
boto3calls. - inventory_database_prices – List all on-demand AWS RDS PostgreSQL prices in all regions via
boto3calls. - inventory_database_storages – List all AWS RDS PostgreSQL storage types via
boto3calls. - inventory_database_storage_prices – List all AWS RDS PostgreSQL storage prices in all regions via
boto3calls.
func inventory_compliance_frameworks _aws.py:2043–2050
inventory_compliance_frameworks(vendor)
Manual list of compliance frameworks known for AWS.
Resources: https://aws.amazon.com/compliance/programs/
func inventory_regions _aws.py:2053–2476
inventory_regions(vendor)
List all available AWS regions via boto3 calls.
Some data sources are not available from APIs, and were collected manually:
- launch date: https://aws.amazon.com/about-aws/global-infrastructure/regions_az/,
- energy source: https://sustainability.aboutamazon.com/products-services/the-cloud?energyType=true#renewable-energy and https://www.aboutamazon.com/news/sustainability/amazon-renewable-energy-goal,
- lon/lat coordinates: https://gist.github.com/martinheidegger/88950cb51ee5bdeafd51bc55287b1092 and approximation based on the city when no more accurate data was available.
func inventory_zones _aws.py:2479–2517
inventory_zones(vendor)
List all available AWS availability zones via boto3 calls.
func inventory_servers _aws.py:2520–2539
inventory_servers(vendor)
List all available AWS instance types in all regions via boto3 calls.
Lifecycle is reconciled after spot price collection via
_reconcile_server_status (offerings + recent spot in ACTIVE regions ->
ACTIVE, on-demand price without Reserved terms -> RETIRED, else INACTIVE).
func inventory_server_prices _aws.py:2542–2607
inventory_server_prices(vendor)
List all on-demand instance prices in all regions via boto3 calls.
func inventory_server_prices_spot _aws.py:2610–2693
inventory_server_prices_spot(vendor)
List all spot instance prices in all availability zones via boto3 calls.
func inventory_storages _aws.py:2754–2811
inventory_storages(vendor)
List all storage types via boto3 calls.
func inventory_storage_prices _aws.py:2814–2857
inventory_storage_prices(vendor)
List all storage prices in all regions via boto3 calls.
func inventory_traffic_prices _aws.py:2860–2896
inventory_traffic_prices(vendor)
List all inbound and outbound traffic prices in all regions via boto3 calls.
func inventory_ipv4_prices _aws.py:2899–2928
inventory_ipv4_prices(vendor)
List IPV4 prices in all regions via boto3 calls.
func inventory_databases _aws.py:3393–3597
inventory_databases(vendor)
List all available AWS RDS PostgreSQL instance types via boto3 calls.
Lifecycle (DescribeOrderableDBInstanceOptions): no orderable options ->
RETIRED, with the retirement date from _AWS_RDS_RETIREMENT_RULES;
otherwise ACTIVE.
func inventory_database_prices _aws.py:3600–3657
inventory_database_prices(vendor)
List all on-demand AWS RDS PostgreSQL prices in all regions via boto3 calls.
func inventory_database_storages _aws.py:3669–3704
inventory_database_storages(vendor)
List all AWS RDS PostgreSQL storage types via boto3 calls.
func inventory_database_storage_prices _aws.py:3707–3760
inventory_database_storage_prices(vendor)
List all AWS RDS PostgreSQL storage prices in all regions via boto3 calls.