The servicenow credential can be used to access ServiceNow resources.

credential "servicenow" "snow_creds" {
instance_url = ""
username = "john.hill"
password = "fake-p@ss"


instance_urlStringOptionalYour ServiceNow instance URL
usernameStringOptionalServiceNow username
passwordStringOptionalServiceNow app password

All arguments are optional, and a servicenow credential with no arguments will behave the same as the default credential.

Default Credential

The servicenow credential type includes an implicit, default credential (credential.servicenow.default) that will be configured using the environment variables SERVICENOW_INSTANCE_URL, SERVICENOW_USERNAME, and SERVICENOW_PASSWORD.

credential "servicenow" "default" {
instance_url = env("SERVICENOW_INSTANCE_URL")
username = env("SERVICENOW_USERNAME")
password = env("SERVICENOW_PASSWORD")