sc_crawler.vendors._aws
Functions:
- inventory_compliance_frameworks – Manual list of compliance frameworks known for AWS.
- inventory_regions – List all available AWS regions via
boto3calls. - inventory_zones – List all available AWS availability zones via
boto3calls. - inventory_servers – List all available AWS instance types in all regions via
boto3calls. - inventory_server_prices – List all on-demand instance prices in all regions via
boto3calls. - inventory_server_prices_spot – List all spot instance 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 traffic 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
inventory_compliance_frameworks(vendor)
Manual list of compliance frameworks known for AWS.
Resources: https://aws.amazon.com/compliance/programs/
func inventory_regions
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
inventory_zones(vendor)
List all available AWS availability zones via boto3 calls.
func inventory_servers
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 + spot in ACTIVE regions -> ACTIVE, else INACTIVE).
func inventory_server_prices
inventory_server_prices(vendor)
List all on-demand instance prices in all regions via boto3 calls.
func inventory_server_prices_spot
inventory_server_prices_spot(vendor)
List all spot instance prices in all availability zones via boto3 calls.
func inventory_storages
inventory_storages(vendor)
List all storage types via boto3 calls.
func inventory_storage_prices
inventory_storage_prices(vendor)
List all storage prices in all regions via boto3 calls.
func inventory_traffic_prices
inventory_traffic_prices(vendor)
List all inbound and outbound traffic prices in all regions via boto3 calls.
func inventory_ipv4_prices
inventory_ipv4_prices(vendor)
List IPV4 prices in all regions via boto3 calls.
func inventory_databases
inventory_databases(vendor)
List all available AWS RDS PostgreSQL instance types via boto3 calls.
Lifecycle (DescribeOrderableDBInstanceOptions): no orderable options ->
RETIRED; otherwise ACTIVE.
func inventory_database_prices
inventory_database_prices(vendor)
List all on-demand AWS RDS PostgreSQL prices in all regions via boto3 calls.
func inventory_database_storages
inventory_database_storages(vendor)
List all AWS RDS PostgreSQL storage types via boto3 calls.
func inventory_database_storage_prices
inventory_database_storage_prices(vendor)
List all AWS RDS PostgreSQL storage prices in all regions via boto3 calls.