Skip to content

Commit 187b2e7

Browse files
author
sourabh
committed
updating script for new modules.
1 parent 37fa957 commit 187b2e7

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

terratest/run_tests.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,16 @@ function set_env_variables()
8383
echo "Setting env variables for ${type}"
8484
export BUCKET_NAME_US_WEST_1="cf-templates-1qpf3unpuo1hw-us-west-1"
8585
export COLLECTOR_ID="<COLLECTOR_ID>"
86+
elif [[ "${type}" = *"kinesisfirehoseformetrics"* ]];then
87+
echo "Setting env variables for ${type}"
88+
export BUCKET_NAME_US_WEST_1="cf-templates-1qpf3unpuo1hw-us-west-1"
89+
export BUCKET_NAME_AP_SOUTH_1="cf-templates-1qpf3unpuo1hw-ap-south-1"
90+
export IAM_ROLE="arn:aws:iam::<AWS_ACCOUNT_ID>:role/TestingTerraformCloudTrailRole"
91+
export COLLECTOR_ID="<COLLECTOR_ID>"
92+
elif [[ "${type}" = *"rootcause"* ]];then
93+
echo "Setting env variables for ${type}"
94+
export IAM_ROLE="arn:aws:iam::<AWS_ACCOUNT_ID>:role/TestingTerraformCloudTrailRole"
95+
export COLLECTOR_ID="<COLLECTOR_ID>"
8696
else
8797
echo "No Matching Module found to set up env variables."
8898
fi
@@ -99,7 +109,7 @@ export AWS_PROFILE=
99109

100110
# 2. Deccalring the modules. Please update the array, if some new modules are added.
101111
declare -a modules=(
102-
"aws/cloudtrail" "aws/elb" "aws/cloudwatchmetrics" "aws/kinesisfirehoseforlogs" "sumologic"
112+
"aws/cloudtrail" "aws/elb" "aws/cloudwatchmetrics" "aws/kinesisfirehoseforlogs" "aws/kinesisfirehoseformetrics" "aws/rootcause" "sumologic"
103113
)
104114

105115
# 3. Iterating through the module array to run unit and integration test cases.

0 commit comments

Comments
 (0)