Back to Terraform

AWS Capability Deep Dive: Provider Upgrades, Write-Only Fields and Discovery

November 6, 2026 Wasil Zafar 23 min read

Separate CRUD, import, list/query, action and temporary-value support through a controlled provider-specific rehearsal

Table of Contents

  1. Record the Exact Resource Capability Matrix
  2. Inspect Changelog and Schema Together
  3. Use Synthetic Secrets for Persistence Evidence
  4. Rehearse Import or Upgrade on One Root
  5. Accept Only the Tested Resource and Release

Record the Exact Resource Capability Matrix

Capability is five contracts, not one checkbox. A resource can create and delete objects yet have no read path, or import cleanly with no list type, or accept a write-only value whose version bump replaces the object. The matrix records each contract separately, against one build.

Pin the evidence to that build. The baseline here is Terraform 1.17.1 with hashicorp/aws 6.72.0, released on 4 November 2026, and the rows below were checked against that tag on 6 November 2026. A matrix without a version header is folklore, not evidence.

CRUD is the weakest claim in the table. The KMS ciphertext resource encrypts a blob and never re-reads it: the read is a no-op because AWS holds no object to read back. "The resource type exists" is therefore not the same as "Terraform manages an object", and the distinction decides whether drift can even be detected.

Import is an identity contract. Some resources take a name, some take a composite of two fields, and some publish an identity map for import blocks. The secret version needs the secret plus a version ID, so a discovery sweep cannot pair those from a bucket listing and must query per secret.

List and query are younger than CRUD. Terraform 1.14 added list resources in query files and the query command, and the provider adds list types release by release. A resource with no list type is still discoverable, just not through that route; the matrix must name the route that exists.

A list type carries its own caveats. The IAM role list is labelled beta and deliberately excludes service-linked roles, so a clean query result does not prove the account has no other roles. Read the list page as carefully as the resource page, including its filters and exclusions.

Write-only is one schema flag with per-resource rotation rules. The flag keeps the value out of plan and state; the version argument decides when a new value is sent. Those two rules do not agree across resources, so only a rehearsal can say whether a change is an update or a replacement.

Actions live beside the matrix, not inside it. The Lambda invoke and EC2 stop actions are provider action types, invoked from an action block or the CLI, and they leave no state behind. They answer "can Terraform cause this side effect", not "can Terraform own this object".

Figure 1 places the five contracts on one evidence path, and the table records what the pinned build actually exposes.

Record the Exact Resource Capability Matrix
%%{init: {'theme':'base','themeCSS':'.edgeLabel .label text, .edgeLabel text, .edgeLabel span { fill:#132440 !important; color:#132440 !important; }','themeVariables': {'primaryColor':'#16476A','primaryTextColor':'#ffffff','primaryBorderColor':'#132440','secondaryColor':'#3B9797','secondaryTextColor':'#ffffff','secondaryBorderColor':'#132440','tertiaryColor':'#c4873b','tertiaryTextColor':'#132440','tertiaryBorderColor':'#132440','lineColor':'#5a6e82','textColor':'#132440','titleColor':'#132440','mainBkg':'#16476A','nodeBorder':'#132440','clusterBkg':'#eef3f7','clusterBorder':'#132440','edgeLabelBackground':'#ffffff','actorBkg':'#16476A','actorTextColor':'#ffffff','actorBorder':'#132440','activationBkgColor':'#3B9797','activationBorderColor':'#132440','signalColor':'#5a6e82','signalTextColor':'#132440','noteBkgColor':'#c4873b','noteTextColor':'#132440','noteBorderColor':'#132440','labelBoxBkgColor':'#a8dede','labelBoxBorderColor':'#132440','labelTextColor':'#132440','loopTextColor':'#132440','altBackground':'#f8f9fa','fontFamily':'DM Sans, sans-serif'}}}%%
flowchart TD
    A["Resource type in the 6.72.0 schema"] --> B{"CRUD complete?"}
    B -->|"create and delete only"| B1["Ciphertext: any change replaces"]
    B -->|"read and update present"| C{"Import identity documented?"}
    C -->|"no"| C1["Own it outside Terraform"]
    C -->|"name or composite"| D{"List type in this release?"}
    D -->|"absent"| D1["Discover by API or data source"]
    D -->|"present, beta"| D2["Role list: read the caveat"]
    D -->|"present"| E{"write_only in schema?"}
    E -->|"no"| E1["Sensitive only: value persists"]
    E -->|"yes"| F["Rehearse the version semantics"]
    F --> G["Accept one row with build and date"]
    classDef primary fill:#132440,color:#ffffff,stroke:#0b172b;
    classDef secondary fill:#16476A,color:#ffffff,stroke:#0f314a;
    classDef ok fill:#3B9797,color:#ffffff,stroke:#2a6f6f;
    classDef danger fill:#BF092F,color:#ffffff,stroke:#7a0420;
    classDef warn fill:#c4873b,color:#132440,stroke:#8a5a1f;
    class A,G primary;
    class C,D secondary;
    class B,E ok;
    class B1,E1 warn;
    class C1,D1,D2 danger;
