Metadata-Version: 2.4
Name: netherframe.lint.hashicorp.aws
Version: 0.3.0
Summary: Netherframe lint rules and schemas for the HashiCorp AWS provider
Author: Sourabh Cheedella
Author-email: Sourabh Cheedella <cheedella.sourabh@gmail.com>
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Requires-Dist: netherframe-core>=0.12.0,<1.0.0
Requires-Python: >=3.14
Project-URL: Homepage, https://netherframe.arsenal.sh
Project-URL: Repository, https://github.com/arsenal-sh/netherframe
Description-Content-Type: text/markdown

# NF checks for the HashiCorp AWS provider

`netherframe.lint.hashicorp.aws` is an MIT-licensed Netherframe lint pack for
`hashicorp/aws`. It registers the `hashicorp.aws` plugin with `nf lint`.

```python
from nf.lint.hashicorp.aws import lint_aws_app

report = lint_aws_app(app)
report.assert_valid()
```

The catalogue contains **4,354 default checks**: 1,899 policy/argument checks and
2,455 structural schemas. Nine additional checks require explicit opt-in with
`aws_rules(include_disabled=True)`. Public `NF_AWS_*` IDs, resource scopes and
default settings are pinned in `tests/fixtures/nf_coverage.csv`. Implementations
follow current service requirements; the contract preserves coverage rather than
historical pass/fail edge cases.

Requirements execute as native Python predicates and resource/graph policies.
Field checks combine API formats, bounds and enum values with NF policy settings.
Formats use Python character, identifier and structure validators.
Structural schemas describe the provider's public configuration interface.
Structural facts are pinned to AWS provider 6.73.0; they include types, required/computed flags, nesting and cardinality.
They contain no provider implementation code or documentation text. Linting does
not start providers, configure credentials, read state, query AWS or load JSON
assets. Structural checks do not cover every provider custom validator.

`aws_rules(sources=("native",))` selects policies/argument checks;
`sources=("schema",)` selects structural checks. `aws_inventory()["rules"]`
contains one NF requirement per row, with its resource scopes and default setting.
The catalogue has no scanner aliases, source-family selectors or compliance-pack
inventories. These reporting/selection interfaces replace the previous import
interfaces; public NF rule IDs remain stable.

`lint_tag_policy(..., required_tags=..., provider_config=...)` checks an explicit
operator policy, including provider default tags. `bucket_prefix_rule(prefix)`
provides an optional naming policy. Neither helper invents organizational naming
or tag requirements.

Resource policies follow AWS service and provider configuration requirements.
Known violations take precedence over unresolved siblings. Only exact references
establish managed graph relationships; external IDs, transformed references and
data sources cannot prove them. IAM analysis handles supported static policy
forms conservatively. Static checks do not replace service-side authorization,
regional availability checks, aggregate quotas or live security assessments.
EKS and Lambda support calendars defer when stale or when a future runtime/version
is unknown. Calendar dates must be refreshed from the AWS service documentation.

Maintain requirements directly in `attribute_data.py`, `policy_functions.py`,
`security_policies.py`, `formats.py`, `service_requirements.py` and `naming.py`. Update the
coverage contract only for deliberate changes to public requirements. Refresh
provider interface facts with an offline schema export:

```sh
uv run python tools/generate_schema.py /tmp/aws-schema.json --version 6.73.0 --provider-binary /path/to/terraform-provider-aws
uv run python ../../tools/scripts/generate_nf_alias_shims.py
```

The schema compiler discards documentation and retains only interface facts.
No scanner definitions, scanner import tools, source snapshots, replay fixtures,
third-party license files or attribution inventories are distributed in this
package. See [LICENSE](LICENSE) for the MIT terms. Dependency distributions retain
their own licenses.
