bitbucket

Important

As of Flowpipe 1.0.0, credential has been renamed to connection. The bitbucket credential resource is deprecated and will be removed in a future version of Flowpipe. Use the bitbucket connection instead.

The bitbucket credential can be used to access Bitbucket resources.

credential "bitbucket" "bb_creds" {
username = "user_name"
password = "P@ss123!"
base_url = "https://api.bitbucket.org/2.0"
}

Arguments

NameTypeRequired?Description
usernameStringOptionalBitbucket username
passwordStringOptionalBitbucket app password
base_urlStringOptionalBase URL of your Bitbucket Server

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

Attributes (Read-Only)

AttributeTypeDescription
envMapA map of the resolved credential-related environment variables (BITBUCKET_USERNAME, BITBUCKET_PASSWORD, BITBUCKET_API_BASE_URL)

Default Credential

The bitbucket credential type includes an implicit, default credential (credential.bitbucket.default) that will be configured using the environment variables BITBUCKET_USERNAME, BITBUCKET_PASSWORD, and BITBUCKET_API_BASE_URL.

credential "bitbucket" "default" {
username = env("BITBUCKET_USERNAME")
password = env("BITBUCKET_PASSWORD")
base_url = env("BITBUCKET_API_BASE_URL")
}