-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: jzonthemtn <jeff.zemerick@mtnfog.com>
- Loading branch information
1 parent
b141fba
commit a24144a
Showing
9 changed files
with
54 additions
and
40 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 |
---|---|---|
@@ -1,13 +1,12 @@ | ||
#!/bin/bash -e | ||
|
||
# pip install awscurl | ||
. stck.properties | ||
|
||
# Get from the Terraform output or the AWS Console | ||
OPENSEARCH_ENDPOINT="search-osi-ubi-domain-pjju5yl7neorgz4jcsqhq5o7fq.us-east-1.es.amazonaws.com" | ||
OPENSEARCH_ENDPOINT=`terraform output "opensearch_domain_endpoint" | jq -r .` | ||
|
||
awscurl \ | ||
"https://${OPENSEARCH_ENDPOINT}/ubi_events,ubi_queries" \ | ||
-X DELETE \ | ||
--region us-east-1 \ | ||
--region ${AWS_REGION} \ | ||
--service es \ | ||
--profile TODO_PUT_YOUR_AWS_PROFILE_NAME_HERE | ||
--profile ${AWS_PROFILE} |
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,20 +1,19 @@ | ||
#!/bin/bash -e | ||
|
||
# pip install awscurl | ||
. stack.properties | ||
|
||
# Get from the Terraform output or the AWS Console | ||
OPENSEARCH_ENDPOINT="search-osi-ubi-domain-pjju5yl7neorgz4jcsqhq5o7fq.us-east-1.es.amazonaws.com" | ||
OPENSEARCH_ENDPOINT=`terraform output "opensearch_domain_endpoint" | jq -r .` | ||
|
||
awscurl \ | ||
"https://${OPENSEARCH_ENDPOINT}/_cat/indices" \ | ||
-X GET \ | ||
--region us-east-1 \ | ||
--region ${AWS_REGION} \ | ||
--service es \ | ||
--profile TODO_PUT_YOUR_AWS_PROFILE_NAME_HERE | ||
--profile ${AWS_PROFILE} | ||
|
||
awscurl \ | ||
"https://${OPENSEARCH_ENDPOINT}/ubi_events/_search" \ | ||
-X GET \ | ||
--region us-east-1 \ | ||
--region ${AWS_REGION} \ | ||
--service es \ | ||
--profile TODO_PUT_YOUR_AWS_PROFILE_NAME_HERE | jq | ||
--profile ${AWS_PROFILE} | jq |
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,20 +1,19 @@ | ||
#!/bin/bash -e | ||
|
||
# pip install awscurl | ||
. stack.properties | ||
|
||
# Get from the Terraform output or the AWS Console | ||
OPENSEARCH_ENDPOINT="search-osi-ubi-domain-pjju5yl7neorgz4jcsqhq5o7fq.us-east-1.es.amazonaws.com" | ||
OPENSEARCH_ENDPOINT=`terraform output "opensearch_domain_endpoint" | jq -r .` | ||
|
||
awscurl \ | ||
"https://${OPENSEARCH_ENDPOINT}/_cat/indices" \ | ||
-X GET \ | ||
--region us-east-1 \ | ||
--region ${AWS_REGION} \ | ||
--service es \ | ||
--profile TODO_PUT_YOUR_AWS_PROFILE_NAME_HERE | ||
--profile ${AWS_PROFILE} | ||
|
||
awscurl \ | ||
"https://${OPENSEARCH_ENDPOINT}/ubi_queries/_search" \ | ||
-X GET \ | ||
--region us-east-1 \ | ||
--region ${AWS_REGION} \ | ||
--service es \ | ||
--profile TODO_PUT_YOUR_AWS_PROFILE_NAME_HERE | jq | ||
--profile ${AWS_PROFILE} | jq |
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 @@ | ||
awscurl==0.36 |
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,5 @@ | ||
# The name of the AWS profile. | ||
AWS_PROFILE=mtnfog | ||
|
||
# The AWS region. | ||
AWS_REGION=us-east-1 |