AWS 无服务器编程实践:身份池、SSL 证书与扇入扇出模式
在当今的云计算环境中,AWS 提供了丰富的服务来支持无服务器编程。本文将详细介绍如何在 AWS 中创建和配置身份池、生成 SSL/TLS 证书,以及运用扇入和扇出架构模式。
1. 创建和配置身份池
身份池在 AWS 中用于管理用户身份验证和授权,以下是创建和配置身份池的具体步骤:
1. 创建 provider.json 文件 :指定 Google 为身份提供者,并填入之前获取的客户端 ID。
{ "accounts.google.com": "55367180174-6brhjc2v6kdllcejabnr1e46957f72te.apps.googleusercontent.com" }
- 创建身份池 :使用 AWS CLI 命令创建身份池。
aws cognito-identity create-identity-pool \
--identity-pool-name qnatimepool \
--no-allow-unauthenticated-identities \
--supported-login-providers file://provider.json \
--profile admin
超级会员免费看
订阅专栏 解锁全文
32

被折叠的 条评论
为什么被折叠?



