Skip to content

Latest commit

 

History

History
101 lines (77 loc) · 1.65 KB

aws_route53_zone_association.md

File metadata and controls

101 lines (77 loc) · 1.65 KB

aws_route53_zone_association

back

Index

Terraform

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

top

Example Usage

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

  # vpc_id - (required) is a type of string
  vpc_id = null
  # vpc_region - (optional) is a type of string
  vpc_region = null
  # zone_id - (required) is a type of string
  zone_id = null
}

top

Variables

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

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

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

top

Resource

resource "aws_route53_zone_association" "this" {
  # vpc_id - (required) is a type of string
  vpc_id = var.vpc_id
  # vpc_region - (optional) is a type of string
  vpc_region = var.vpc_region
  # zone_id - (required) is a type of string
  zone_id = var.zone_id
}

top

Outputs

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

output "owning_account" {
  description = "returns a string"
  value       = aws_route53_zone_association.this.owning_account
}

output "vpc_region" {
  description = "returns a string"
  value       = aws_route53_zone_association.this.vpc_region
}

output "this" {
  value = aws_route53_zone_association.this
}

top