Skip to content

Latest commit

 

History

History
163 lines (127 loc) · 3.19 KB

aws_efs_file_system.md

File metadata and controls

163 lines (127 loc) · 3.19 KB

aws_efs_file_system

back

Index

Terraform

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

top

Example Usage

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

  # creation_token - (optional) is a type of string
  creation_token = null
  # file_system_id - (optional) is a type of string
  file_system_id = null
  # tags - (optional) is a type of map of string
  tags = {}
}

top

Variables

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

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

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

top

Datasource

data "aws_efs_file_system" "this" {
  # creation_token - (optional) is a type of string
  creation_token = var.creation_token
  # file_system_id - (optional) is a type of string
  file_system_id = var.file_system_id
  # tags - (optional) is a type of map of string
  tags = var.tags
}

top

Outputs

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

output "availability_zone_id" {
  description = "returns a string"
  value       = data.aws_efs_file_system.this.availability_zone_id
}

output "availability_zone_name" {
  description = "returns a string"
  value       = data.aws_efs_file_system.this.availability_zone_name
}

output "creation_token" {
  description = "returns a string"
  value       = data.aws_efs_file_system.this.creation_token
}

output "dns_name" {
  description = "returns a string"
  value       = data.aws_efs_file_system.this.dns_name
}

output "encrypted" {
  description = "returns a bool"
  value       = data.aws_efs_file_system.this.encrypted
}

output "file_system_id" {
  description = "returns a string"
  value       = data.aws_efs_file_system.this.file_system_id
}

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

output "kms_key_id" {
  description = "returns a string"
  value       = data.aws_efs_file_system.this.kms_key_id
}

output "lifecycle_policy" {
  description = "returns a list of object"
  value       = data.aws_efs_file_system.this.lifecycle_policy
}

output "performance_mode" {
  description = "returns a string"
  value       = data.aws_efs_file_system.this.performance_mode
}

output "provisioned_throughput_in_mibps" {
  description = "returns a number"
  value       = data.aws_efs_file_system.this.provisioned_throughput_in_mibps
}

output "size_in_bytes" {
  description = "returns a number"
  value       = data.aws_efs_file_system.this.size_in_bytes
}

output "tags" {
  description = "returns a map of string"
  value       = data.aws_efs_file_system.this.tags
}

output "throughput_mode" {
  description = "returns a string"
  value       = data.aws_efs_file_system.this.throughput_mode
}

output "this" {
  value = aws_efs_file_system.this
}

top