Code Monkey home page Code Monkey logo

terraform-provider-bitbucket's Introduction

Terraform Provider: Bitbucket Cloud

This is a Terraform provider for managing resources within a Bitbucket Cloud account.

Getting Started

As this provider is published to the public Terraform Registry, you can install it like so (for Terraform 0.14+):

provider "bitbucket" {
  username = "myUsername"
  password = "myPassword"
}

terraform {
  required_providers {
    bitbucket = {
      source  = "zahiar/bitbucket"
    }
  }
}

For more detailed instructions and documentation on the resources and data sources supported, please go to Terraform Registry.

Maintenance

This provider is maintained during free time, so if you are interested in helping to develop this further, you are more than welcome to submit a pull request or raise a ticket if you'd prefer.

Development

Requirements

If you do wish to help develop this, you will need the following installed:

Building

Simply run make build, and it will compile and create a binary, as well as print-out instructions on how to configure Terraform to use this locally built provider.

$ make build

Testing

Unit Tests

$ make test

Acceptance Tests

This will require you to specify the following environment variables, as these tests will provision actual resources in your account, and it will tear them down afterwards to ensure it leaves your account clean.

You will also require a UUID of another account that is a member of your workspace in order for the bitbucket_user_permission tests to run, as Bitbucket's API will reject the account owner's UUID.

  • BITBUCKET_USERNAME - Username of the account to run the tests against
  • BITBUCKET_PASSWORD - Password of the account to run the tests against
  • BITBUCKET_MEMBER_ACCOUNT_UUID - Account UUID of the member who is part of your account

NOTE: if a test fails, it may leave dangling resources in your account so please bear this in mind.

If you have two-factor authentication enabled, then be sure to set up an app password and use that instead.

$ BITBUCKET_USERNAME=myUsername BITBUCKET_PASSWORD=myPassword BITBUCKET_MEMBER_ACCOUNT_UUID=myMemberUUID make testacc

Documentation

Every data source or resource added must have an accompanying docs page (see docs directory for examples).

Docs are written using Markdown, and you can use this page to preview what your docs will look like when rendered.

terraform-provider-bitbucket's People

Contributors

zahiar avatar dependabot[bot] avatar soult avatar jamess-lucass avatar blima-medicallyhome avatar raypettersen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.