Bshr Ramadan
12/02/2021, 7:18 PMsst version 0.43.3
and I've just updated to latest version
after update I am facing this error:
AccessDeniedException: User: arn:aws:sts::702716627781:assumed-role/bshr-cordova-CordovaPubli-publicCordovaGraphqlPric-SJHXCJ61EAQY/public-cordova-pricing-bshr is not authorized to perform: logs:DescribeLogStreams on resource: arn:aws:logs:us-east-1:702716627781:log-group:cordova-bshr:log-stream:
this is the stack:
const apiAuth = new sst.Auth(this, 'auth2', {
cognito: {
userPool: cordovaMainUserPool,
userPoolClient: toledoClient
},
identityPool: {
allowUnauthenticatedIdentities: true,
identityPoolName: `api-identity-pool-${scope.stage}`,
}
});
const publicApi = new sst.ApolloApi(this, 'publicCordovaGraphqlGateway', props);
apiAuth.attachPermissionsForUnauthUsers([publicApi]);
I tried sst remove
and it didn't fix itFrank
Bshr Ramadan
12/03/2021, 11:26 AMFrank
publicApi
the logs:DescribeLogStreams
permission? Give this a try:
publicApi.attachPermissions(["logs:DescribeLogStreams"]);
Bshr Ramadan
12/05/2021, 8:40 PM