【发布时间】:2019-02-14 23:14:04
【问题描述】:
aws --version
aws-cli/1.16.76 Python/2.7.10 Darwin/16.7.0 botocore/1.12.66
我正在尝试以编程方式将 APNS_SANDBOX 频道添加到精确应用。我可以通过 pinpoint 控制台成功地做到这一点,但不能使用 aws cli 或作为最终目标的 lambda 函数。只能通过 CodePipeline 对我们的测试/生产环境进行更改,但出于测试目的,我正在尝试使用 aws cli 来实现这一点。
我已经尝试过 aws cli(使用 root 凭据)和 lambda 函数 - 都导致以下错误:
An error occurred (BadRequestException) when calling the UpdateApnsSandboxChannel operation: Missing credentials
我尝试将 UpdateApnsSandboxChannel json 对象中的 Certificate 字段设置为 .p12 证书文件的路径,并使用从 openssl 工具检索到的字符串值。
今天我与来自 aws 支持的人一起工作,他们在尝试调试了几个小时后无法找出问题所在。他们说他们会向精确定位团队发送一封电子邮件,但他们没有关于何时回复的 ETA。
谢谢
【问题讨论】:
标签: amazon-web-services apple-push-notifications aws-cli aws-pinpoint