-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
52 changed files
with
306 additions
and
274 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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 |
---|---|---|
|
@@ -5,30 +5,30 @@ python3 -m venv .env | |
# Install into the virtual environment | ||
source .env/bin/activate | ||
# download requirements | ||
.env/bin/python -m pip install -r requirements.txt | ||
.env/bin/python -m pip install -r requirements.txt --use-deprecated=legacy-resolver | ||
# Load dependency for lambda functions | ||
.env/bin/python -m pip install --target monitoring-py/ -r monitoring-py/requirements.txt | ||
.env/bin/python -m pip install --target CWMetricsToOpenSearch/ -r CWMetricsToOpenSearch/requirements.txt | ||
|
||
# create the key pair | ||
region_default="us-west-2" | ||
echo -e | ||
read -p "Please enter your region to bootstrap the env [$region_default]: " region | ||
region="${region:-$region_default}" | ||
|
||
aws ec2 create-key-pair --key-name aes_cdk_monitoring --query 'KeyMaterial' --output text > aes_cdk_monitoring.pem --region $region | ||
aws ec2 create-key-pair --key-name amazon_opensearch_monitoring --query 'KeyMaterial' --output text > amazon_opensearch_monitoring.pem --region $region | ||
# update key_pair permissions | ||
chmod 400 aes_cdk_monitoring.pem | ||
chmod 400 amazon_opensearch_monitoring.pem | ||
# move key_pair to .ssh | ||
mv -f aes_cdk_monitoring.pem $HOME/.ssh/aes_cdk_monitoring.pem | ||
mv -f amazon_opensearch_monitoring.pem $HOME/.ssh/amazon_opensearch_monitoring.pem | ||
# start the ssh agent | ||
eval `ssh-agent -s` | ||
# add your key to keychain | ||
ssh-add -k ~/.ssh/aes_cdk_monitoring.pem | ||
ssh-add -k ~/.ssh/amazon_opensearch_monitoring.pem | ||
|
||
# Add e-mail for the notification | ||
email_default="[email protected]" | ||
echo -e | ||
read -p "Please enter an e-mail for alert [$email_default]: " email | ||
email="${email:-$email_default}" | ||
sed -i -e 's/[email protected]/'$email'/g' monitoring_cdk/monitoring_cdk_stack.py | ||
sed -i -e 's/[email protected]/'$email'/g' opensearch/opensearch_monitor_stack.py | ||
|
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
File renamed without changes.
Oops, something went wrong.