back
terraform {
required_providers {
aws = ">= 3.35.0"
}
}
top
module "aws_arn" {
source = "./modules/aws/d/aws_arn"
# arn - (required) is a type of string
arn = null
}
top
variable "arn" {
description = "(required)"
type = string
}
top
data "aws_arn" "this" {
# arn - (required) is a type of string
arn = var.arn
}
top
output "account" {
description = "returns a string"
value = data.aws_arn.this.account
}
output "id" {
description = "returns a string"
value = data.aws_arn.this.id
}
output "partition" {
description = "returns a string"
value = data.aws_arn.this.partition
}
output "region" {
description = "returns a string"
value = data.aws_arn.this.region
}
output "resource" {
description = "returns a string"
value = data.aws_arn.this.resource
}
output "service" {
description = "returns a string"
value = data.aws_arn.this.service
}
output "this" {
value = aws_arn.this
}
top