published on Tuesday, Sep 29, 2026 by htmlcsstoimage
HTML/CSS to Imagepublished on Tuesday, Sep 29, 2026 by htmlcsstoimage
Read the organization’s external ID and HCTI writer role ARN before creating an AWS storage destination. No destination ID or input attributes are needed. This does not create a destination or test a bucket connection.
The caller requires storage_destinations:create_update for this lookup.
data "htmlcsstoimage_aws_storage_external_id" "organization" {}
output "hcti_aws_external_id" {
value = data.htmlcsstoimage_aws_storage_external_id.organization.external_id
}
Use externalId in the IAM role trust policy’s sts:ExternalId condition, and writerRoleArn as its Principal.AWS, allowing sts:AssumeRole. An external-ID condition alone is not a complete trust policy. Reference the resulting role ARN from the storage destination so Terraform creates the role before HCTI tests the connection.
| Output | Meaning |
|---|---|
externalId | Organization-specific external ID for the AWS role trust policy. |
writerRoleArn | HCTI writer role ARN to use as the trust policy’s AWS principal. |
Lookup failures remain errors, including authorization failures and HTTP 404.
The returned writerRoleArn identifies HCTI’s caller role. The storage destination’s roleArn identifies the role you create in your own AWS account.
Using getAwsStorageExternalId
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getAwsStorageExternalId(opts?: InvokeOptions): Promise<GetAwsStorageExternalIdResult>
function getAwsStorageExternalIdOutput(opts?: InvokeOutputOptions): Output<GetAwsStorageExternalIdResult>def get_aws_storage_external_id(opts: Optional[InvokeOptions] = None) -> GetAwsStorageExternalIdResult
def get_aws_storage_external_id_output(opts: Optional[InvokeOutputOptions] = None) -> Output[GetAwsStorageExternalIdResult]func GetAwsStorageExternalId(ctx *Context, opts ...InvokeOption) (*GetAwsStorageExternalIdResult, error)
func GetAwsStorageExternalIdOutput(ctx *Context, opts ...InvokeOption) GetAwsStorageExternalIdResultOutput> Note: This function is named GetAwsStorageExternalId in the Go SDK.
public static class GetAwsStorageExternalId
{
public static Task<GetAwsStorageExternalIdResult> InvokeAsync(InvokeOptions? opts = null)
public static Output<GetAwsStorageExternalIdResult> Invoke(InvokeOptions? opts = null)
public static Output<GetAwsStorageExternalIdResult> Invoke(InvokeOutputOptions opts)
}public static CompletableFuture<GetAwsStorageExternalIdResult> getAwsStorageExternalId(InvokeOptions options)
public static Output<GetAwsStorageExternalIdResult> getAwsStorageExternalId(InvokeOptions options)
public static Output<GetAwsStorageExternalIdResult> getAwsStorageExternalId(InvokeOutputOptions options)
fn::invoke:
function: html-css-to-image:getAwsStorageExternalId
arguments:
# arguments dictionarydata "html-css-to-image_get_aws_storage_external_id" "name" {
# arguments
}getAwsStorageExternalId Result
The following output properties are available:
- External
Id string - Writer
Role stringArn
- External
Id string - Writer
Role stringArn
- external_
id string - writer_
role_ stringarn
- external
Id String - writer
Role StringArn
- external
Id string - writer
Role stringArn
- external_
id str - writer_
role_ strarn
- external
Id String - writer
Role StringArn
Package Details
- Repository
- html-css-to-image htmlcsstoimage/pulumi-html-css-to-image
- License
- MIT
- Notes
- This Pulumi package is based on the
html-css-to-imageTerraform Provider.
HTML/CSS to Imagepublished on Tuesday, Sep 29, 2026 by htmlcsstoimage