Skip to content

Latest commit

 

History

History
117 lines (90 loc) · 2.07 KB

aws_iam_service_linked_role.md

File metadata and controls

117 lines (90 loc) · 2.07 KB

aws_iam_service_linked_role

back

Index

Terraform

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

top

Example Usage

module "aws_iam_service_linked_role" {
  source = "./modules/aws/r/aws_iam_service_linked_role"

  # aws_service_name - (required) is a type of string
  aws_service_name = null
  # custom_suffix - (optional) is a type of string
  custom_suffix = null
  # description - (optional) is a type of string
  description = null
}

top

Variables

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

variable "custom_suffix" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "description" {
  description = "(optional)"
  type        = string
  default     = null
}

top

Resource

resource "aws_iam_service_linked_role" "this" {
  # aws_service_name - (required) is a type of string
  aws_service_name = var.aws_service_name
  # custom_suffix - (optional) is a type of string
  custom_suffix = var.custom_suffix
  # description - (optional) is a type of string
  description = var.description
}

top

Outputs

output "arn" {
  description = "returns a string"
  value       = aws_iam_service_linked_role.this.arn
}

output "create_date" {
  description = "returns a string"
  value       = aws_iam_service_linked_role.this.create_date
}

output "id" {
  description = "returns a string"
  value       = aws_iam_service_linked_role.this.id
}

output "name" {
  description = "returns a string"
  value       = aws_iam_service_linked_role.this.name
}

output "path" {
  description = "returns a string"
  value       = aws_iam_service_linked_role.this.path
}

output "unique_id" {
  description = "returns a string"
  value       = aws_iam_service_linked_role.this.unique_id
}

output "this" {
  value = aws_iam_service_linked_role.this
}

top