Five capability contracts feeding one accepted matrix row The provider release fixes the schema, the versioned docs add import identities and list arguments, and a disposable rehearsal tests behaviour. Only those three inputs produce an accepted matrix row. A side panel keeps untested or undocumented capabilities explicitly unknown rather than treating them as unsupported. Five contracts, three inputs, one accepted row Provider release 6.72.0 Terraform 1.17.1, checked 6 November 2026 Installed schema attributes, write_only flag, replacement rules Versioned documentation import identity, list arguments, action types One disposable rehearsal plan, apply, read back, canary search Accepted matrix row resource, contract, evidence, build, reviewer Still unknown no list type no import identity no write-only flag no rehearsal yet Record the gap and the alternative path. Unknown is not the same as unsupported. A missing list type changes the route, not the ownership.
Resource in 6.72.0CRUD and importList / queryWrite-onlyReplaces on change
aws_ssm_parameterRead-write; import by nameYes, region onlyvalue_wo plus versionname, data_type
aws_secretsmanager_secret_versionCreate, read, stage, delete; import by secret and versionYes, requires a secretsecret_string_wo plus versionsecret_id; value switches can replace
aws_db_instanceRead-write; import by identifierYes, region onlypassword_wo plus versionmulti_tenant from true to false
aws_s3_bucketRead-write; import by bucket nameYes, region onlyNonebucket, prefix, namespace
aws_iam_roleRead-write; import by nameYes, beta; no filtersNonename, prefix, path
aws_kms_ciphertextCreate and delete; read is a no-opNo list typeplaintext_wo plus versionkey_id, context, plaintext

Read the table as six separate verdicts. The bucket and the role are full citizens with no temporary-value support; the parameter and the database are full citizens with it; the secret version is a citizen whose replacement logic is decided at plan time; the ciphertext is a create-only convenience.

Replacement is an ownership cost, not a column footnote. Replacing a bucket renames it unless the configuration pins one, which breaks every policy and integration that referenced the old ARN. Replacing a database means a new endpoint and a restore path, not just an extra plan line. Read the column before the upgrade, not after the plan surprises you.

One row can be true and still unusable. A resource may support import and write-only input yet have no list type, which means discovery needs a per-object call rather than a query sweep. Record that combination explicitly; it is the difference between a one-hour onboarding and a week of manual enumeration.

Inspect Changelog and Schema Together

The changelog states intent; the schema states the build. A release note can promise an in-place update while the installed schema still forces replacement, and the two only reconcile when read side by side. The gap between them is where upgrades break.

Start two releases back, not at the newest one. 6.72.0 arrived on 4 November 2026 with modest notes: new list types for S3 CORS configuration and RDS tenant databases, plus a capacity-manager resource. The risk usually sits in the releases the new pin now pulls in.

6.71.0 changed replacement behaviour without touching an argument name. Placement group settings on aws_instance moved from replacement to an in-place stop and start, except for Spot instances and the hard-stop combination. A schema diff shows nothing; a plan shows the difference, which is why both artefacts are required.

6.70.0 broke an import identity in a minor release. The delegation signer record changed its import ID to a four-part string because AWS stopped returning the DNSKEY flags, so a stored import block from the previous pin no longer resolves. Import identities are versioned artefacts and belong in the same review as the constraint.

Deprecations are the quiet half of the schema diff. The secret-version resource still exports a deprecated arn beside secret_arn, and configurations that read the old attribute keep working until they do not. Diff deprecated attributes deliberately rather than waiting for a removal warning.

A write-only addition produces no plan diff at all. 6.70.0 added write-only key material to the DX MACsec association; adopting it is a configuration change with no state change, so a clean plan cannot prove you adopted it. New capability needs its own checklist, separate from the upgrade gate.

