Skip to main content

@webframp/aws/terraform-drift

v2026.04.15.1

Terraform drift detection for AWS — compares Terraform state against live AWS resources to find configuration drift.

Orchestrates data collection from @webframp/terraform (state via CLI) and @webframp/aws/inventory + @webframp/aws/networking (live AWS via SDK), then produces a drift report highlighting missing, extra, and changed resources.

Quick Start

swamp extension pull @webframp/aws/terraform-drift

swamp model create @webframp/terraform tf-infra \
  --global-arg workDir=/path/to/terraform/repo
swamp model create @webframp/aws/inventory aws-inventory \
  --global-arg region=us-east-1
swamp model create @webframp/aws/networking aws-networking \
  --global-arg region=us-east-1

swamp workflow run @webframp/terraform-drift

Repository

https://github.com/webframp/swamp-extensions

Labels

awsterraformdriftcomplianceiac

Install

$ swamp extension pull @webframp/aws/terraform-drift

@webframp/terraform-drifta1b2c3d4-e5f6-7890-abcd-ef1234567890

Compare Terraform state against live AWS resources to detect drift. Collects Terraform-declared state via CLI, then gathers live AWS resource data, and produces a drift report.

gather-terraform-stateRead Terraform state and resource inventory
1.tf-list-resourcestf-infra.list_resources— List all resources in Terraform state
2.tf-read-statetf-infra.read_state— Read full Terraform state with all resource attributes
3.tf-get-outputstf-infra.get_outputs— Read Terraform output values
gather-aws-live-stateCollect live AWS resource state for comparison
1.aws-inventoryaws-inventory.inventory_all— Run full AWS resource inventory
2.aws-nat-gatewaysaws-networking.list_nat_gateways— List NAT Gateways
3.aws-load-balancersaws-networking.list_load_balancers— List load balancers
4.aws-elastic-ipsaws-networking.list_elastic_ips— List Elastic IPs

@webframp/terraform-drift-reportworkflow
drift_report.ts

Compares Terraform state against live AWS resources to identify configuration drift

awsterraformdriftcompliance