Skip to content

Latest commit

 

History

History
47 lines (42 loc) · 1.96 KB

index.md

File metadata and controls

47 lines (42 loc) · 1.96 KB

Harbor Provider

The Harbor provider is used to configure an instance of Harbor. The provider needs to be configured with the proper credentials before it can be used.

Resources

Authentication

provider "harbor" {
  url      = "https://harbor.aceme_corpartion.com"
  username = "insert_admin_username_here"
  password = "insert_password_here"
}

Alternatively, these environment variables can be used to set the provider config values:

HARBOR_URL
HARBOR_USERNAME
HARBOR_PASSWORD
HARBOR_IGNORE_CERT

Argument Reference

The following arguments are supported:

  • url - (Required) The url of harbor
  • username - (Required) The username to be used to access harbor
  • password - (Required) The password to be used to access harbor
  • insecure - (Optional) Choose to ignore certificate errors
  • api_version - (Optional) Choose which version of the api you would like to use 1 or 2. Default is 2