From cae394ebf1cd3bacd7417d0a073f1e9f58a8c35d Mon Sep 17 00:00:00 2001 From: Ben Partridge Date: Mon, 1 Mar 2021 13:52:01 +1100 Subject: [PATCH] DCD-1157: Fix incorrect conditional for using IAM request signing for authenticating with elasticsearch in bitbucket config --- roles/bitbucket_config/defaults/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/bitbucket_config/defaults/main.yaml b/roles/bitbucket_config/defaults/main.yaml index 9cdc3c7..90487ad 100644 --- a/roles/bitbucket_config/defaults/main.yaml +++ b/roles/bitbucket_config/defaults/main.yaml @@ -6,4 +6,4 @@ atl_bitbucket_properties: "{{ atl_bitbucket_properties_raw.split(' ') | reject(' atl_elasticsearch_username: "{{ lookup('env', 'ATL_ELASTICSEARCH_USERNAME') }}" atl_elasticsearch_password: "{{ lookup('env', 'ATL_ELASTICSEARCH_PASSWORD') }}" -elasticsearch_should_auth_with_iam: "{{ atl_elasticsearch_username is not defined and atl_aws_region is defined }}" \ No newline at end of file +elasticsearch_should_auth_with_iam: "{{ (atl_elasticsearch_username == '' or atl_elasticsearch_password == '') and atl_aws_region is defined }}" \ No newline at end of file