Builds an ARN from its constituent parts.
See the AWS documentation for additional information on Amazon Resource Names.
# result: arn:aws:iam::444455556666:role/example
output "example" {
value = provider::aws::arn_build("aws", "iam", "", "444455556666", "role/example")
}
arn_build(partition string, service string, region string, account_id string, resource string) string
partition
(String) Partition in which the resource is located. Supported partitions include aws
, aws-cn
, and aws-us-gov
.service
(String) Service namespace.region
(String) Region code.account_id
(String) AWS account identifier.resource
(String) Resource section, typically composed of a resource type and identifier.