You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the SAM template, add this Cognito UserPool resource:
MyCognitoUserPool:
Type: AWS::Cognito::UserPoolProperties:
UserPoolName: cognito-phone-auth-poc-user-poolUsernameAttributes:
- phone_numberSchema:
- AttributeDataType: StringName: phone_numberRequired: trueSmsConfiguration:
ExternalId: !Sub ${AWS::StackName}-externalSnsCallerArn: !GetAtt CognitoSMSRole.Arn# MfaConfiguration: "OFF"UserPoolTier: LITE <------ reported as not allowed by the SAM linter.
Then, run the command:
sam validate --lint
Observed result:
❯ sam validate --lint
[[E0001: Error found when transforming the template] (Error transforming template: Resource with id [MyCognitoUserPool] is invalid. property UserPoolTier not defined for resource of type AWS::Cognito::UserPool) matched 1]
Error: Linting failed. At least one linting rule was matched to the provided template.
Expected result:
It should validate.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
Hi, thanks for reporting, does sam validate (without --lint) have the same issue? You may need to remove the lint = true in samconfig.toml as well to run sam validate
Description:
I'm trying to deploy a Cognito UserPool with Lite tier. But, the SAM linter doesn't accept AWS::Cognito::UserPool's UserPoolTier property as defined in the docs: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html#cfn-cognito-userpool-userpooltier
Steps to reproduce:
In the SAM template, add this Cognito UserPool resource:
Then, run the command:
Observed result:
Expected result:
It should validate.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
: 1.132.0Add --debug flag to command you are running
The text was updated successfully, but these errors were encountered: