Skip to content

Latest commit

 

History

History
122 lines (95 loc) · 2.2 KB

aws_codecommit_repository.md

File metadata and controls

122 lines (95 loc) · 2.2 KB

aws_codecommit_repository

back

Index

Terraform

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

top

Example Usage

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

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

top

Variables

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

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

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

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

top

Resource

resource "aws_codecommit_repository" "this" {
  # default_branch - (optional) is a type of string
  default_branch = var.default_branch
  # description - (optional) is a type of string
  description = var.description
  # repository_name - (required) is a type of string
  repository_name = var.repository_name
  # tags - (optional) is a type of map of string
  tags = var.tags
}

top

Outputs

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

output "clone_url_http" {
  description = "returns a string"
  value       = aws_codecommit_repository.this.clone_url_http
}

output "clone_url_ssh" {
  description = "returns a string"
  value       = aws_codecommit_repository.this.clone_url_ssh
}

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

output "repository_id" {
  description = "returns a string"
  value       = aws_codecommit_repository.this.repository_id
}

output "this" {
  value = aws_codecommit_repository.this
}

top