Skip to content

Latest commit

 

History

History
118 lines (93 loc) · 2.22 KB

aws_ssoadmin_account_assignment.md

File metadata and controls

118 lines (93 loc) · 2.22 KB

aws_ssoadmin_account_assignment

back

Index

Terraform

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

top

Example Usage

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

  # instance_arn - (required) is a type of string
  instance_arn = null
  # permission_set_arn - (required) is a type of string
  permission_set_arn = null
  # principal_id - (required) is a type of string
  principal_id = null
  # principal_type - (required) is a type of string
  principal_type = null
  # target_id - (required) is a type of string
  target_id = null
  # target_type - (optional) is a type of string
  target_type = null
}

top

Variables

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

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

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

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

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

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

top

Resource

resource "aws_ssoadmin_account_assignment" "this" {
  # instance_arn - (required) is a type of string
  instance_arn = var.instance_arn
  # permission_set_arn - (required) is a type of string
  permission_set_arn = var.permission_set_arn
  # principal_id - (required) is a type of string
  principal_id = var.principal_id
  # principal_type - (required) is a type of string
  principal_type = var.principal_type
  # target_id - (required) is a type of string
  target_id = var.target_id
  # target_type - (optional) is a type of string
  target_type = var.target_type
}

top

Outputs

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

output "this" {
  value = aws_ssoadmin_account_assignment.this
}

top