Skip to content

Commit

Permalink
Updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Barry Lagerweij committed Jun 6, 2020
1 parent 039527b commit 3bf350a
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 0 deletions.
34 changes: 34 additions & 0 deletions website/docs/r/deployment.html.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
layout: "bitbucket"
page_title: "Bitbucket: bitbucket_deployment"
sidebar_current: "docs-bitbucket-resource-deployment"
description: |-
Manage your pipelines repository deployment environments
---


# bitbucket\_deployment

This resource allows you to setup pipelines deployment environments.

# Example Usage

```hcl
resource "bitbucket_repository" "monorepo" {
owner = "gob"
name = "illusions"
pipelines_enabled = true
}
resource "bitbucket_deployment" "test" {
repository = bitbucket_repository.monorepo.id
name = "test"
stage = "Test"
}
```

# Argument Reference

* `name` - (Required) The name of the deployment environment
* `stage` - (Required) The stage (Test, Staging, Production)
* `repository` - (Required) The repository ID to which you want to assign this deployment environment to
* `uuid` - (Computed) The UUID of the deployment environment
41 changes: 41 additions & 0 deletions website/docs/r/deployment_variable.html.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
layout: "bitbucket"
page_title: "Bitbucket: bitbucket_deployment_variable"
sidebar_current: "docs-bitbucket-resource-deployment-variable"
description: |-
Manage variables for your pipelines deployment environments
---


# bitbucket\_deployment\_variable

This resource allows you to configure deployment variables.

# Example Usage

```hcl
resource "bitbucket_repository" "monorepo" {
owner = "gob"
name = "illusions"
pipelines_enabled = true
}
resource "bitbucket_deployment" "test" {
repository = bitbucket_repository.monorepo.id
name = "test"
stage = "Test"
}
resource "bitbucket_deployment_variable" "country" {
deployment = bitbucket_deployment.test.id
name = "COUNTRY"
value = "Kenya"
secured = false
}
```

# Argument Reference

* `deployment` - (Required) The deployment ID you want to assign this variable to.
* `name` - (Required) The name of the variable
* `value` - (Required) The stage (Test, Staging, Production)
* `secured` - (Optional) Boolean indicating whether the variable contains sensitive data
* `uuid` - (Computed) The UUID of the variable

0 comments on commit 3bf350a

Please sign in to comment.