https://github.com/geekcell/terraform-aws-codeartifact
Terraform module to provision an AWS CodeArtifact.
https://github.com/geekcell/terraform-aws-codeartifact
aws code-artifact terraform terraform-module
Last synced: over 1 year ago
JSON representation
Terraform module to provision an AWS CodeArtifact.
- Host: GitHub
- URL: https://github.com/geekcell/terraform-aws-codeartifact
- Owner: geekcell
- License: apache-2.0
- Created: 2023-01-09T09:59:29.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-28T08:54:34.000Z (about 3 years ago)
- Last Synced: 2025-03-01T18:48:52.091Z (over 1 year ago)
- Topics: aws, code-artifact, terraform, terraform-module
- Language: HCL
- Homepage: https://www.geekcell.io
- Size: 25.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.geekcell.io/)
### Code Quality
[](https://github.com/geekcell/terraform-aws-codeartifact/blob/master/LICENSE)
[](https://github.com/geekcell/terraform-aws-codeartifact/releases)
[](https://github.com/geekcell/terraform-aws-codeartifact/actions/workflows/release.yaml)
[](https://github.com/geekcell/terraform-aws-codeartifact/actions/workflows/validate.yaml)
[](https://github.com/geekcell/terraform-aws-codeartifact/actions/workflows/linter.yaml)
### Security
[](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-codeartifact&benchmark=INFRASTRUCTURE+SECURITY)
#### Cloud
[](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-codeartifact&benchmark=CIS+AWS+V1.2)
[](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-codeartifact&benchmark=CIS+AWS+V1.3)
[](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-codeartifact&benchmark=CIS+AZURE+V1.1)
[](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-codeartifact&benchmark=CIS+AZURE+V1.3)
[](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-codeartifact&benchmark=CIS+GCP+V1.1)
##### Container
[](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-codeartifact&benchmark=CIS+KUBERNETES+V1.6)
[](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-codeartifact&benchmark=CIS+EKS+V1.1)
[](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-codeartifact&benchmark=CIS+GKE+V1.1)
[](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-codeartifact&benchmark=CIS+KUBERNETES+V1.5)
#### Data protection
[](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-codeartifact&benchmark=SOC2)
[](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-codeartifact&benchmark=PCI-DSS+V3.2)
[](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-codeartifact&benchmark=PCI-DSS+V3.2.1)
[](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-codeartifact&benchmark=ISO27001)
[](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-codeartifact&benchmark=NIST-800-53)
[](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-codeartifact&benchmark=HIPAA)
[](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-codeartifact&benchmark=FEDRAMP+%28MODERATE%29)
# Terraform AWS CodeArtifact
Terraform module which creates a CodeArtifact repository. The focus on this module lies
within it's simplicity by providing default values that should make sense for most use cases.
It also makes use of the latest Terraform features like `optional` to provide
minimal required inputs and complexity.
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [description](#input\_description) | Description of the AWS CodeArtifact repository. | `string` | n/a | yes |
| [name](#input\_name) | Name of the AWS CodeArtifact repository. | `string` | n/a | yes |
| [name\_prefix](#input\_name\_prefix) | Name prefix of the AWS CodeArtifact repository. | `string` | n/a | yes |
| [tags](#input\_tags) | Tags to add to the Security Group. | `map(any)` | `{}` | no |
## Outputs
| Name | Description |
|------|-------------|
| [domain\_arn](#output\_domain\_arn) | The ARN of the Domain. |
| [domain\_asset\_size\_bytes](#output\_domain\_asset\_size\_bytes) | The total size of all assets in the domain. |
| [domain\_created\_time](#output\_domain\_created\_time) | A timestamp that represents the date and time the domain was created. |
| [domain\_id](#output\_domain\_id) | The ARN of the Domain. |
| [domain\_owner](#output\_domain\_owner) | The AWS account ID that owns the domain. |
| [domain\_repository\_count](#output\_domain\_repository\_count) | The number of repositories in the domain. |
| [repository\_administrator\_account](#output\_repository\_administrator\_account) | The account number of the AWS account that manages the repository. |
| [repository\_arn](#output\_repository\_arn) | The ARN of the repository. |
| [repository\_id](#output\_repository\_id) | The ARN of the repository. |
## Providers
| Name | Version |
|------|---------|
| [aws](#provider\_aws) | >= 4.36 |
## Resources
- resource.aws_codeartifact_domain.main (main.tf#10)
- resource.aws_codeartifact_repository.main (main.tf#17)
- resource.aws_codeartifact_repository_permissions_policy.main (main.tf#26)
- data source.aws_caller_identity.current (data.tf#1)
- data source.aws_iam_policy_document.main (data.tf#3)
# Examples
### Full
```hcl
module "example" {
source = "../../"
description = "Our world-changing application"
name = "php-package"
name_prefix = "geekcell"
}
```