Bitbucket
Firefly integrates with Bitbucket to connect your infrastructure code repositories with your cloud resources. This integration enables powerful features like tracing cloud resources back to their defining code ("Jump to Code") and automatically creating Pull Requests for newly codified resources and drift remediation.
Prerequisites
A Bitbucket account with access to your infrastructure repositories.
Appropriate permissions to create App passwords.
Repositories containing Terraform, CloudFormation, or other IaC files you want to connect to Firefly.
Setup Procedure
Integrate Bitbucket Cloud
Log in to your Bitbucket account.
Click Settings > Personal Bitbucket settings.
In the left pane, click App passwords.
Click Create app password.
Enter a Label and add the following scopes:
repositories:read
repositories:write
pullrequest:write
pullrequest:read
account:read
Click Create and copy the password.
In Firefly, click Settings > Integrations.
Click Add New > Bitbucket.
Enter the required information and paste the app password into the App Password box.
Click Next.
Click Done.
Integrate Bitbucket Data Center
Log in to your Bitbucket Data Center account.
From the top-right corner, click Settings > Personal Bitbucket settings > App passwords > Create app password.
Enter a Label and add the following scopes:
repositories:read
repositories:write
pullrequest:write
pullrequest:read
account:read
Click Create and copy the password.
In Firefly, click Settings > Integrations.
Click Add New > Bitbucket.
Enter the domain for your Bitbucket Data Center instance and paste the app password into the App Password box.
Click Next.
Click Done.
Features Enabled
Jump to Code: Trace resources in your cloud inventory back to the Bitbucket file and specific line that defines them.
Automated Pull Requests: When Firefly codifies an unmanaged resource, it can commit the new infrastructure code as a Pull Request.
IaC Tracking: Firefly maintains awareness of which resources are defined in code and which are not.
Drift Remediation: Firefly can detect drift between the code and the actual resources and create a Pull Request to fix it.
Last updated
Was this helpful?