Thomas Ankcorn
11/29/2021, 11:40 AMRoss Coundon
11/29/2021, 10:36 PMResource handler returned message: "Resource of type 'AWS::Logs::LogGroup' with identifier '{"/properties/LogGroupName":"/aws/vendedlogs/apis/eon-prod-eon-imi-sms-EonImiApi-dmg1kotkti/default"}' was not found."
jamlen
11/30/2021, 8:44 PMAdrián Mouly
12/01/2021, 1:22 AMreturn new Cron(this, 'searchCompaniesCronJob', {
schedule: { minute: '1' },
job: searchCompaniesFunction,
});
But I don’t see it being triggered every 1 minute.Dan Van Brunt
12/01/2021, 2:23 AMDaniel
12/01/2021, 10:54 PMDan Greaves
12/02/2021, 6:14 AMBlake E
12/02/2021, 7:09 PMBobby Ross
12/02/2021, 9:51 PMDerek Kershner
12/02/2021, 10:05 PMSean Matheson
12/03/2021, 11:11 AMJack Fraser
12/04/2021, 10:40 AMStaticSite
? I wish to add a statement allowing a CloudFront Origin Access Identity to perform the s3:GetObject
{
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::cloudfront:user/CloudFront Origin Access Identity ABC123"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::NEW_STATIC_SITE_S3_BUCKET_NAME/*"
}
Jakob Fix
12/04/2021, 10:45 AMversion
value of the package.json
file in my lambda script. Therefore, as described in the documentation, I edited the index.js
file in the stacks
directory, to contain this bit of code:
export default function main(app) {
// Set default runtime for all functions
app.setDefaultFunctionProps((stack) => ({
runtime: "nodejs12.x",
environment: {
SCRIPT_VERSION: process.env.npm_package_version,
CALENDAR_ID: ssm.StringParameter.valueForStringParameter(stack, "/CALENDAR_ID"),
....
SCRIPT_VERSION
should now contain the value of version
. This works fine while developping locally, but once deployed, the value is always undefined
. Is the package.json
file ignored maybe? 🙏Mischa Spiegelmock
12/04/2021, 3:27 PM@serverless-stack/cli
in dependencies and not devDependencies?Adrián Mouly
12/06/2021, 9:29 PMenabled
boolean.
I think I found it:
eventsRule: {
enabled:
}
Jack Fraser
12/06/2021, 10:02 PMAdrián Mouly
12/07/2021, 12:05 AMQueue
construct from SST, and now I need to attach a consumer of type DockerImageFunction
from CDK.
Is that possible to do? or I need to create a Queue + Integration with native CDK?Sean Matheson
12/07/2021, 2:01 AMsst.Api
routes pointing to the same handler a separate function instance/deployment is created for each route? Is there a way to avoid this duplication? I tried creating a function instance via sst.Function
to share but then I get issues with the default function props.Adrián Mouly
12/07/2021, 3:07 AMSean Matheson
12/07/2021, 8:39 AMKujtim Hoxha
12/07/2021, 10:58 AMjamlen
12/07/2021, 4:15 PMsst.Table
? This is what I'm trying but it errors with Type '{ ticketId: TableFieldType.STRING; ticketType: TableFieldType.STRING; startDate: TableFieldType.STRING; endDate: TableFieldType.STRING; cost: TableFieldType.NUMBER; }[]' is not assignable to type 'TableFieldType'
this.tables.cards = new sst.Table(this, "Cards", {
fields: {
accountId: sst.TableFieldType.STRING,
cardId: sst.TableFieldType.STRING,
tickets: [{
ticketId: sst.TableFieldType.STRING,
ticketType: sst.TableFieldType.STRING,
startDate: sst.TableFieldType.STRING,
endDate: sst.TableFieldType.STRING,
cost: sst.TableFieldType.NUMBER,
}]
},
primaryIndex: { partitionKey: "accountId", sortKey: "cardId" },
})
Mischa Spiegelmock
12/07/2021, 10:43 PMAdrián Mouly
12/08/2021, 12:56 AMbuild
command to be sure the code works when is committed.
In that case, which STAGE should I use? I think I need it because I need to pull the hostedZone, for example.
Thanks.Tonny (sstNerd)
12/08/2021, 7:37 AMsst start
it throws up an error saying that the table is already created, so I need to go to DynamoDB and delete it manually.
So I was just looking around if there was a setting or something like this, but for the DynamoDB tables:
new Bucket(this, "Bucket", {
s3Bucket: {
autoDeleteObjects: true,
removalPolicy: cdk.RemovalPolicy.DESTROY,
},
});
jamlen
12/08/2021, 11:58 AMae0a40db-b854-46a6-87e9-000f18309f0c
but when I get the event.requestContext.authorizer.iam.cognitoIdentity.identityId
it returns me eu-west-2:5f9ee6e6-2291-457d-8f5a-10edf136cc14
and so how do I get the user sub from the logged in user cognitoIdentity?Orlando
12/08/2021, 6:02 PMRyan
12/09/2021, 12:43 PMSean Matheson
12/09/2021, 1:13 PMRyan
12/09/2021, 3:59 PMsst.Script
with onCreate
seems to deploy every time? I'm not sure if it executes, haven't checked, but the stack deployment on sst start
happens every time, even without changes.