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.
- Resource: harbor_configuration
- Resource: harbor_config_system
- Resource: harbor_config_email
- Resource: harbor_garbage_collection
- Resource: harbor_purge_audit_log
- Resource: harbor_immutable_tag_rule
- Resource: harbor_interrogation_services
- Resource: harbor_label
- Resource: harbor_project_member_group
- Resource: harbor_project_member_user
- Resource: harbor_project
- Resource: harbor_registry
- Resource: harbor_replication
- Resource: harbor_retention_policy
- Resource: harbor_robot_account
- Resource: harbor_tasks
- Resource: harbor_user
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
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