forked from a0s/terraform-provider-bitbucket
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Barry Lagerweij
committed
Jun 6, 2020
1 parent
039527b
commit 3bf350a
Showing
2 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |