Skip to content

Latest commit

 

History

History
122 lines (95 loc) · 2.1 KB

aws_cloudfront_public_key.md

File metadata and controls

122 lines (95 loc) · 2.1 KB

aws_cloudfront_public_key

back

Index

Terraform

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

top

Example Usage

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

  # comment - (optional) is a type of string
  comment = null
  # encoded_key - (required) is a type of string
  encoded_key = null
  # name - (optional) is a type of string
  name = null
  # name_prefix - (optional) is a type of string
  name_prefix = null
}

top

Variables

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

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

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

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

top

Resource

resource "aws_cloudfront_public_key" "this" {
  # comment - (optional) is a type of string
  comment = var.comment
  # encoded_key - (required) is a type of string
  encoded_key = var.encoded_key
  # name - (optional) is a type of string
  name = var.name
  # name_prefix - (optional) is a type of string
  name_prefix = var.name_prefix
}

top

Outputs

output "caller_reference" {
  description = "returns a string"
  value       = aws_cloudfront_public_key.this.caller_reference
}

output "etag" {
  description = "returns a string"
  value       = aws_cloudfront_public_key.this.etag
}

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

output "name" {
  description = "returns a string"
  value       = aws_cloudfront_public_key.this.name
}

output "name_prefix" {
  description = "returns a string"
  value       = aws_cloudfront_public_key.this.name_prefix
}

output "this" {
  value = aws_cloudfront_public_key.this
}

top