Mr.9715
05/31/2021, 11:55 AMsst.Auth
construct, here are my questions:
• customAttributes: {
company: new StringAttribute({ minLen: 1, maxLen: 255 }),
type: new StringAttribute({ maxLen: 2048 }),
custom1: new StringAttribute({ maxLen: 2048 }),
custom2: new StringAttribute({ maxLen: 2048 }),
},
• How do I pass google client ID and secret to the user pool for using Google as UserPoolIdentityProvider?
• Add a Amazon Cognito domain
to the user pool.Frank
Frank
sst.Auth
isn’t the right construct to use.Mr.9715
05/31/2021, 2:48 PMcognito.UserPool
instead, which was successfully deployed.
The new issue is, my lambda trigger doesn't have permissions to read/modify that pool. (circular dependency)Mr.9715
05/31/2021, 2:49 PMMr.9715
05/31/2021, 5:52 PMFrank
attachInlinePolicy
workaround work?Mr.9715
05/31/2021, 6:21 PMattachInlinePolicy
can't find this method in sst.Function, addToRolePolicy
did not work.Frank
const fn = new sst.Function(...);
fn.role.attachInlinePolicy(new Policy(stack, 'userpool-policy', {
statements: [ new PolicyStatement({
actions: ['cognito-idp:DescribeUserPool'],
resources: [userpool.userPoolArn],
}) ]
}));
Something like this should work?Mr.9715
06/01/2021, 3:15 AM