Function: arn_build

Builds an ARN from its constituent parts.

See the AWS documentation for additional information on Amazon Resource Names.

Example Usage

# result: arn:aws:iam::444455556666:role/example
output "example" {
  value = provider::aws::arn_build("aws", "iam", "", "444455556666", "role/example")
}

Signature

arn_build(partition string, service string, region string, account_id string, resource string) string

Arguments

  1. partition (String) Partition in which the resource is located. Supported partitions include aws, aws-cn, and aws-us-gov.
  2. service (String) Service namespace.
  3. region (String) Region code.
  4. account_id (String) AWS account identifier.
  5. resource (String) Resource section, typically composed of a resource type and identifier.