From 8520503eb514c76900a0ff658ed09743974c2214 Mon Sep 17 00:00:00 2001 From: jzonthemtn Date: Thu, 19 Dec 2024 11:54:53 -0500 Subject: [PATCH] Removing profile name. Signed-off-by: jzonthemtn --- osi/create-plugin-package.sh | 9 +++++---- osi/delete-indexes.sh | 5 ++++- osi/get-indexed-events.sh | 7 +++++-- osi/get-indexed-queries.sh | 7 +++++-- osi/main.tf | 2 +- osi/send-event.sh | 3 ++- osi/send-query.sh | 3 ++- 7 files changed, 24 insertions(+), 12 deletions(-) diff --git a/osi/create-plugin-package.sh b/osi/create-plugin-package.sh index 39872fe..6584a14 100755 --- a/osi/create-plugin-package.sh +++ b/osi/create-plugin-package.sh @@ -8,12 +8,12 @@ FILE_NAME="search-quality-evaluation-plugin-0.0.1.zip" wget -O ${FILE_NAME} https://github.com/o19s/opensearch-search-quality-evaluation/releases/download/0.0.1/${FILE_NAME} aws s3 cp ${FILE_NAME} s3://ubi-queries-events-sink/${FILE_NAME} \ - --profile mtnfog \ + --profile TODO_PUT_YOUR_AWS_PROFILE_NAME_HERE \ --region us-east-1 aws opensearch create-package \ --region us-east-1 \ - --profile mtnfog \ + --profile TODO_PUT_YOUR_AWS_PROFILE_NAME_HERE \ --package-name search-eval-framework \ --package-type ZIP-PLUGIN \ --package-source S3BucketName=ubi-queries-events-sink,S3Key=search-quality-evaluation-plugin-0.0.1.zip \ @@ -21,7 +21,7 @@ aws opensearch create-package \ # aws opensearch describe-packages \ # --region us-east-1 \ -# --profile mtnfog \ +# --profile TODO_PUT_YOUR_AWS_PROFILE_NAME_HERE \ # --filters '[{"Name": "PackageType","Value": ["ZIP-PLUGIN"]}, {"Name": "PackageName","Value": ["search-eval-framework"]}]' # when done, grab the package id and put into command: @@ -31,10 +31,11 @@ aws opensearch create-package \ # aws opensearch associate-package \ # --region us-east-1 \ # --domain-name osi-ubi-domain \ +# --profile TODO_PUT_YOUR_AWS_PROFILE_NAME_HERE # --package-id ${PACKAGE_ID} # aws opensearch list-packages-for-domain # --domain-name osi-ubi-domain \ # --region $REGION \ -# --profile mtnfog \ No newline at end of file +# --profile TODO_PUT_YOUR_AWS_PROFILE_NAME_HERE \ No newline at end of file diff --git a/osi/delete-indexes.sh b/osi/delete-indexes.sh index 54aea3c..22fcda3 100755 --- a/osi/delete-indexes.sh +++ b/osi/delete-indexes.sh @@ -1,5 +1,8 @@ #!/bin/bash -e +# pip install awscurl + +# Get from the Terraform output or the AWS Console OPENSEARCH_ENDPOINT="search-osi-ubi-domain-pjju5yl7neorgz4jcsqhq5o7fq.us-east-1.es.amazonaws.com" awscurl \ @@ -7,4 +10,4 @@ awscurl \ -X DELETE \ --region us-east-1 \ --service es \ - --profile mtnfog + --profile TODO_PUT_YOUR_AWS_PROFILE_NAME_HERE diff --git a/osi/get-indexed-events.sh b/osi/get-indexed-events.sh index a4b7443..b969710 100755 --- a/osi/get-indexed-events.sh +++ b/osi/get-indexed-events.sh @@ -1,5 +1,8 @@ #!/bin/bash -e +# pip install awscurl + +# Get from the Terraform output or the AWS Console OPENSEARCH_ENDPOINT="search-osi-ubi-domain-pjju5yl7neorgz4jcsqhq5o7fq.us-east-1.es.amazonaws.com" awscurl \ @@ -7,11 +10,11 @@ awscurl \ -X GET \ --region us-east-1 \ --service es \ - --profile mtnfog + --profile TODO_PUT_YOUR_AWS_PROFILE_NAME_HERE awscurl \ "https://${OPENSEARCH_ENDPOINT}/ubi_events/_search" \ -X GET \ --region us-east-1 \ --service es \ - --profile mtnfog | jq + --profile TODO_PUT_YOUR_AWS_PROFILE_NAME_HERE | jq diff --git a/osi/get-indexed-queries.sh b/osi/get-indexed-queries.sh index 56a10d2..2fd198a 100755 --- a/osi/get-indexed-queries.sh +++ b/osi/get-indexed-queries.sh @@ -1,5 +1,8 @@ #!/bin/bash -e +# pip install awscurl + +# Get from the Terraform output or the AWS Console OPENSEARCH_ENDPOINT="search-osi-ubi-domain-pjju5yl7neorgz4jcsqhq5o7fq.us-east-1.es.amazonaws.com" awscurl \ @@ -7,11 +10,11 @@ awscurl \ -X GET \ --region us-east-1 \ --service es \ - --profile mtnfog + --profile TODO_PUT_YOUR_AWS_PROFILE_NAME_HERE awscurl \ "https://${OPENSEARCH_ENDPOINT}/ubi_queries/_search" \ -X GET \ --region us-east-1 \ --service es \ - --profile mtnfog | jq + --profile TODO_PUT_YOUR_AWS_PROFILE_NAME_HERE | jq diff --git a/osi/main.tf b/osi/main.tf index 3a46c88..023e981 100644 --- a/osi/main.tf +++ b/osi/main.tf @@ -11,7 +11,7 @@ terraform { provider "aws" { region = "us-east-1" - profile = "mtnfog" + profile = "TODO_PUT_YOUR_AWS_PROFILE_NAME_HERE" } data "aws_region" "current" {} diff --git a/osi/send-event.sh b/osi/send-event.sh index 150d40b..b7a1823 100755 --- a/osi/send-event.sh +++ b/osi/send-event.sh @@ -2,12 +2,13 @@ # pip install awscurl +# Get from the Terraform output or the AWS Console OSIS_PIPELINE_ENDPOINT_URL="ubi-pipeline-xjmot6taz7mmcv76a36mlscgg4.us-east-1.osis.amazonaws.com" awscurl \ --service osis \ --region us-east-1 \ - --profile mtnfog \ + --profile TODO_PUT_YOUR_AWS_PROFILE_NAME_HERE \ -X POST \ -H "Content-Type: application/json" \ -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"}}}]' \ diff --git a/osi/send-query.sh b/osi/send-query.sh index a7cdd52..9b41884 100755 --- a/osi/send-query.sh +++ b/osi/send-query.sh @@ -2,12 +2,13 @@ # pip install awscurl +# Get from the Terraform output or the AWS Console OSIS_PIPELINE_ENDPOINT_URL="ubi-pipeline-xjmot6taz7mmcv76a36mlscgg4.us-east-1.osis.amazonaws.com" awscurl \ --service osis \ --region us-east-1 \ - --profile mtnfog \ + --profile TODO_PUT_YOUR_AWS_PROFILE_NAME_HERE \ -X POST \ -H "Content-Type: application/json" \ -d '[{"type": "query", "user_query": "computer", "query_id": "00112233-4455-6677-8899-aabbccddeeff"}]' \