Skip to content

Commit

Permalink
Merge pull request #20 from goci-io/initial
Browse files Browse the repository at this point in the history
allow to set git username
  • Loading branch information
etwillbefine authored Sep 15, 2020
2 parents 7d729e5 + 8ee0eb0 commit feb9ade
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module "atlantis_server" {
vc_type = var.git_type
organization = var.git_organization
encrypted_token = var.git_token
encrypted_user = "goci-atlantis-bot"
encrypted_user = var.git_app_username
encrypted_secret = random_password.secret.result
server_role_trusted_arns = [format("arn:aws:iam::%s:role/%s", var.aws_identity_account_id, var.aws_trusted_role_name)]
server_role_policy_statements = var.aws_server_role_policies
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ variable "git_organization" {
description = "Organization or Group to allow Webhooks from and create Resources in"
}

variable "git_app_username" {
type = string
default = "goci-atlantis-bot"
description = "Git User/App Name used for Authentication. Required for BitBucket App Passwords"
}

variable "repositories" {
type = list(object({ name = string, create = bool, private = bool, branch_protection = bool }))
description = "List of Repositories and additional Repository Configuration"
Expand Down

0 comments on commit feb9ade

Please sign in to comment.