Commit 6d84e864 authored by Hitendra Nishar's avatar Hitendra Nishar
Browse files

Squashed commit of the following

commit 85a99528 
Author: Hitendra Nishar <hnishar@amazon.com> 
Date: Tue Feb 23 2021 14:36:05 GMT-0500 (Eastern Standard Time) 

    Updating scripts/aws/Token.py to check for AWS_COGNITO_REGION used in multi-region pipeline for secondary region integ testing
parent 107dce46
......@@ -19,7 +19,12 @@ import jwt;
class AwsToken(object):
def get_aws_id_token(self):
client = boto3.client('cognito-idp', region_name=os.environ["AWS_REGION"])
if os.environ["AWS_COGNITO_REGION"]:
region = os.environ["AWS_COGNITO_REGION"]
else:
region = os.environ["AWS_REGION"]
client = boto3.client('cognito-idp', region_name=region)
userAuth = client.initiate_auth(
ClientId= os.environ['AWS_COGNITO_CLIENT_ID'],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment