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

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

问题描述

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.

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)

解决方案

Update: Since end of 2019, AWS Cloudformation natively supports App Client Settings, Domain and Federated Identities. See other answers.

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.

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.


**UPDATE**

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

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

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