A schema diff needs both pins installed. Dump the schema at the old version, upgrade, dump again, and compare only the attributes your configuration references. A removed argument is a validation error, a changed replacement flag is a plan surprise, and a new write-only flag is invisible in the plan entirely.

Figure 2 shows that triage, with the branch most teams miss: a capability that changes nothing in the plan.

Inspect Changelog and Schema Together
%%{init: {'theme':'base','themeCSS':'.edgeLabel .label text, .edgeLabel text, .edgeLabel span { fill:#132440 !important; color:#132440 !important; }','themeVariables': {'primaryColor':'#16476A','primaryTextColor':'#ffffff','primaryBorderColor':'#132440','secondaryColor':'#3B9797','secondaryTextColor':'#ffffff','secondaryBorderColor':'#132440','tertiaryColor':'#c4873b','tertiaryTextColor':'#132440','tertiaryBorderColor':'#132440','lineColor':'#5a6e82','textColor':'#132440','titleColor':'#132440','mainBkg':'#16476A','nodeBorder':'#132440','clusterBkg':'#eef3f7','clusterBorder':'#132440','edgeLabelBackground':'#ffffff','actorBkg':'#16476A','actorTextColor':'#ffffff','actorBorder':'#132440','activationBkgColor':'#3B9797','activationBorderColor':'#132440','signalColor':'#5a6e82','signalTextColor':'#132440','noteBkgColor':'#c4873b','noteTextColor':'#132440','noteBorderColor':'#132440','labelBoxBkgColor':'#a8dede','labelBoxBorderColor':'#132440','labelTextColor':'#132440','loopTextColor':'#132440','altBackground':'#f8f9fa','fontFamily':'DM Sans, sans-serif'}}}%%
flowchart TD
    A["Changelog 6.70.0 through 6.72.0"] --> B["Schema diff at both pins"]
    B --> C{"What actually moved?"}
    C -->|"argument removed"| C1["Validation fails before any API call"]
    C -->|"replacement flag or default"| C2["Plan shows update or replace"]
    C -->|"import ID or identity"| C3["Stored import block stops resolving"]
    C -->|"write-only or list type"| C4["No plan diff at all"]
    C1 --> D["Classify on a branch root"]
    C2 --> D
    C3 --> D
    C4 --> D
    D --> E{"Which plan bucket?"}
    E -->|"no change"| F["Accept the pin"]
    E -->|"in-place"| G["Name the reason"]
    E -->|"replace"| H["Stop and decide"]
    E -->|"error"| I["Fix configuration first"]
    classDef primary fill:#132440,color:#ffffff,stroke:#0b172b;
    classDef secondary fill:#16476A,color:#ffffff,stroke:#0f314a;
    classDef ok fill:#3B9797,color:#ffffff,stroke:#2a6f6f;
    classDef danger fill:#BF092F,color:#ffffff,stroke:#7a0420;
    classDef warn fill:#c4873b,color:#132440,stroke:#8a5a1f;
    class A,B,D primary;
    class C,E secondary;
    class F,G ok;
    class H,I danger;
    class C1,C2,C3,C4 warn;

Treat an empty diff as a result, not a formality. When the changelog names a behaviour change and the schema shows none, the behaviour lives in provider code. That is precisely the case the plan must settle, and the case a matrix built only from attribute tables will get wrong.

Pin narrowly for the rehearsal, then widen for the fleet. An exact patch pin on the rehearsal root makes the comparison reproducible; a ~> constraint on shared modules lets the next patch in without a code review. Both are defensible, but they are different decisions, and the evidence from the first should not be used to justify the second.

Record the release date beside the version. A patch released days before the review has a short field history, so its changelog is thinner than its risk. 6.72.0 is two days old at the time of writing, which is a reason to rehearse it on one root before it reaches a shared module.

Use Synthetic Secrets for Persistence Evidence

Sensitive is a display rule, not a storage rule. A sensitive value is still written to the plan and the state; Terraform only redacts it in human output. Treating that redaction as absence is the most common false claim in a capability review.

Use a canary, never a credential. Generate a synthetic marker that no real system uses, send it through the exact pipeline, and search every artefact for it. A canary is safe to handle, unambiguous when it appears, and honest when it does not.

Write-only changes what the artefacts contain, not what the API receives. With value_wo on an SSM parameter, the plan shows a placeholder, state keeps the version integer, and a computed has_value_wo flag records that a value was set. That flag is positive evidence that the write happened without the value being stored.

