Resource nexus_script

Use this resource to create and execute a custom script.

Example Usage

resource "nexus_script" "repo_pypi_internal" {
  name    = "create-repo-pypi-internal"
  type    = "groovy"
  content = "repository.createPyPiHosted('pypi-internal')"
}

Schema

Required

Optional

Read-Only

Import is supported using the following syntax:

# import using the name of script
terraform import nexus_script.repo_pypi_internal create-repo-pypi-internal