yegor86 / spa-aws

Single Page Application using AWS Lambda
8 stars 2 forks source link

Permission denied #1

Open LucianYoga opened 7 years ago

LucianYoga commented 7 years ago

Hello when I run terraform apply I get an error related to conf/cognito/cognito.sh: Permission denied Happens regards of whether I run on mac or vagrant env.. the error is coming from provisioner ``` "local-exec" { command = "${path.module}/conf/cognito/cognito.sh create_pool ${var.identity_pool_name} ${path.module}/conf/cognito" }


Any idea why I'm running into this issue. 

Thanks
yegor86 commented 7 years ago

Hi, Have you tried to create an Administrative user for AWS ? Please have a look at https://github.com/yegor86/spa-aws/blob/master/docs/CreateAWSUser.md

LucianYoga commented 7 years ago

Hi Thanks for getting back and really appreciate it. . I did get pass that error and everything works great! I do have follow up question. It only creates Authenticated role but not both (Unauthenticated and Authenticated role). Do you have a solution for that?

yegor86 commented 7 years ago

Sorry for the late comment. Two roles - Unauthenticated role and Authenticated role - should be automatically created when creating a new Identity Pool. You can go to AWS console to check whether they are in place