Do not generalise one version rule across resources. A parameter update sends the new value on a version bump and changes the object in place. A ciphertext with plaintext_wo turns the same kind of bump into a replacement. One flag, two lifecycles, two different plan outcomes.

The secret version is a third case. Incrementing its write-only version forces a new version object rather than editing the old one, and switching between the persisted and write-only argument can also force replacement. A plan-time custom diff decides this, so the schema dump alone cannot settle the row.

Logs sit outside the guarantee. The RDS documentation warns that the master password may appear in logs even when state holds only the write-only form, and the provider still sends the value over the API. Absence from state is a scope statement, not a promise about every log sink.

Old artefacts outlive the change. A migration from a persisted argument leaves the value in the previous state snapshot, the backend's version history and any saved plan that predates the switch. The canary search must cover those copies, or the claim only describes today's file.

Figure 3 separates the three artefacts that matter: the plan, the state, and the copies nobody remembers.

Where a synthetic canary survives in a persisted argument and a write-only argument On the left, a persisted argument puts the canary in the plan, the state and backend history. On the right, a write-only argument leaves a placeholder in the plan, a version counter and a computed presence flag in state, and no value in either. Both paths may still send the value to API logs, so the canary search must include request logs and older state snapshots. One canary, two storage outcomes Persisted argument Plan file value present State file value present Backend history older versions keep it Request logs provider dependent Write-only argument Plan file placeholder, no value State file version integer only Presence flag computed true, non-secret Request logs provider dependent Evidence set for one claim plan JSON, state JSON, backend versions, and the automatic backup A canary in the backup or the logs does not disprove the write-only flag. It disproves the stronger claim that the value exists nowhere else.

State the claim at the width the evidence supports. "This argument is write-only in 6.72.0, and the canary is absent from the plan, the current state and the backend versions I checked" is defensible. "The secret never leaves the provider" is a different claim, and the logs in Figure 3 are why it fails review.

The counter is the only plan signal you get. Because Terraform never stores the value, it cannot show that an edited secret differs. The version integer is the diff, which means a forgotten increment is a silent no-op and a padded increment is an unnecessary replacement on the secret version. Neither failure appears as a changed value, so review the counter the way you review an image tag.

Rehearse Import or Upgrade on One Root

Rehearse on one root with one owner. A disposable account and a single root are enough to test an upgrade, an import and a write-only path together. More resources add plan noise; fewer cannot demonstrate a replacement.

Begin from a no-change baseline. Apply at the old pin, confirm the plan is empty, and record the identifiers and tags. Without that baseline, an upgrade diff cannot be separated from drift that was already present when the rehearsal started.

Change one variable: the provider pin. Set the constraint to 6.72.0, initialise with the upgrade flag, and dump the schema before editing configuration. Then plan. The plan is the first artefact where removed arguments, changed defaults and new replacement rules appear together.

Sort the plan before reading it line by line. Four buckets: no change, in-place update, replacement, and error. The first is the acceptance baseline, the second needs a written reason, the third needs a decision, and the fourth needs a configuration fix before anything else happens.

Import after the upgrade, not before. Importing into the upgraded provider exercises the identity schema and read path you will actually run. Import one object, then plan that address; a no-change result is the only proof that the HCL matches what the service returns.

Acceptance is behavioural, not textual. The root passes when the final plan is empty, the identifiers are unchanged, the canary is absent from plan and state, and the computed presence flag is true. A clean-looking diff without those four checks is not acceptance.

Roll back by pin, and keep the finding. If an unplanned replacement appears, restore the old constraint, destroy nothing, and record the row as blocked. The rehearsal's value is the capability verdict, not a successful apply.

Figure 4 puts the two halves on one timeline: the pin and schema work on the left, the import and read-back on the right.

One root rehearsal from pinned baseline to accepted row The left column upgrades one root from the old provider pin to 6.72.0 and sorts the plan into four buckets. The right column imports a single existing object by its documented identity, plans that address and reads it back. A bottom band lists the four acceptance checks, and a red strip names the two conditions that reject the row. One root, two halves, four checks Upgrade the pin 1. Empty plan at the old pin 2. Bump constraint, upgrade init 3. Schema diff on used attributes 4. Sort plan into four buckets Import one object 5. Identity from versioned docs 6. Import into the final address 7. Plan that address alone 8. Read back, compare identifiers Acceptance checks empty final plan | same identifiers | presence flag true | no canary in plan or state Reject the row on an unplanned replacement or on a canary found in the backup, the logs or an older state version The pin is the rollback plan. Nothing is destroyed to prove a matrix cell.

