Skip to content

Latest commit

 

History

History
97 lines (72 loc) · 1.32 KB

aws_arn.md

File metadata and controls

97 lines (72 loc) · 1.32 KB

aws_arn

back

Index

Terraform

terraform {
  required_providers {
    aws = ">= 3.35.0"
  }
}

top

Example Usage

module "aws_arn" {
  source = "./modules/aws/d/aws_arn"

  # arn - (required) is a type of string
  arn = null
}

top

Variables

variable "arn" {
  description = "(required)"
  type        = string
}

top

Datasource

data "aws_arn" "this" {
  # arn - (required) is a type of string
  arn = var.arn
}

top

Outputs

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