AWS Resource Discoverer for Netherframe
This package provides AWS resource discovery capabilities for Netherframe using the HashiCorp AWS provider.
Installation
pip install netherframe.discovery.hashicorp.aws
Usage
from nf.core import App, Stack
from nf.core.infrastructure.discovery import ResourceDiscoveryManager
from nf.discovery.hashicorp.aws import AWSDiscoverer
# Create discovery manager
discovery = ResourceDiscoveryManager([AWSDiscoverer()])
# One region per call; credentials come from the environment, ~/.aws or explicit config keys
aws_config = {"region": "us-east-1"}
# Create app and stack
app = App(nf_id="app")
stack = Stack(nf_scope=app, nf_id="imported_infrastructure")
# Discover and fold resources
resources, imports = discovery.discover_and_fold(
stack=stack,
provider_source="hashicorp/aws",
config=aws_config,
filters={"resource_types": ["aws_vpc", "aws_instance", "aws_s3_bucket"], "tags": {"Environment": "production"}},
)
print(f"Discovered {len(resources)} resources")
Or from the command line: nf discover resources aws --region us-east-1.
Supported Resource Types
Discovery supports 1750 resource types and 6 AWS load balancer aliases. The comprehensive guide lists every type, and the coverage report compares them with the Terraform AWS provider.
Coverage against provider 6.73.0 is 1,756/1,766 types (99.4%), with 246/252 services complete. This includes all pinned SageMaker (39), Security Hub (20), Transfer Family (13), IAM Identity Center administration (15), and Transcribe (4) resource types, plus QuickSight (26), Lightsail (23), Network Manager (21), VPC Lattice (15), and FSx (12). Complete services also include Bedrock AgentCore (21), WorkSpaces Secure Browser (18), SES (14), SES v2 (14), Bedrock (12), Bedrock Agent (9), and Neptune (9). Another 75 types complete Connect (17), DMS (11), DataZone (11), REST API Gateway (26), Classic ELB (9), global WAF Classic (12), and WAF Regional Classic (13). Another 79 advertised types complete RDS (30), Network Firewall (9), Network Security Manager (6), Storage Gateway (10), WorkSpaces (5), Image Builder (9), EMR (8), Observability Admin (9), Notifications (8), DynamoDB (10) and ELBv2 (14, including six ALB aliases). This includes the new listener-certificate alias. A further 56 types complete Audit Manager (8), Oracle Database@AWS (8), CloudWatch Omni (7), FinSpace (7), Kendra (6), Lex V2 Models (6), Pinpoint (12), S3 (26), and WAFv2 (9). FinSpace retains the pinned historical API contract after AWS retirement; current endpoint availability is not implied. WAFv2 API-key discovery requires literal credential opt-in because its native import identity contains the key. A further 58 types complete Auto Scaling (9), Bedrock Data Automation (3), Cost Explorer (4), Clean Rooms (3), Direct Connect (19), ECS (11), Elasticsearch (4), Evidently (4), Lambda Web (4), MediaLive (5), Secrets Manager (5), Cloud Map (5), Service Quotas (4), Verified Permissions (5), and WorkMail (5). Evidently also uses an isolated official historical API model; coverage does not establish live availability. Direct Connect's four additional observations and the legacy Elasticsearch policy have no native importer. Standalone tag ownership follows the actual selected types, and withheld configuration or unknown preservation inputs remain explicit before an apply.
The preceding 57 canonical additions brought the registry to 430 spec modules. They added Synthetics/Signer, CodeCatalyst, Timestream, Lambda Core/MicroVM, ARC plans, Budgets, Chatbot, RUM, administrative account settings and the remaining readable certificate, connection, type-version, snapshot-copy, trigger and operation-history lifecycles. Necessary metadata reads still establish actual occurrences when private bodies are withheld; original creation inputs and native first-plan limitations stay explicit. CodeCatalyst-only selection validates its official bearer session; mixed/default selection keeps AWS STS. Native no-import observations are never advertised as adoption tokens.
Five further bindings bring the registry to 432 spec modules: Grafana v10 legacy API-key metadata through an explicitly authenticated administrative HTTP GET, and four Lex V1 definitions restricted to GovCloud West/FIPS. Grafana needs existing per-workspace token files and original TTL inputs; its key resource has no importer. Lex's scoped documentation conflicts with the general retirement notice, so coverage does not qualify any account's current availability. The comprehensive guide explains both boundaries.
These are provider-binding coverage counts, not a count of currently available live AWS types. See live inventory and retired-service limits for the source-backed exceptions; historical SDK support does not establish current service availability.
These inventories read administrative configuration; private definition bodies require the documented opt-in, and unreturned origins, credentials and lifecycle choices stay explicit. Object variants outside a pinned schema are reported; unreadable creation inputs remain explicit arguments to supply, and an observed resource without a native importer is identified as such.
The packaged live-inventory exception ledger records the exact
three declarations without a qualified service-inventory reader and seven retired-service
declarations still missing. Raw
coverage remains 1,756/1,766. The coverage scripts' --require-live-complete gate checks
remaining live-scope gaps and rejects advertising an excluded declaration as supported;
it does not claim that every historical binding has a currently operational AWS endpoint.
Explicitly requesting a remaining unavailable type produces a structured availability
notice, without a synthetic resource. A known-unavailable-only request creates no AWS
session or authentication call; mixed requests continue their supported inventory.
The five bounded readers also return private-safe scope, authentication or incomplete-
inventory notices, without changing their supported-type status or hiding actual results.
Configuration Options
AWS Credentials
The discoverer supports multiple credential methods:
- Environment variables:
AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY(orAWS_PROFILE) - AWS credentials file and instance roles, through the default boto3 credential chain
- Explicit credentials: Provide
access_key_id,secret_access_keyand optionallysession_tokenin config
Filtering
You can filter discovered resources using:
- Types:
{'resource_types': ['aws_vpc', 'aws_subnet']} - Tags:
{'tags': {'Environment': 'prod', 'Team': 'backend'}} - Per-type filters, e.g.
{'vpc_ids': [...]},{'bucket_names': [...]},{'api_names': [...]}
Secrets
Secrets the AWS API never returns, and credentials that are only emitted on request (see
README_COMPREHENSIVE.md), are listed in each resource's metadata["arguments_to_supply"];
the CLI and discover_and_fold() tell you which arguments to supply.
Requirements
- Python 3.15+
- boto3
- netherframe.core
Metadata
Release files for netherframe.discovery.hashicorp.aws 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| netherframe_discovery_hashicorp_aws-0.4.0.tar.gz | 1.6 MB | Without provenance | Details for netherframe_discovery_hashicorp_aws-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| netherframe_discovery_hashicorp_aws-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for netherframe_discovery_hashicorp_aws-0.4.0-py3-none-any.whl |
Total release size: 4.0 MB
Release files / netherframe_discovery_hashicorp_aws-0.4.0.tar.gz
| Download URL | netherframe_discovery_hashicorp_aws-0.4.0.tar.gz |
|---|---|
| Size | 1.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c70e3e1addd2084264f57328d45badf8a722f2f30941e164adf52f485456c592
|
|
BLAKE2b-256 checksum How to use checksums |
df06a964eb4d5dd3b37049791a79241558be60f0c50c06dc28238bb1d5ecd366
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / netherframe_discovery_hashicorp_aws-0.4.0-py3-none-any.whl
| Download URL | netherframe_discovery_hashicorp_aws-0.4.0-py3-none-any.whl |
|---|---|
| Size | 2.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
99853ca49856dcc70f6b67772daefcd330df2cbe074bfa216fb819aac9760448
|
|
BLAKE2b-256 checksum How to use checksums |
b8ebb18022239c22e00c6a965c18aff0f854d7652e411dfc63ae2c89d79fab82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for netherframe.discovery.hashicorp.aws 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.