From 42bc57e7a21341c3f6990fa545d9b89be1a6e9df Mon Sep 17 00:00:00 2001 From: Tanner Lewis Date: Wed, 13 Sep 2023 13:25:23 -0400 Subject: [PATCH] Minor tag bug fix and README update for devDeploy Signed-off-by: Tanner Lewis --- deployment/copilot/README.md | 4 ++-- deployment/copilot/devDeploy.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deployment/copilot/README.md b/deployment/copilot/README.md index 06ec1a82d..7f792eebe 100644 --- a/deployment/copilot/README.md +++ b/deployment/copilot/README.md @@ -64,9 +64,9 @@ cd ../cdk/opensearch-service-migration export CDK_DEPLOYMENT_STAGE=dev2 cdk deploy "*" --c domainName="test-domain-2-7" --c engineVersion="OS_2.7" --c dataNodeCount=2 --c vpcEnabled=true --c vpcId="$MIGRATION_VPC_ID" --c vpcSecurityGroupIds="[\"$MIGRATION_DOMAIN_SG_ID\"]" --c availabilityZoneCount=2 --c openAccessPolicyEnabled=true --c domainRemovalPolicy="DESTROY" --c migrationAssistanceEnabled=false --c enableDemoAdmin=true --require-approval never --concurrency 3 ``` -To launch an additional Replayer service that directs traffic to this new Domain, run a command like the one below. In this command, `id` is a unique label for the Replayer service, and `target-uri` is the endpoint of the target cluster where traffic will be replayed. You can obtain this endpoint either from the CDK command output mentioned earlier or from the AWS Console: +To launch an additional Replayer service that directs traffic to this new Domain, run a command like the one below. In this command, `id` is a unique label for the Replayer service, `target-uri` is the endpoint of the target cluster where traffic will be replayed, and `extra-args` is specifying a Replayer Auth header option to use. You can obtain the below endpoint and secret name (or secret ARN) from either from the CDK command output mentioned earlier or from the AWS Console: ```shell -./createReplayer.sh --id test-os-2-7 --target-uri https://vpc-aos-domain-123.us-east-1.es.amazonaws.com:443 +./createReplayer.sh --id test-os-2-7 --target-uri https://vpc-aos-domain-123.us-east-1.es.amazonaws.com:443 --extra-args "--auth-header-user-and-secret admin demo-user-secret-dev2-us-east-1" --tags migration_deployment=0.1.0 ``` More options can be found with: ```shell diff --git a/deployment/copilot/devDeploy.sh b/deployment/copilot/devDeploy.sh index 06fe718aa..881dbd2cc 100755 --- a/deployment/copilot/devDeploy.sh +++ b/deployment/copilot/devDeploy.sh @@ -183,7 +183,7 @@ copilot svc deploy -a $COPILOT_APP_NAME --name traffic-comparator-jupyter --env copilot svc deploy -a $COPILOT_APP_NAME --name traffic-comparator --env $COPILOT_DEPLOYMENT_STAGE --resource-tags $TAGS copilot svc deploy -a $COPILOT_APP_NAME --name capture-proxy-es --env $COPILOT_DEPLOYMENT_STAGE --resource-tags $TAGS copilot svc deploy -a $COPILOT_APP_NAME --name migration-console --env $COPILOT_DEPLOYMENT_STAGE --resource-tags $TAGS -./createReplayer.sh --id default --target-uri "https://${MIGRATION_DOMAIN_ENDPOINT}:443" --extra-args "--tags=${TAGS} --auth-header-user-and-secret ${MIGRATION_DOMAIN_USER_AND_SECRET_ARN} | nc traffic-comparator 9220" "${REPLAYER_SKIP_INIT_ARG}" +./createReplayer.sh --id default --target-uri "https://${MIGRATION_DOMAIN_ENDPOINT}:443" --tags ${TAGS} --extra-args "--auth-header-user-and-secret ${MIGRATION_DOMAIN_USER_AND_SECRET_ARN} | nc traffic-comparator 9220" "${REPLAYER_SKIP_INIT_ARG}" # Output deployment time