Skip to content

Latest commit

 

History

History
143 lines (112 loc) · 2.63 KB

lacework_integration_aws_cfg.md

File metadata and controls

143 lines (112 loc) · 2.63 KB

lacework_integration_aws_cfg

back

Index

Terraform

terraform {
  required_providers {
    lacework = ">= 0.3.1"
  }
}

top

Example Usage

module "lacework_integration_aws_cfg" {
  source = "./modules/lacework/r/lacework_integration_aws_cfg"

  # enabled - (optional) is a type of bool
  enabled = null
  # name - (required) is a type of string
  name = null
  # retries - (optional) is a type of number
  retries = null

  credentials = [{
    external_id = null
    role_arn    = null
  }]
}

top

Variables

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

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

variable "retries" {
  description = "(optional) - The number of attempts to create the external integration."
  type        = number
  default     = null
}

variable "credentials" {
  description = "nested block: NestingList, min items: 1, max items: 1"
  type = set(object(
    {
      external_id = string
      role_arn    = string
    }
  ))
}

top

Resource

resource "lacework_integration_aws_cfg" "this" {
  # enabled - (optional) is a type of bool
  enabled = var.enabled
  # name - (required) is a type of string
  name = var.name
  # retries - (optional) is a type of number
  retries = var.retries

  dynamic "credentials" {
    for_each = var.credentials
    content {
      # external_id - (required) is a type of string
      external_id = credentials.value["external_id"]
      # role_arn - (required) is a type of string
      role_arn = credentials.value["role_arn"]
    }
  }

}

top

Outputs

output "created_or_updated_by" {
  description = "returns a string"
  value       = lacework_integration_aws_cfg.this.created_or_updated_by
}

output "created_or_updated_time" {
  description = "returns a string"
  value       = lacework_integration_aws_cfg.this.created_or_updated_time
}

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

output "intg_guid" {
  description = "returns a string"
  value       = lacework_integration_aws_cfg.this.intg_guid
}

output "org_level" {
  description = "returns a bool"
  value       = lacework_integration_aws_cfg.this.org_level
}

output "type_name" {
  description = "returns a string"
  value       = lacework_integration_aws_cfg.this.type_name
}

output "this" {
  value = lacework_integration_aws_cfg.this
}

top