# `sc_crawler.vendors._aws`

> Inventory of Amazon Web Services via `boto3`: servers, storages, traffic, IPv4 addresses and managed PostgreSQL (RDS), with their prices.

# `sc_crawler.vendors._aws`

**Functions:**

- [**inventory_compliance_frameworks**](#inventory_compliance_frameworks) – Manual list of compliance frameworks known for AWS.
- [**inventory_regions**](#inventory_regions) – List all available AWS regions via `boto3` calls.
- [**inventory_zones**](#inventory_zones) – List all available AWS availability zones via `boto3` calls.
- [**inventory_servers**](#inventory_servers) – List all available AWS instance types in all regions via `boto3` calls.
- [**inventory_server_prices**](#inventory_server_prices) – List all on-demand instance prices in all regions via `boto3` calls.
- [**inventory_server_prices_spot**](#inventory_server_prices_spot) – List all spot instance prices in all availability zones via `boto3` calls.
- [**inventory_storages**](#inventory_storages) – List all storage types via `boto3` calls.
- [**inventory_storage_prices**](#inventory_storage_prices) – List all storage prices in all regions via `boto3` calls.
- [**inventory_traffic_prices**](#inventory_traffic_prices) – List all inbound and outbound traffic prices in all regions via `boto3` calls.
- [**inventory_ipv4_prices**](#inventory_ipv4_prices) – List IPV4 prices in all regions via `boto3` calls.
- [**inventory_databases**](#inventory_databases) – List all available AWS RDS PostgreSQL instance types via `boto3` calls.
- [**inventory_database_prices**](#inventory_database_prices) – List all on-demand AWS RDS PostgreSQL prices in all regions via `boto3` calls.
- [**inventory_database_storages**](#inventory_database_storages) – List all AWS RDS PostgreSQL storage types via `boto3` calls.
- [**inventory_database_storage_prices**](#inventory_database_storage_prices) – List all AWS RDS PostgreSQL storage prices in all regions via `boto3` calls.

## func <code class="doc-name">inventory_compliance_frameworks</code> [_aws.py:2043–2050](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/vendors/_aws.py#L2043-L2050)

```python
inventory_compliance_frameworks(vendor)
```

Manual list of compliance frameworks known for AWS.

Resources: <https://aws.amazon.com/compliance/programs/>

## func <code class="doc-name">inventory_regions</code> [_aws.py:2053–2476](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/vendors/_aws.py#L2053-L2476)

```python
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 <code class="doc-name">inventory_zones</code> [_aws.py:2479–2517](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/vendors/_aws.py#L2479-L2517)

```python
inventory_zones(vendor)
```

List all available AWS availability zones via `boto3` calls.

## func <code class="doc-name">inventory_servers</code> [_aws.py:2520–2539](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/vendors/_aws.py#L2520-L2539)

```python
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 <code class="doc-name">inventory_server_prices</code> [_aws.py:2542–2607](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/vendors/_aws.py#L2542-L2607)

```python
inventory_server_prices(vendor)
```

List all on-demand instance prices in all regions via `boto3` calls.

## func <code class="doc-name">inventory_server_prices_spot</code> [_aws.py:2610–2693](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/vendors/_aws.py#L2610-L2693)

```python
inventory_server_prices_spot(vendor)
```

List all spot instance prices in all availability zones via `boto3` calls.

## func <code class="doc-name">inventory_storages</code> [_aws.py:2754–2811](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/vendors/_aws.py#L2754-L2811)

```python
inventory_storages(vendor)
```

List all storage types via `boto3` calls.

## func <code class="doc-name">inventory_storage_prices</code> [_aws.py:2814–2857](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/vendors/_aws.py#L2814-L2857)

```python
inventory_storage_prices(vendor)
```

List all storage prices in all regions via `boto3` calls.

## func <code class="doc-name">inventory_traffic_prices</code> [_aws.py:2860–2896](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/vendors/_aws.py#L2860-L2896)

```python
inventory_traffic_prices(vendor)
```

List all inbound and outbound traffic prices in all regions via `boto3` calls.

## func <code class="doc-name">inventory_ipv4_prices</code> [_aws.py:2899–2928](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/vendors/_aws.py#L2899-L2928)

```python
inventory_ipv4_prices(vendor)
```

List IPV4 prices in all regions via `boto3` calls.

## func <code class="doc-name">inventory_databases</code> [_aws.py:3393–3597](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/vendors/_aws.py#L3393-L3597)

```python
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 <code class="doc-name">inventory_database_prices</code> [_aws.py:3600–3657](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/vendors/_aws.py#L3600-L3657)

```python
inventory_database_prices(vendor)
```

List all on-demand AWS RDS PostgreSQL prices in all regions via `boto3` calls.

## func <code class="doc-name">inventory_database_storages</code> [_aws.py:3669–3704](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/vendors/_aws.py#L3669-L3704)

```python
inventory_database_storages(vendor)
```

List all AWS RDS PostgreSQL storage types via `boto3` calls.

## func <code class="doc-name">inventory_database_storage_prices</code> [_aws.py:3707–3760](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/vendors/_aws.py#L3707-L3760)

```python
inventory_database_storage_prices(vendor)
```

List all AWS RDS PostgreSQL storage prices in all regions via `boto3` calls.
