Cloudformation Cognito-如何通过SAM模板设置App Client设置,域和联合身份 [英] Cloudformation Cognito - how to setup App Client Settings, Domain, and Federated Identities via SAM template

查看:159
本文介绍了Cloudformation Cognito-如何通过SAM模板设置App Client设置,域和联合身份的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经可以使用我的Cognito用户池cloudformation模板,并将其集成到我的api网关中。但是以某种方式,我仍然必须手动配置应用程序客户端设置,域和联合身份,以为用户提供有效的登录门户。我一直在这里寻找自动解决这些问题的可能解决方案,但似乎找不到与之接近的任何东西。

I already have my cognito user pool cloudformation template working, and have it integrated to my api gateway. But somehow i still have to manually configure the app client settings, domain, and federated identities to have a working login portal for the users. I have been looking here and there for possible solutions in automating these, but i cannot seem to find anything close to it.

我想自动化应用程序的配置客户端设置,域和通过cloudformation sam模板提供的联合身份,因此我不必手动执行这些操作。

I would like to automate the configuration of the app client settings, domain, and federated identities via cloudformation sam template so i do not have to do these manually.

任何建议都非常感谢。谢谢。

Any suggestions are much appreciated. Thank you.

(已发布附件以获取更多信息)

(attachments posted for additional info)

  • https://i.stack.imgur.com/I7NSt.png
  • https://i.stack.imgur.com/ZbiTI.png
  • https://i.stack.imgur.com/F8rfH.png

推荐答案

好像无法提供 App集成->域名联合会->身份提供商通过CloudFormation。

Looks like there is no way to provide App integration -> Domain name and Federation -> Identity providers via CloudFormation.

我只找到了 用户池客户端 常规设置->应用客户端),但不会配置应用集成->应用客户端设置

I found only reference for User Pool Client (General settings -> App clients) but it will not configure App integration -> App client settings.

如果你需要自动化提供 的过程域名 身份提供者 用户池的应用程序客户端设置 ,您可以通过创建自定义脚本(AWS CLI)或Lambda(AWS SDK)来执行此操作堆栈部署。

If you need to automate process of providing Domain name, Identity providers and App client settings for user pool, you can do that by creating custom script (AWS CLI) or Lambda (AWS SDK) which should be performed after stack deployment.



更新

检查出 优秀示例 下面的答案)显示 CloudFormation自定义资源和Lambda。

Check out excellent example (answer below) that shows usage of CloudFormation Custom Resources with Lambda.

这篇关于Cloudformation Cognito-如何通过SAM模板设置App Client设置,域和联合身份的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