Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lgallard/terraform-aws-codecommit
Terraform module to create AWS CodeCommit repositories. AWS CodeCommit is a fully-managed source control service that hosts secure Git-based repositories.
https://github.com/lgallard/terraform-aws-codecommit
aws aws-codecommit codecommit git terraform terraform-module
Last synced: 19 days ago
JSON representation
Terraform module to create AWS CodeCommit repositories. AWS CodeCommit is a fully-managed source control service that hosts secure Git-based repositories.
- Host: GitHub
- URL: https://github.com/lgallard/terraform-aws-codecommit
- Owner: lgallard
- License: apache-2.0
- Created: 2020-05-19T20:23:49.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-28T22:44:03.000Z (over 4 years ago)
- Last Synced: 2024-12-08T00:45:02.353Z (25 days ago)
- Topics: aws, aws-codecommit, codecommit, git, terraform, terraform-module
- Language: HCL
- Homepage:
- Size: 10.7 KB
- Stars: 3
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
![Terraform](https://lgallardo.com/images/terraform.jpg)
# terraform-aws-codecommit
Terraform module to create [AWS CodeCommit](https://aws.amazon.com/codecommit/) repositories. AWS CodeCommit is a fully-managed source control service that hosts secure Git-based repositories.## Usage
You can use this module to create an AWS CodeCommit repositories using few parameters (simple example) or define in detail every aspect of the repositories (complete example).
Check the [examples](examples/) for the **simple** and the **complete** snippets.
### Simple example
This example creates an CodeCommit repository using few parameters
```
module "codecommit" {source = "lgallard/codecommit/aws"
repository_name = "codecommit-repo"
description = "Git repositoriy in AWS"tags = {
Owner = "DevOps team"
Environment = "dev"
Terraform = true
}}
```
### Complete example
In this example the repository is defined in detailed.```
module "codecommit" {source = "lgallard/codecommit/aws"
repository_name = "codecommit-repo"
description = "Git repositoriy in AWS"
default_branch = "master"triggers = [
{
name = "all"
events = ["all"]
destination_arn = "arn:aws:lambda:us-east-1:12345678910:function:lambda-all"
},
{
name = "updateReference"
events = ["updateReference"]
destination_arn = "arn:aws:lambda:us-east-1:12345678910:function:lambda-updateReference"
},
]tags = {
Owner = "DevOps team"
Environment = "dev"
Terraform = true
}}
```
## Providers
| Name | Version |
|------|---------|
| aws | n/a |## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| default\_branch | The default branch of the repository. The branch specified here needs to exist. | `string` | n/a | yes |
| description | The description of the repository. This needs to be less than 1000 characters | `string` | n/a | yes |
| repository\_name | The name for the repository. This needs to be less than 100 characters. | `string` | n/a | yes |
| tags | A mapping of tags to assign to the resource. | `map(string)` | `{}` | no |
| triggers | List of triggers | `any` | `[]` | 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. |
| name | The name for the repository |
| repository\_id | The ID of the repository |## Known issues
During the developing of the module I found an issue when trying to create several triggers for a repository. This is an issue reported inr the AWS provider at [Multiple codecommit triggers](https://github.com/terraform-providers/terraform-provider-aws/issues/3209)