LogoLogo
  • Welcome to Firefly Documentation
  • Introduction
    • What is Firefly?
    • Who is Firefly for?
    • Why use Firefly?
    • Terminology (Glossary)
  • Key Features
    • Infrastructure-as-Code Automation
    • Cloud Asset Inventory
    • Drift Detection & Remediation
    • Policy-as-Code for Compliance & Governance
    • Cost Visibility & Optimization
    • AI Assistant
    • ChatOps Integration
  • Getting Started
    • Account Setup & Onboarding
    • Connecting Cloud Accounts
    • UI Walkthrough & Navigation
    • First Steps in Firefly
  • Detailed Guides
    • Dashboard Overview
    • Cloud Asset Inventory
      • Remediating Drifts
      • Deleting Assets
      • Creating IaC-Ignore Rules
      • Creating Exclude-Drift Rules
    • Policy & Governance
      • Creating Policy-as-Code Governance Rules
      • Remediating Policy Violations
    • Workflows & Guardrails
      • Creating Workflows
      • Creating Guardrail Rules
    • Codification
    • Self-Service
    • IaC Explorer
    • Event Center
    • Backup and Disaster Recovery
    • Notifications
    • User Management
    • SSO Configuration
  • Integrations
    • Integrations Overview
    • Integrating Data Sources
      • AWS
      • Azure
      • Google Cloud
      • Kubernetes
      • Akamai
      • Datadog
      • New Relic
      • Okta
      • GitHub
      • Cloudflare
      • NS1
      • PagerDuty
      • MongoDB Atlas
      • HashiCorp Vault
    • Integrating IaC Remote State
      • Terraform Cloud
      • Google Cloud Storage
      • env0
      • HashiCorp Consul
      • Firefly States Redactor
    • Integrating Version Control
      • GitHub
      • GitLab
      • Azure DevOps
      • CodeCommit
      • Bitbucket
    • Integrating Notifications
      • Slack
      • Microsoft Teams
      • PagerDuty
      • Opsgenie
      • Torq
      • Webex
      • Google Chat
      • Webhook
    • Integrating Project Management
      • Jira
      • ServiceNow
    • Integrating Workflows with CI/CD
    • Integrating Backstage
    • Integrating MCP
  • Use Cases & Best Practices
    • Cloud Governance & Visibility
    • Cost Optimization Strategies
    • Compliance and Security Best Practices
    • Infrastructure Automation & Self-Service
    • Best Practices and Implementation Tips
  • Analytics & Reporting
    • Analytics Dashboard Overview
    • Using Analytics for Improvement
    • Exporting and Sharing Reports
    • Analytics Security and Privacy
  • Code Snippets & Examples
    • Terraform Snippet for an AWS EC2 Instance (Codified via Firefly)
    • Example Rego Policy (OPA) for a Custom Rule
    • GitHub Actions Workflow YAML for Firefly Integration
    • JSON Output Example: Exporting Inventory
  • Troubleshooting & FAQs
    • Common Issues and Solutions
    • FAQs
  • General Information
    • Firefly API
      • Authentication
      • Inventory
      • Codification
      • Workflows
      • Self-Service
      • Policy & Governance
      • IaC Explorer
      • Event Center
      • Backup & Disaster Recovery
      • Notifications
      • Integrations
      • Identity & Access Management
    • Security & Compliance
    • Pricing Tiers & Add-ons
    • Contacting Support
Powered by GitBook
On this page
  • Overview
  • Prerequisites
  • Setup Procedure
  • Integrate Bitbucket Cloud
  • Integrate Bitbucket Data Center
  • Features Enabled
  • Best Practices
  • Troubleshooting

Was this helpful?

  1. Integrations
  2. Integrating Version Control

Bitbucket

Overview

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

  1. Log in to your Bitbucket account

  2. Select Settings > Personal Bitbucket settings

  3. In the left pane, select App passwords

  4. Select Create app password

  5. Enter a Label and add the following scopes:

    • repositories:read

    • repositories:write

    • pullrequest:write

    • pullrequest:read

    • account:read

  6. Select Create and copy the password

  7. In Firefly, select Settings > Integrations > + Add new > Bitbucket

  8. Enter the required information and paste the app password into the App Password box

  9. Select Next

Integrate Bitbucket Data Center

  1. Log in to your Bitbucket Data Center account

  2. From the top-right corner, select Settings > Personal Bitbucket settings > App passwords > Create app password

  3. Enter a Label and add the following scopes:

    • repositories:read

    • repositories:write

    • pullrequest:write

    • pullrequest:read

    • account:read

  4. Select Create and copy the password

  5. In Firefly, select Settings > Integrations > + Add new > Bitbucket

  6. Enter the domain for your Bitbucket Data Center instance and paste the app password into the App Password box

  7. Select Next

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

Best Practices

  • Consider creating a dedicated Bitbucket user or bot account for Firefly to make tracking its contributions easier

  • Ensure the app password has appropriate permissions to create Pull Requests

  • Regularly review Pull Requests created by Firefly

  • For Bitbucket Data Center, ensure the domain URL is correct

Troubleshooting

  1. For authentication issues:

    • Verify Bitbucket credentials and permissions

    • Check if the app password has expired or been revoked

    • Ensure the app password has the correct scopes

  2. For repository access issues:

    • Verify the integration has access to the required repositories

    • Check workspace permissions if applicable

    • Review Firefly integration logs

PreviousCodeCommitNextIntegrating Notifications

Last updated 1 month ago

Was this helpful?