【问题标题】:AWS - IdentityPool not foundAWS - 未找到身份池
【发布时间】:2017-11-05 18:25:49
【问题描述】:

我正在编写一个应用程序来使用 Amazon Web Services (AWS) 实现离线同步功能

ap-southeast-2:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

我已使用此 JSON 为 Auth 和 Non-Auth 用户设置权限

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "mobileanalytics:PutEvents",
                "cognito-sync:*",
                "sdb:*"
            ],
            "Resource": [
                "*"
            ]
        }
    ]
}

我也允许未经身份验证的访问:

我错过了什么?

【问题讨论】:

    标签: amazon-web-services amazon-s3 aws-sdk


    【解决方案1】:

    在教程代码中,你会看到下面的函数

        public SimpleDBStorage()
        {
            var credentials = new CognitoAWSCredentials(
                                  Constants.CognitoIdentityPoolId,
                                  RegionEndpoint.<REGION>);
            var config = new AmazonSimpleDBConfig();
            config.RegionEndpoint = RegionEndpoint.<REGION>;
            client = new AmazonSimpleDBClient(credentials, config);
    
            Items = new List<TodoItem>();
            SetupDomain();
        }
    

    您必须将这些区域更新为您在 AWS 中使用的区域。

    【讨论】:

      猜你喜欢
      • 2015-12-29
      • 2020-07-30
      • 1970-01-01
      • 2016-05-10
      • 2019-02-18
      • 2021-06-08
      • 2016-08-27
      • 2018-08-31
      • 2017-07-01
      相关资源
      最近更新 更多