@@ -21,7 +21,7 @@ data "aws_kms_key" "chamber_kms_key" {
21
21
locals {
22
22
enabled = " ${ var . enabled == " true" ? true : false } "
23
23
atlantis_gh_webhook_secret = " ${ length (var. atlantis_gh_webhook_secret ) > 0 ? var . atlantis_gh_webhook_secret : join (" " , random_string. atlantis_gh_webhook_secret . * . result )} "
24
- atlantis_url = " ${ format (var. atlantis_webhook_format , local. hostname )} "
24
+ atlantis_webhook_url = " ${ format (var. atlantis_webhook_format , local. hostname )} "
25
25
attributes = " ${ concat (list (var. short_name ), var. attributes )} "
26
26
default_hostname = " ${ join (" " , aws_route53_record. default . * . fqdn )} "
27
27
github_oauth_token = " ${ length (join (" " , data. aws_ssm_parameter . atlantis_gh_token . * . value )) > 0 ? join (" " , data. aws_ssm_parameter . atlantis_gh_token . * . value ) : var . github_oauth_token } "
@@ -48,7 +48,7 @@ module "webhooks" {
48
48
source = " git::https://github.com/cloudposse/terraform-github-repository-webhooks.git?ref=tags/0.3.0"
49
49
github_token = " ${ local . github_oauth_token } "
50
50
webhook_secret = " ${ local . atlantis_gh_webhook_secret } "
51
- webhook_url = " ${ local . atlantis_url } "
51
+ webhook_url = " ${ local . atlantis_webhook_url } "
52
52
enabled = " ${ local . enabled } "
53
53
github_organization = " ${ var . repo_owner } "
54
54
github_repositories = [" ${ var . repo_name } " ]
@@ -192,7 +192,7 @@ resource "aws_ssm_parameter" "atlantis_atlantis_url" {
192
192
name = " ${ format (var. chamber_format , var. chamber_service , " atlantis_atlantis_url" )} "
193
193
overwrite = " ${ var . overwrite_ssm_parameter } "
194
194
type = " String"
195
- value = " ${ local . atlantis_url } "
195
+ value = " ${ local . hostname } "
196
196
}
197
197
198
198
resource "aws_ssm_parameter" "atlantis_gh_user" {
0 commit comments