Skip to content

Releases

v0.8.0

Choose a tag to compare

@akshaykilam1 akshaykilam1 released this 24 Nov 14:43
3d368c5

Added

  • More idle-and-still-billing checks: an EBS volume attached to nothing (priced per GB-month for its type), a
    load balancer with no registered targets (medium when it has listeners) or a Classic Load Balancer with no
    instances, and EBS snapshots that look abandoned (older than 90 days, volume gone, no AMI uses them, not
    from AWS Backup or Data Lifecycle Manager; medium). Snapshots are listed only when they look abandoned.
    Volumes and load balancers younger than 7 days aren't judged. Prices are live per region.
  • Import blocks: -o imports.tf (or -f imports) writes a Terraform import {} block for every resource not
    in IaC, grouped by region, ready for terraform plan -generate-config-out=generated.tf. Blocks whose import ID
    isn't known are commented out with a note. JSON findings carry import_id. IDs follow each resource's
    Import section in the Terraform AWS provider docs: WAFv2 ID/NAME/SCOPE, Application Auto Scaling
    namespace/resource-id/dimension, ECS services cluster/service, ARNs for Firehose, CloudTrail and Kinesis
    Analytics, account:name for budgets and S3 access points, names for ARN-listed types such as CloudFront
    functions and Batch compute environments.
  • Application Auto Scaling targets are listed (Cloud Control can't list them without a namespace).
  • Many state files in one run: a --state source or a file under an S3 prefix that can't be read or parsed no
    longer stops the run; it is named in the incomplete-scan warning and the rest still count. The run stops only
    when no --state can be read at all. Empty state files are skipped, and a folder of .tfstate files (no
    .tf files) is read file by file.
  • State found from the Terraform code: --state DIR (or no --state when run in a Terraform directory) reads
    the backend from the code or .terraform/, then every workspace: an S3 backend's default key and
    env:/<workspace>/ keys, local terraform.tfstate and terraform.tfstate.d/, or the HCP Terraform /
    Terraform Enterprise workspaces a cloud block or remote backend names (by name, tags or prefix). No
    terraform init is needed for these. Other backends still use state pull.

v0.7.1

Choose a tag to compare

@akshaykilam1 akshaykilam1 released this 24 Nov 11:33
1f6ca77

Fixed

  • A region the account hasn't enabled (an opt-in region such as me-south-1) or a misspelt region now stops the
    run at once with a clear message. It used to hang for minutes on each call. --all-regions asks us-east-1
    for the region list, so a disabled default region doesn't hang it either.
  • With --no-cloudformation and no --state, the note says nothing counts as IaC (it said CloudFormation did).

v0.7.0

Choose a tag to compare

@akshaykilam1 akshaykilam1 released this 24 Nov 10:27
78b0155

Added

  • Incomplete-scan warning: when resource types can't be listed, CloudFormation stacks can't be listed or
    read, the account can't be identified, or a stack's drift check fails, the report starts with a warning
    that says what was missed and what that means (resources missing, or listed as not in IaC when they
    are). The JSON has an incomplete list, and the same warning is printed at the end of the run. Exit
    codes don't change.
  • Settings file: .driftreport.yml in the current directory (or --dir) sets flags, with top-level keys for
    every mode and a terraform:, cloudformation: or unmanaged: section per mode. Command-line flags win,
    relative paths are read from the file's folder, and a misspelt key is an error. --config FILE and
    --no-config. PyYAML is now a dependency.

Fixed

  • An account_id in state no longer sets the resource's account: on member and sharing types such as
    aws_guardduty_member, aws_ami_launch_permission and aws_cloudformation_stack_set_instance it names
    the other account, so 0.6.2 could list them as not in IaC.
  • An access-denied Cloud Control listing is reported as "access denied"; it had said "the service returned an
    error".

v0.6.2

Choose a tag to compare

@akshaykilam1 akshaykilam1 released this 24 Nov 07:17
9fd4b44

Added

  • Nearly unused NAT gateways: one that a route table points at but that moved under 1 GB in the last 14 days
    (CloudWatch BytesOutToDestination + BytesInFromDestination, read with cloudwatch:GetMetricData) is
    flagged with its monthly cost, at medium severity when it isn't in IaC. Gateways younger than 14 days are
    skipped, and nothing is said when CloudWatch can't be read.

Changed

  • Idle costs use live on-demand prices for the resource's region from the AWS Price List API
    (pricing:GetProducts, included in ReadOnlyAccess), e.g. about $41 a month for an idle NAT gateway in
    ap-south-1 instead of a flat $32. If prices can't be read, us-east-1 list prices are used and the finding
    says so. Monthly figures use 730 hours, so us-east-1 now shows $32.85 and $3.65 rather than $32 and $3.60.
  • The JSON's idle entries have a monthly_usd number.

Fixed

  • Not-in-IaC matching now checks the AWS account as well as the region. A state entry whose ARN (or
    owner_id) names another account no longer marks a same-named resource in the scanned account as
    in IaC, and --explain says "recorded for account …". The same id in two accounts' state files is
    no longer reported as a duplicate import.
  • --version and the HTML report footer show the installed version; they had said 0.5.0 since that release.

Full changelog: v0.6.1...v0.6.2

v0.6.1

Choose a tag to compare

@akshaykilam1 akshaykilam1 released this 23 Nov 15:53
7e7d9d0

Fixed

  • An idle public NAT gateway's cost now includes the public IPv4 charge ($3.60/month per address), so a NAT gateway with one Elastic IP shows about $35.60/month instead of $32.

pip install -U cloud-drift-report

v0.6.0

Choose a tag to compare

@akshaykilam1 akshaykilam1 released this 23 Nov 09:45
22e2ff2

Added

  • Idle and still billing: the not-in-IaC scan flags NAT gateways that no route table sends traffic to (about $32/month idle) and Elastic IPs attached to nothing (about $3.60/month). Unmanaged ones are high severity with the cost in the explanation; ones in your Terraform are named in the coverage line and the JSON's idle list.
  • NAT gateways and Elastic IPs are now listed with the EC2 API instead of Cloud Control.

pip install -U cloud-drift-report

v0.5.0

Choose a tag to compare

@akshaykilam1 akshaykilam1 released this 23 Nov 07:39
a0b44ba

Added

  • Coverage percentage: the coverage line starts with "N% in IaC", and the JSON has percent_in_iac and a per-type breakdown (by_type).
  • --explain TEXT (not-in-IaC scan): for each listed resource whose ID, name or ARN contains TEXT, says what it matched in IaC, or why it didn't (no entry of that type, an entry for another region, the values it looked for).
  • Duplicate imports: a warning when one cloud resource is at two or more Terraform addresses, naming both, because two applies would fight over it.
  • --strict reports resources AWS created itself as low-severity findings, with the reason.

Changed

  • AWS Organizations, Control Tower and StackSets defaults in member accounts are skipped as AWS-owned: OrganizationAccountAccessRole, AWSControlTower* / aws-controltower-*, stacksets-exec-* and AWSCloudFormationStackSetExecutionRole.
cloud-drift-report unmanaged --region us-east-1 --state s3://acme-tf-state/prod/ --explain my-bucket

Install: pip install -U cloud-drift-report · GitHub Action: orchesterra/cloud-drift-report@v0

Full changes: v0.4.0...v0.5.0

v0.4.0

Choose a tag to compare

@akshaykilam1 akshaykilam1 released this 23 Nov 07:25
0b66b53

Added

  • --role-arn, --external-id and --role-session-name for cloudformation and unmanaged: assume a role first and check another account with one set of credentials. Credentials renew during long scans, and a role that can't be assumed stops the run up front with a clear message. An s3:// state is read with your own credentials first (state usually lives in a central account), then as the role.
cloud-drift-report unmanaged --region us-east-1 \
  --role-arn arn:aws:iam::222222222222:role/drift-report-readonly --external-id "$EXTERNAL_ID" \
  --state s3://acme-tf-state/prod/

Changed

  • The README and package summary say "open-source Terraform drift detection".
  • The Cursor plugin manifest lists the Cursor rule, so marketplaces show it next to the skill.

Install: pip install -U cloud-drift-report · GitHub Action: orchesterra/cloud-drift-report@v0

Full changes: v0.3.2...v0.4.0

v0.3.2

Choose a tag to compare

@akshaykilam1 akshaykilam1 released this 23 Nov 03:57
bc76751

Fixed

  • tag: ignore rules now match load balancers, target groups and listeners in the not-in-IaC scan. AWS's Cloud Control API lists them without tags, so a rule such as tag:elbv2.k8s.aws/cluster (the AWS Load Balancer Controller's tag) used to miss them. A listener also carries its load balancer's tags.
  • Load balancers and target groups are shown by name instead of the last part of their ARN.

The README has a new example for resources controllers create for you (Load Balancer Controller, Karpenter, Lambda log groups).

Install: pip install -U cloud-drift-report · GitHub Action: orchesterra/cloud-drift-report@v0

Full changes: v0.3.1...v0.3.2

v0.3.1

Choose a tag to compare

@akshaykilam1 akshaykilam1 released this 22 Nov 16:48
06c8e0b

Added

  • When a JSON report is written, the CLI prints a link to OrchesTerra's import page, where you can drop the file to view it. --share now prints the same instructions instead of "coming soon". Nothing is uploaded.

Install: pip install -U cloud-drift-report · GitHub Action: orchesterra/cloud-drift-report@v0

Full changes: v0.3.0...v0.3.1