Resource nexus_repository_npm_hosted

Use this resource to create a hosted Npm repository.

Example Usage

resource "nexus_repository_npm_hosted" "npm" {
  name = "npm"
}

resource "nexus_repository_npm_hosted" "npm1" {
  name   = "npm1"
  online = true

  cleanup {
    policy_names = ["policy"]
  }

  storage {
    blob_store_name                = "default"
    strict_content_type_validation = true
    write_policy                   = "ALLOW"
  }
}

Schema

Required

Optional

Read-Only

Nested Schema for storage

Required:

Optional:

Nested Schema for cleanup

Optional:

Nested Schema for component

Required:

Import is supported using the following syntax:

# import using the name of repository
terraform import nexus_repository_npm_hosted.npm npm