amazon-archives / aws-cognito-angular-quickstart

An Angular(v5)-based QuickStart single-page app utilizing Amazon Cognito, S3, and DynamoDB (Serverless architecture)
https://cognito.budilov.com
Apache License 2.0
689 stars 304 forks source link

Using sa-east-1 for deployment #118

Closed onecreativestudio closed 6 years ago

onecreativestudio commented 6 years ago

Hello, I'm trying to deploy this sample app to sa-east-1 but keep the calls to cognito to us-east-1. I realize that Cognito is not available in sa-east-1, but every other service needed it. So my goal is to use everything except cognito in the desired region.

I modified the variable REGION=sa-east-1. But hard-coded the region entries on createCognitoResources() as us-east-1. However after trying to deploy several times, it gets stuck on

> INFO: Created CloudWatch alarm named: awseb-e-jcdmmjucyx-stack-AWSEBCloudwatchAlarmHigh-8EDPAVGAXDEG
> INFO: Created CloudWatch alarm named: awseb-e-jcdmmjucyx-stack-AWSEBCloudwatchAlarmLow-VT7SE7PXMD7X
ERROR: The operation timed out. The state of the environment is unknown. The timeout can be set using the --timeout option.

My guess this is related to IAM permissions, so I'll research that route. Nevertheless, I was hoping to find a simple way to accomplish this, or learn if it's not possible altogether from someone experienced.

Thank you in advance.