Keep the rehearsal root after the decision. A destroyed sandbox cannot answer the next question about the same resource, and rebuilding it reproduces the conditions you already paid for. Tag it as a capability lab, keep it out of production pipelines, and record its cost as the price of the matrix row.

Identity maps and plain IDs are different entry points. A plain import takes one opaque string and leaves the provider to parse it; an identity map takes named fields and fails early when one is missing. Prefer the map where the resource publishes one, because a typo becomes a validation error instead of a confusing read failure.

Import the companions in the same pass. A bucket without its versioning and policy, or a parameter whose KMS key is owned elsewhere, produces a plan that proposes creates against objects that already exist. Either import the companions or record them as external owners before the plan is accepted.

Accept Only the Tested Resource and Release

Release the row you tested, and label the rest unknown. One confirmed row beats ten assumed ones because the next engineer can see the build, the CLI, the artefacts and the reviewer behind it. Everything else stays visibly unverified until someone rehearses it.

Unknown is a state, not a synonym for unsupported. A resource with no list type is not undiscoverable; it is not discoverable through a query file. Record the alternative route beside the gap so the next reviewer does not repeat the search from the beginning.

A matrix that lives in a chat thread expires with the thread. Keep the accepted rows in the repository beside the provider constraint, one row per resource and contract, with the check date and the artefacts searched. When the pin moves, the rows that were not re-tested are visibly stale rather than silently assumed.

The card below is the release gate for one row, written to be run once per capability rather than once per upgrade.

Lab

Accept Only the Tested Resource and Release

Status: design-only. No AWS account was touched for this article, and none of the steps below were executed here. Every identifier, ARN and version ID is a placeholder, and the account should be disposable.

Prerequisites. Terraform CLI 1.17.1, AWS provider 6.72.0, an AWS CLI v2 profile for a sandbox account, and one root that contains three objects: a versioned S3 bucket, an SSM SecureString parameter using value_wo, and a KMS ciphertext using plaintext_wo. No long-lived access key is needed if the sandbox uses SSO.

The synthetic secret. Generate a canary with a prefix that identifies the exercise, keep it only in the shell session, and pass it through an ephemeral variable. Never reuse a real credential, and never paste the canary into a ticket or a commit.

  1. Apply at the old pin and confirm the next plan is empty. Record the bucket name, the parameter name and the ciphertext ID.
  2. Bump the constraint to 6.72.0, initialise with the upgrade flag, and dump the schema for the three resource types.
  3. Diff that dump against the old one. Classify each difference as removed, default, replacement, identity or write-only.
  4. Plan. Sort the result into no change, in-place, replacement and error, and write the reason beside every non-empty bucket.
  5. Import one pre-existing bucket with an identity block that names the bucket. Plan again and expect no change at that address.
  6. Apply the upgrade plan, then read the parameter back through the AWS CLI and confirm it still holds the canary value.
  7. Render the plan and state as JSON and search both for the canary. Search the automatic backup and the backend's previous state version too.
  8. Confirm the presence flags, the identifiers and the final empty plan. Record the row only if all four hold.
CheckEvidenceVerdict
Upgrade appliedDiff touches only the buckets you namedPass or stop
Import resolvedImport block by bucket identity, plan cleanPass or fix HCL
Write-only absentNo canary in plan or state JSONPass
Presence recordedComputed flag true for the parameterPass
Old artefactsCanary absent from backup and prior state versionPass or narrow the claim

Expected observation. The write-only parameter and ciphertext change without any stored value, the imported bucket plans to no change, and the plan for the upgraded root contains only the buckets you wrote down before applying. The canary is returned when the parameter is read through the API, and it appears nowhere in the new artefacts.

Failure checks. A canary in state means the argument is not write-only in this build; re-check the schema flag rather than the documentation. A replacement at the imported address means the HCL does not match the service, so fix the configuration instead of accepting the diff. A version bump that produces no plan line means the counter did not change, not that the value is safe.

Cost and cleanup. One bucket with a few versions, one SecureString parameter and one KMS encrypt call cost pennies for a session. Destroy the root, confirm the objects are gone, delete local plans and state copies, clear the shell variable, and keep only the sanitised matrix row and the plan hashes as evidence.

Release criterion. Publish the row with the provider version, the CLI version, the check date and the artefacts that were searched. If any of the four acceptance checks is missing, the row stays unknown, and the next upgrade inherits an honest gap instead of a false guarantee.