-
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.
feat - Upgrade OpenSearch to 1.3 (#13)
* opensearch_1_3
- Loading branch information
1 parent
cbbac5c
commit c2f9aa2
Showing
4 changed files
with
9 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,21 +9,12 @@ source .env/bin/activate | |
# Load dependency for lambda functions | ||
.env/bin/python -m pip install --target CWMetricsToOpenSearch/ -r CWMetricsToOpenSearch/requirements.txt | ||
|
||
# create the key pair | ||
# Set region to deploy the stack | ||
region_default="us-east-1" | ||
echo -e | ||
read -p "Please enter your region to bootstrap the env [$region_default]: " region | ||
read -p "Please enter your region to deploy the stack [$region_default]: " region | ||
region="${region:-$region_default}" | ||
aws configure set default.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 amazon_opensearch_monitoring.pem | ||
# move key_pair to .ssh | ||
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/amazon_opensearch_monitoring.pem | ||
|
||
# Add e-mail for the notification | ||
email_default="[email protected]" | ||
|
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
aws-cdk-lib>=2.12.0 | ||
aws-cdk-lib>=2.35.0 | ||
constructs>=10.0.0 | ||
boto3 |