Skip to content

geekcell/terraform-aws-codeartifact

Repository files navigation

Geek Cell GmbH

Code Quality

License GitHub release (latest tag) Release Validate Lint

Security

Infrastructure Tests

Cloud

Infrastructure Tests Infrastructure Tests Infrastructure Tests Infrastructure Tests Infrastructure Tests

Container

Infrastructure Tests Infrastructure Tests Infrastructure Tests Infrastructure Tests

Data protection

Infrastructure Tests Infrastructure Tests Infrastructure Tests Infrastructure Tests Infrastructure Tests Infrastructure Tests Infrastructure Tests

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 Description of the AWS CodeArtifact repository. string n/a yes
name Name of the AWS CodeArtifact repository. string n/a yes
name_prefix Name prefix of the AWS CodeArtifact repository. string n/a yes
tags Tags to add to the Security Group. map(any) {} no

Outputs

Name Description
domain_arn The ARN of the Domain.
domain_asset_size_bytes The total size of all assets in the domain.
domain_created_time A timestamp that represents the date and time the domain was created.
domain_id The ARN of the Domain.
domain_owner The AWS account ID that owns the domain.
domain_repository_count The number of repositories in the domain.
repository_administrator_account The account number of the AWS account that manages the repository.
repository_arn The ARN of the repository.
repository_id The ARN of the repository.

Providers

Name Version
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

module "example" {
  source = "../../"


  description = "Our world-changing application"
  name        = "php-package"
  name_prefix = "geekcell"
}