Interface S3RemoteStateReferenceArgs

The configuration options for a Terraform Remote State stored in the S3 backend.

interface S3RemoteStateReferenceArgs {
    accessKey?: any;
    backendType: "s3";
    bucket: Input<string>;
    endpoint?: any;
    externalId?: any;
    forcePathStyle?: any;
    iamEndpoint?: any;
    key: Input<string>;
    profile?: any;
    region?: any;
    roleArn?: any;
    secretKey?: any;
    sessionName?: any;
    sharedCredentialsFile?: any;
    skipCredentialsValidation?: any;
    skipMetadataApiCheck?: any;
    skipRegionValidation?: any;
    stsEndpoint?: any;
    token?: any;
    workspace?: any;
    workspaceKeyPrefix?: any;
}

Properties

accessKey?: any

AWS Access Key. Sourced from the standard credentials pipeline, if unset.

backendType: "s3"

A constant describing the name of the Terraform backend, used as the discriminant for the union of backend configurations.

bucket: Input<string>

The name of the S3 bucket.

endpoint?: any

A custom endpoint for the S3 API. Also sourced from AWS_S3_ENDPOINT in the environment, if unset.

externalId?: any

The external ID to use when assuming the IAM role.

forcePathStyle?: any

Force s3 to use path style api.

iamEndpoint?: any

A custom endpoint for the IAM API. Sourced from AWS_IAM_ENDPOINT, if unset.

key: Input<string>

The path to the state file inside the bucket. When using a non-default workspace, the state path will be /workspace_key_prefix/workspace_name/key.

profile?: any

The AWS profile name as set in the shared credentials file.

region?: any

The region of the S3 bucket. Also sourced from AWS_DEFAULT_REGION in the environment, if unset.

roleArn?: any

The ARN of an IAM Role to be assumed in order to read the state from S3.

secretKey?: any

AWS Secret Access Key. Sourced from the standard credentials pipeline, if unset.

sessionName?: any

The session name to use when assuming the IAM role.

sharedCredentialsFile?: any

The path to the shared credentials file. If this is not set and a profile is specified, ~/.aws/credentials will be used by default.

skipCredentialsValidation?: any

Skip the credentials validation via STS API.

skipMetadataApiCheck?: any

Skip the AWS Metadata API check.

skipRegionValidation?: any

Skip static validation of region name.

stsEndpoint?: any

A custom endpoint for the STS API. Sourced from AWS_STS_ENDPOINT, if unset.

token?: any

An MFA token. Sourced from the AWS_SESSION_TOKEN in the environment variable if needed and unset.

workspace?: any

The Terraform workspace from which to read state.

workspaceKeyPrefix?: any

The prefix applied to the state path inside the bucket. This is only relevant when using a non-default workspace, and defaults to env:.

Generated using TypeDoc