Skip to content

Commit

Permalink
Updating scripts.
Browse files Browse the repository at this point in the history
Signed-off-by: jzonthemtn <jeff.zemerick@mtnfog.com>
  • Loading branch information
jzonthemtn committed Dec 19, 2024
1 parent 1d1c63f commit bb2519c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
10 changes: 10 additions & 0 deletions osi/delete-indexes.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash -e

OPENSEARCH_ENDPOINT="search-osi-ubi-domain-pjju5yl7neorgz4jcsqhq5o7fq.us-east-1.es.amazonaws.com"

awscurl \
"https://${OPENSEARCH_ENDPOINT}/ubi_events,ubi_queries" \
-X DELETE \
--region us-east-1 \
--service es \
--profile mtnfog
4 changes: 0 additions & 4 deletions osi/get-indexed-events.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#!/bin/bash -e

#curl -X GET https://search-osi-ubi-domain-pjju5yl7neorgz4jcsqhq5o7fq.us-east-1.es.amazonaws.com/_cat/indices | jq

#curl -X GET https://search-osi-ubi-domain-pjju5yl7neorgz4jcsqhq5o7fq.us-east-1.es.amazonaws.com/ubi_events/_search | jq

OPENSEARCH_ENDPOINT="search-osi-ubi-domain-pjju5yl7neorgz4jcsqhq5o7fq.us-east-1.es.amazonaws.com"

awscurl \
Expand Down
1 change: 0 additions & 1 deletion osi/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ resource "aws_iam_role" "ubi" {
{
Action = "sts:AssumeRole"
Effect = "Allow"
Sid = ""
Principal = {
Service = "osis-pipelines.amazonaws.com"
}
Expand Down
2 changes: 1 addition & 1 deletion osi/send-event.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ awscurl \
--profile mtnfog \
-X POST \
-H "Content-Type: application/json" \
-d '[{"type": "event", "action_name": "click", "query_id": "00112233-4455-6677-8899-aabbccddeeff", "event_attributes": {"position": {"ordinal": 1}, "object": {"object_id": "1234", "object_id_field": "ean", "user_id": "abc"}}}]' \
-d '[{"type": "event", "action_name": "click", "query_id": "99999999-4455-6677-8899-aabbccddeeff", "event_attributes": {"position": {"ordinal": 1}, "object": {"object_id": "1234", "object_id_field": "ean", "user_id": "abc"}}}]' \
https://${OSIS_PIPELINE_ENDPOINT_URL}/ubi

0 comments on commit bb2519c

Please sign in to comment.