Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upCognito UserPool SMS role creation #6943
Open
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The Question
Hey there,
Working on Cognito module, I noticed that when you create a UserPool, a role for the SMS service (policy: sns:Publish) is created by default even when you don't specify it.
This behavior is not present in the console nor CloudFormation template. Creating this role is a problem in our environment as we don't use it.
Could you make it optional ?
Thanking you in advance
Environment
Other information
Cfn stack example :
{ "AWSTemplateFormatVersion":"2010-09-09", "Resources":{ "UserPooldev01E6BF40":{ "Type":"AWS::Cognito::UserPool", "Properties":{ "AdminCreateUserConfig":{ "AllowAdminCreateUserOnly":false }, "AutoVerifiedAttributes":[ "email" ], "EmailVerificationMessage":"Your verification code is {####}", "EmailVerificationSubject":"Your verification code", "Policies":{ "PasswordPolicy":{ "MinimumLength":8, "RequireLowercase":false, "RequireNumbers":false, "RequireSymbols":false, "RequireUppercase":false, "TemporaryPasswordValidityDays":7 } }, "Schema":[ { "Name":"email", "Required":true }, { "Name":"name", "Required":true }, { "AttributeDataType":"String", "Name":"organization", "StringAttributeConstraints":{ "MaxLength":"256", "MinLength":"1" } } ], "UsernameAttributes":[ "email" ], "UserPoolName":"UserPool-dev", "VerificationMessageTemplate":{ "DefaultEmailOption":"CONFIRM_WITH_CODE", "EmailMessage":"Your verification code is {####}", "EmailSubject":"Your verification code", "SmsMessage":"The verification code to your new account is {####}" } } } } }