Skip to content

Commit

Permalink
add example for usernamepassword account variable usage
Browse files Browse the repository at this point in the history
  • Loading branch information
kevjt committed May 3, 2024
1 parent 3f52272 commit 969ebf5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/resources/variable.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ resource "octopusdeploy_variable" "google_cloud_account_variable" {
value = "Accounts-123"
}
# Create a UsernamePassword account variable
resource "octopusdeploy_variable" "usernamepassword_account_variable" {
owner_id = "Projects-123"
type = "UsernamePasswordAccount"
name = "UsernamePasswordVariable"
value = octopusdeploy_username_password_account.account_user_pass.id
}
# create a Certificate variable
resource "octopusdeploy_variable" "certificate_variable" {
owner_id = "Projects-123"
Expand Down
8 changes: 8 additions & 0 deletions examples/resources/octopusdeploy_variable/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ resource "octopusdeploy_variable" "google_cloud_account_variable" {
value = "Accounts-123"
}

# Create a UsernamePassword account variable
resource "octopusdeploy_variable" "usernamepassword_account_variable" {
owner_id = "Projects-123"
type = "UsernamePasswordAccount"
name = "UsernamePasswordVariable"
value = octopusdeploy_username_password_account.account_user_pass.id
}

# create a Certificate variable
resource "octopusdeploy_variable" "certificate_variable" {
owner_id = "Projects-123"
Expand Down

0 comments on commit 969ebf5

Please sign in to comment.