bitbucket

The bitbucket connection can be used to access Bitbucket resources.

connection "bitbucket" "bb_connection" {
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 connection with no arguments will behave the same as the default connection.

Attributes (Read-Only)

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

Default Connection

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

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