1. Registry
  2. Packages
  3. HTML/CSS to Image
  4. API Docs
  5. getAwsStorageExternalId
Viewing docs for HTML/CSS to Image v0.2.0
published on Tuesday, Sep 29, 2026 by htmlcsstoimage
html-css-to-image logo HTML/CSS to Image
Viewing docs for HTML/CSS to Image v0.2.0
published 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.

    OutputMeaning
    externalIdOrganization-specific external ID for the AWS role trust policy.
    writerRoleArnHCTI 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 dictionary
    data "html-css-to-image_get_aws_storage_external_id" "name" {
        # arguments
    }

    getAwsStorageExternalId Result

    The following output properties are available:

    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-image Terraform Provider.
    html-css-to-image logo HTML/CSS to Image
    Viewing docs for HTML/CSS to Image v0.2.0
    published on Tuesday, Sep 29, 2026 by htmlcsstoimage

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial