import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const config = new pulumi.Config();
const endpoint = config.require("adapterEndpoint");
const bucket = config.require("testBucket");
const adapter = new aws.Provider("cloud-adapter", {
region: "us-east-1",
endpoints: [{ s3: endpoint }],
s3UsePathStyle: true,
skipCredentialsValidation: true,
skipMetadataApiCheck: true,
skipRegionValidation: true,
skipRequestingAccountId: true,
});
const object = new aws.s3.BucketObjectv2("smoke", {
bucket,
key: "pulumi/cloud-adapter-smoke.txt",
content: "hello through Cloud Adapter\n",
contentType: "text/plain",
}, { provider: adapter });
export const etag = object.etag;