Skip to content

Latest commit

 

History

History
92 lines (69 loc) · 1.37 KB

aws_ec2_carrier_gateway.md

File metadata and controls

92 lines (69 loc) · 1.37 KB

aws_ec2_carrier_gateway

back

Index

Terraform

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

top

Example Usage

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

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

top

Variables

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

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

top

Resource

resource "aws_ec2_carrier_gateway" "this" {
  # tags - (optional) is a type of map of string
  tags = var.tags
  # vpc_id - (required) is a type of string
  vpc_id = var.vpc_id
}

top

Outputs

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

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

output "owner_id" {
  description = "returns a string"
  value       = aws_ec2_carrier_gateway.this.owner_id
}

output "this" {
  value = aws_ec2_carrier_gateway.this
}

top