-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run linter and fix deprecation messages
- Loading branch information
Gabriel Martinez
committed
Nov 2, 2022
1 parent
d2d8b27
commit a9a7ac7
Showing
9 changed files
with
85 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
terraform { | ||
required_providers { | ||
aws = { | ||
source = "hashicorp/aws" | ||
version = ">= 3.50" | ||
} | ||
} | ||
required_version = ">= 0.14" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
%{if cloudwatch_logs_enabled~} | ||
|
||
# Install CloudWatch Agent | ||
curl -sL "https://url.access.barracuda.com/config-ec2-cloudwatch-logs" | bash -s -- \ | ||
-l "${aws_cloudwatch_log_group}" \ | ||
-r "${aws_region}" | ||
%{endif~} | ||
|
||
# Install CloudGen Access Proxy | ||
curl -sL "https://url.access.barracuda.com/proxy-linux" | bash -s -- \ | ||
-u \ | ||
%{if !ssm_parameter_store~} | ||
-e "DISABLE_AWS_SSM=1" \ | ||
%{endif~} | ||
%{if redis_enabled~} | ||
-r "${redis_primary_endpoint_address}" \ | ||
-s "${redis_port}" \ | ||
%{endif~} | ||
-p "${cloudgen_access_proxy_public_port}" \ | ||
-l "${cloudgen_access_proxy_level}" \ | ||
-e "FYDE_PREFIX=cga_proxy_${random_string_prefix_result}_" | ||
|
||
# Harden instance and reboot | ||
curl -sL "https://url.access.barracuda.com/harden-linux" | bash -s -- | ||
shutdown -r now |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters