Skip to content

rackspace-infrastructure-automation/aws-terraform-codecommit

Repository files navigation

aws-terraform-codecommit

This module creates a code commit repository.

Basic Usage

module "codecommit_repo" {
  source = "git@github.com:rackspace-infrastructure-automation/aws-terraform-codecommit//?ref=v0.0.1"
  repository_name = "MyTestRepository"
}

Full working references are available at examples

Terraform 0.12 upgrade

There should be no changes required to move from previous versions of this module to version 0.12.0 or higher.

Module variables

The following module variables changes have occurred:

Deprecations

  • repository_name - marked for deprecation as it no longer meets our style guide standards.

Additions

  • name - introduced as a replacement for repository_name to better align with our style guide standards.

Removals

  • None

Providers

Name Version
aws >= 2.7.0

Inputs

Name Description Type Default Required
default_branch The default branch for the repository string "master" no
description A description of the repository string "" no
enable_trigger_1 Enable trigger #1 for the repository bool false no
enable_trigger_2 Enable trigger #2 for the repository bool false no
enable_trigger_3 Enable trigger #3 for the repository bool false no
enable_trigger_4 Enable trigger #4 for the repository bool false no
name Name of the repository. name supercedes the deprecated repository_name. Either name or repository_name must contain a non-default value. string "" no
repository_name Name of the repository.[Deprecated in favor of name]. It will be removed in future releases. name supercedes the repository_name. Either name or repository_name must contain a non-default value. string "" no
trigger_1_branches The branches that will be included in the trigger configuration. If no branches are specified, the trigger will apply to all branches. list(string) [] no
trigger_1_custom_data Any custom data associated with the trigger that will be included in the information sent to the target of the trigger. string "" no
trigger_1_destination_arn The ARN of the resource that is the target for a trigger. For example, the ARN of a topic in Amazon Simple Notification Service (SNS). string "" no
trigger_1_events The repository events that will cause the trigger to run actions in another service. Event types include: all, updateReference, createReference, deleteReference. list(string) [] no
trigger_1_name Trigger #1 name string "" no
trigger_2_branches The branches that will be included in the trigger configuration. If no branches are specified, the trigger will apply to all branches. list(string) [] no
trigger_2_custom_data Any custom data associated with the trigger that will be included in the information sent to the target of the trigger. string "" no
trigger_2_destination_arn The ARN of the resource that is the target for a trigger. For example, the ARN of a topic in Amazon Simple Notification Service (SNS). string "" no
trigger_2_events The repository events that will cause the trigger to run actions in another service. Event types include: all, updateReference, createReference, deleteReference. list(string) [] no
trigger_2_name Trigger #2 name string "" no
trigger_3_branches The branches that will be included in the trigger configuration. If no branches are specified, the trigger will apply to all branches. list(string) [] no
trigger_3_custom_data Any custom data associated with the trigger that will be included in the information sent to the target of the trigger. string "" no
trigger_3_destination_arn The ARN of the resource that is the target for a trigger. For example, the ARN of a topic in Amazon Simple Notification Service (SNS). string "" no
trigger_3_events The repository events that will cause the trigger to run actions in another service. Event types include: all, updateReference, createReference, deleteReference. list(string) [] no
trigger_3_name Trigger #3 name string "" no
trigger_4_branches The branches that will be included in the trigger configuration. If no branches are specified, the trigger will apply to all branches. list(string) [] no
trigger_4_custom_data Any custom data associated with the trigger that will be included in the information sent to the target of the trigger. string "" no
trigger_4_destination_arn The ARN of the resource that is the target for a trigger. For example, the ARN of a topic in Amazon Simple Notification Service (SNS). string "" no
trigger_4_events The repository events that will cause the trigger to run actions in another service. Event types include: all, updateReference, createReference, deleteReference. list(string) [] no
trigger_4_name Trigger #4 name string "" no

Outputs

Name Description
arn The ARN of the repository
clone_url_http The URL to use for cloning the repository over HTTPS.
clone_url_ssh The URL to use for cloning the repository over SSH.
repository_id The ID of the repository