Skip to main content
Terraform and OpenTofu can call Cloud Adapter through an origin cloud provider. Cloud Adapter is not a Terraform provider: it implements the supported cloud API operations that the provider calls. This walkthrough uses the AWS provider and one S3 object. It deliberately reuses an existing test bucket so the first test exercises a small data-plane lifecycle instead of bucket provisioning, account discovery, policy, and tagging all at once.

Start a local adapter

Use one service mapping before testing a larger Terraform graph. This guide’s bounded fixture uses S3 backed by Google Cloud Storage:
1

Install or update the Tensor9 CLI

Install the customer CLI with Homebrew, then confirm the binary is available:
If tensor9 is already installed, run brew upgrade tensor9 instead of the install command.
2

Authenticate with Tensor9

A Tensor9 API key is required. Use the key issued during onboarding, or email [email protected] to request one for your organization. Do not share your account or key with another customer or organization.If your secret manager has already supplied T9_API_KEY, skip the prompt. Otherwise, enter your key at a hidden prompt in the terminal where you will run tensor9:
Check that the variable is set without printing it, then verify your Tensor9 identity:
Confirm that the reported identity belongs to the intended customer account. Do not continue if authentication fails or the account is wrong. Keep shell tracing disabled while using the key. Do not paste the key into commands, shell profiles, source files, screenshots or support messages.See Install and Authenticate for the planned license lifecycle, entitlements and credential boundaries.
3

Inspect the S3 to Google Cloud Storage mapping

Ask Tensor9 to describe the exact directed service mapping used by this guide:
Read the supported S3 operations and Google Cloud Storage limitations before starting the process. The mapping is directional: this command describes S3 requests adapted to Google Cloud Storage, not the reverse direction.
4

Prepare Google Cloud access

Authenticate with Google Cloud using its standard Application Default Credentials chain. The adapter uses that identity when it calls Google Cloud Storage.Use a dedicated test project and narrowly scoped credentials. Do not put credentials in the command line, source code, or screenshots.
5

Start the S3 service adapter

Run the S3 to Google Cloud Storage adapter as a foreground process:
Leave this terminal open. This is the current foreground launcher, not the pending Docker launcher for local development mode. It calls your actual target-cloud services; it is separate from the in-memory emulator. Acquisition and license renewal require Tensor9 authentication. Keep the endpoint local to your test.
6

Copy the listening endpoint

When the command reports its listening endpoint, copy that exact value into a second terminal:
Keep the endpoint local to the test unless you have deliberately configured network access and authentication for another machine.
7

Run one bounded S3 request

Continue with this page’s client or tool instructions. Point only S3 at T9_CLOUD_ADAPTER_ENDPOINT, then perform one operation whose Google Cloud Storage effect you can verify independently.Check both sides: read the S3-shaped response and inspect the native object or bucket in Google Cloud Storage. A successful client response alone does not prove that the target state is correct.
8

Stop the local adapter

Return to the first terminal and press Control-C. Confirm the process exits before deleting the test object or bucket with Google Cloud’s native client.If the request failed, preserve the request ID, adapter endpoint, S3 operation name, Google Cloud request ID, and any x-t9-explain-* receipt headers before stopping the process.

What this test proves

A successful run proves that the selected provider version can use the endpoint and that the exact create, read, refresh, and delete operations in this configuration work for the selected target. It does not prove that every AWS resource, every S3 feature, import, drift recovery, or backend migration works.

Prerequisites

  • Terraform 1.6+ or a compatible OpenTofu release;
  • AWS provider 5.100.0 for the exact configuration below;
  • an installed AWS-origin adapter endpoint;
  • a pre-created target bucket represented by an origin-facing bucket name;
  • origin-side credentials for the provider;
  • an isolated workspace and remote state policy suitable for test data.
Check S3 service coverage for your target before applying.

Configure the provider endpoint

The four skip_* settings are deliberate for this bounded S3 fixture: they prevent this provider version from making startup calls to EC2 metadata, region validation, or AWS STS outside the configured adapter route. They do not weaken Cloud Adapter authentication. Validate the origin identity independently, and reassess the startup call graph before changing provider versions.

Run the lifecycle

After apply:
  1. Read the object through the origin API.
  2. Inspect it in the native target service.
  3. Confirm its bytes and content type.
  4. Save the provider and adapter versions with the test evidence.

Prove read-back and drift behavior

Run a second plan:
Exit code 0 means no diff, 2 means Terraform found a diff, and 1 means an error. If the provider cannot read a field it wrote, a perpetual diff can appear even though creation succeeded. Compare the diff with the target-specific fidelity and limitation tables. For a controlled drift test, change only a disposable object’s content through the native target API, run terraform plan, and observe whether the provider detects the change. Restore or destroy the object afterward.

Clean up safely

Verify through both the origin API and target service that only the test object was removed. Retain or destroy the test bucket according to its separate ownership policy.

State and migration boundaries

  • Terraform state records provider-visible identity; it is not application data migration.
  • Changing the provider endpoint can cause refreshes, replacement plans, or identity mismatches.
  • Import requires compatible read and identity behavior, not only create support.
  • A clean plan does not prove unsupported fields are preserved.
  • Never point a production workspace at a new adapter endpoint before testing refresh and replacement behavior on a copy.

Troubleshooting

Capture diagnostic response headers and run the failing origin operation with the AWS CLI guide to separate provider behavior from adapter behavior.