Skip to content

Commit

Permalink
chore: Retrieved REST_API_ID from an SSM Parameter. Disabled conginto…
Browse files Browse the repository at this point in the history
… user pool creation for now.

Refer to task unity-sds/unity-cs#124
  • Loading branch information
ramesh-maddegoda committed Oct 11, 2022
1 parent ec65e9a commit 7bc391c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
12 changes: 6 additions & 6 deletions terraform-api-gateway-cognito/main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module "api_gateway" {
source = "./terraform-modules/api-gateway"
}
module "api_gateway" {
source = "./terraform-modules/api-gateway"
}

module "cognito_user_pool" {
source = "./terraform-modules/cognito-user-pool"
}
#module "cognito_user_pool" {
# source = "./terraform-modules/cognito-user-pool"
#}
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@

AWS_DEFAULT_REGION='us-west-2'
NAMESPACE='unity-sps'
COUNTER=3
COUNTER=1
STAGE='dev'
REST_API_ID='<ADD REST API ID>'

REST_API_ID=$(aws ssm get-parameter --name "/unity/dev/${NAMESPACE}-${COUNTER}/api-gateway/rest-api-id" --query Parameter.Value --region "${AWS_DEFAULT_REGION}")
temp="${REST_API_ID%\"}"
REST_API_ID="${temp#\"}"

ADES_WPST_URL=$(aws ssm get-parameter --name "/unity/dev/${NAMESPACE}-${COUNTER}/api-gateway/stage-variables/ades-wpst-url" --query Parameter.Value --region "${AWS_DEFAULT_REGION}")
GRQ_ES_URL=$(aws ssm get-parameter --name "/unity/dev/${NAMESPACE}-${COUNTER}/api-gateway/stage-variables/grq-es-url" --query Parameter.Value --region "${AWS_DEFAULT_REGION}")
Expand Down

0 comments on commit 7bc391c

Please sign in to comment.