diff --git a/examples/aws_cloudtrail.tf b/examples/aws_cloudtrail.tf index e4f9c40..d6c53ea 100644 --- a/examples/aws_cloudtrail.tf +++ b/examples/aws_cloudtrail.tf @@ -18,7 +18,7 @@ module "sumologic-cloudtrail-apps" { "description" = "This source is ceated a.", "bucket_details" = { "create_bucket" = false, - "bucket_name" = "sumologic-aws-observability-templates", + "bucket_name" = "YourS3BucketName", "path_expression" = "AWSLogs/*/CloudTrail/us-east-1/*", "force_destroy_bucket" = true }, diff --git a/terratest/run_tests.sh b/terratest/run_tests.sh index 2986624..73b11fd 100644 --- a/terratest/run_tests.sh +++ b/terratest/run_tests.sh @@ -59,7 +59,7 @@ function set_env_variables() local type="$1" if [[ "${type}" = *"cloudtrail"* ]];then echo "Setting env variables for ${type}" - export BUCKET_NAME="sumologic-aws-observability-templates" + export BUCKET_NAME="" export PATH_EXPRESSION="AWSLogs//CloudTrail/us-east-1/*" export IAM_ROLE="arn:aws:iam:::role/TestingTerraformCloudTrailRole" export TOPIC_ARN="arn:aws:sns:us-east-1::dynamodb" @@ -72,21 +72,21 @@ function set_env_variables() export COLLECTOR_ID="" elif [[ "${type}" = *"elb"* ]];then echo "Setting env variables for ${type}" - export BUCKET_NAME_US_WEST_1="cf-templates-1qpf3unpuo1hw-us-west-1" + export BUCKET_NAME_US_WEST_1="-us-west-1" export PATH_EXPRESSION_US_WEST_1="*AWSLogs//elasticloadbalancing/us-west-1/*" export TOPIC_ARN_US_WEST_1="arn:aws:sns:us-west-1::dynamodb" - export BUCKET_NAME_AP_SOUTH_1="cf-templates-1qpf3unpuo1hw-ap-south-1" + export BUCKET_NAME_AP_SOUTH_1="-ap-south-1" export PATH_EXPRESSION_AP_SOUTH_1="*AWSLogs//elasticloadbalancing/ap-south-1/*" export IAM_ROLE="arn:aws:iam:::role/TestingTerraformCloudTrailRole" export COLLECTOR_ID="" elif [[ "${type}" = *"kinesisfirehoseforlogs"* ]];then echo "Setting env variables for ${type}" - export BUCKET_NAME_US_WEST_1="cf-templates-1qpf3unpuo1hw-us-west-1" + export BUCKET_NAME_US_WEST_1="-us-west-1" export COLLECTOR_ID="" elif [[ "${type}" = *"kinesisfirehoseformetrics"* ]];then echo "Setting env variables for ${type}" - export BUCKET_NAME_US_WEST_1="cf-templates-1qpf3unpuo1hw-us-west-1" - export BUCKET_NAME_AP_SOUTH_1="cf-templates-1qpf3unpuo1hw-ap-south-1" + export BUCKET_NAME_US_WEST_1="-us-west-1" + export BUCKET_NAME_AP_SOUTH_1="-ap-south-1" export IAM_ROLE="arn:aws:iam:::role/TestingTerraformCloudTrailRole" export COLLECTOR_ID="" elif [[ "${type}" = *"rootcause"* ]];then