AWS CodeArtifact Domain Permissions Policy

This page shows how to write Terraform and CloudFormation for CodeArtifact Domain Permissions Policy and write them securely.

aws_codeartifact_domain_permissions_policy (Terraform)

The Domain Permissions Policy in CodeArtifact can be configured in Terraform with the resource name aws_codeartifact_domain_permissions_policy. The following sections describe 1 example of how to use the resource and its parameters.

Example Usage from GitHub

codeartifact_domain_permissions_policy.tf#L4
resource "aws_codeartifact_domain_permissions_policy" "codeartifact_domain_permissions_policy" {
  count = var.enable_codeartifact_domain_permissions_policy ? 1 : 0

  domain          = var.codeartifact_domain_permissions_policy_domain != "" ? var.codeartifact_domain_permissions_policy_domain : (var.enable_codeartifact_domain ? aws_codeartifact_domain.codeartifact_domain[0].domain : null)
  policy_document = var.codeartifact_domain_permissions_policy_document

Parameters

Explanation in Terraform Registry

Provides a CodeArtifact Domains Permissions Policy Resource.

AWS::CodeArtifact::Domain (CloudFormation)

The Domain in CodeArtifact can be configured in CloudFormation with the resource name AWS::CodeArtifact::Domain. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

Parameters

Explanation in CloudFormation Registry

The AWS::CodeArtifact::Domain resource creates an AWS CodeArtifact domain. CodeArtifact domains make it easier to manage multiple repositories across an organization. You can use a domain to apply permissions across many repositories owned by different AWS accounts. For more information about domains, see the Domain concepts information in the CodeArtifact User Guide. For more information about the CreateDomain API, see CreateDomain in the CodeArtifact API Reference.

Frequently asked questions

What is AWS CodeArtifact Domain Permissions Policy?

AWS CodeArtifact Domain Permissions Policy is a resource for CodeArtifact of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.

Where can I find the example code for the AWS CodeArtifact Domain Permissions Policy?

For Terraform, the SebastianUA/terraform source code example is useful. See the Terraform Example section for further details.