Adrián Mouly
09/08/2021, 2:50 AMReactStaticSite
? The only one that I’ve defined myself is the last one.Luke Wyman
09/08/2021, 3:22 AMJP (junaway)
09/08/2021, 1:26 PMRoss Coundon
09/08/2021, 2:36 PMRoss Coundon
09/08/2021, 3:43 PMif (app.stage.includes('prod')) {
app.setDefaultRemovalPolicy(RemovalPolicy.RETAIN);
} else {
app.setDefaultRemovalPolicy(RemovalPolicy.DESTROY);
}
I get the error
Error: There is already a Construct with name 'AutoDeleteObjectsCustomResource' in Bucket [Bucket]
at Node.addChild (/Users/rosscoundon/Documents/GitHub/wheres_my_tech/node_modules/constructs/src/construct.ts:381:13)
at new Node (/Users/rosscoundon/Documents/GitHub/wheres_my_tech/node_modules/constructs/src/construct.ts:58:22)
at new ConstructNode (/Users/rosscoundon/Documents/GitHub/wheres_my_tech/node_modules/@aws-cdk/core/lib/construct-compat.ts:184:24)
at Object.createNode (/Users/rosscoundon/Documents/GitHub/wheres_my_tech/node_modules/@aws-cdk/core/lib/construct-compat.ts:55:11)
at new Construct (/Users/rosscoundon/Documents/GitHub/wheres_my_tech/node_modules/constructs/src/construct.ts:409:26)
at new Construct (/Users/rosscoundon/Documents/GitHub/wheres_my_tech/node_modules/@aws-cdk/core/lib/construct-compat.ts:52:5)
at new Resource (/Users/rosscoundon/Documents/GitHub/wheres_my_tech/node_modules/@aws-cdk/core/lib/resource.ts:68:5)
at new CustomResource (/Users/rosscoundon/Documents/GitHub/wheres_my_tech/node_modules/@aws-cdk/core/lib/custom-resource.ts:30:5)
at App.applyRemovalPolicy (/Users/rosscoundon/Documents/GitHub/wheres_my_tech/node_modules/@serverless-stack/resources/src/App.ts:250:30)
at /Users/rosscoundon/Documents/GitHub/wheres_my_tech/node_modules/@serverless-stack/resources/src/App.ts:270:12
Is this the right way to do this?Adrián Mouly
09/09/2021, 9:41 AMindex.ts
file?
Currently I have 14 stacks referenced from index, and expecting to double that amount in the next month.
My index contains not also the stacks but also the addDependency
for each of them.
So currently it’s a mess.
I been thinking to create function
s for each of the “Features” that I have, which is basically a grouping of stacks… but to do that I have to create types for each Stack, due most of them has readonly
attributes which are exposed to other stacks.
Maybe I can create TS classes? and create input
and output
types? Input will be construct dependencies and output will be anything that has to be shared.Drew
09/09/2021, 9:17 PMAdrián Mouly
09/10/2021, 7:19 AMWAF v2
with APIGW v2
? I’m trying to use both, but my httpApi
is created by SST, and not sure how to get the ARN.
new waf.CfnWebACLAssociation(this, 'WebACLAssociation', {
webAclArn: webACL.attrArn,
resourceArn: 'XXXX',
});
I need resourceArn
but not sure how to get it.Drew
09/10/2021, 6:10 PMAdrián Mouly
09/11/2021, 5:19 AMSST CLI
from the root of my repo, but then I have another package.json
for my Infra in the folder infrastructure/
, and this is where I define dependency @serverless-stack/resources
.
Is ok to do that? This means that I have 2 package.json
:
1. one at the root level, using @serverless-stack/cli
2. one at the infrastructure project, using @serverless-stack/resources
Adrián Mouly
09/12/2021, 8:48 AMAdrián Mouly
09/13/2021, 10:44 AMputEvents
. Most of the time works fine, but sometimes when the lambda starts from cold-start I get timeout when calling eventBridge…. it’s like the EventBridge call never ends and this produces a timeout on the lambda/api-gw …. It’s weird because it doesn’t happen all the time.
Checked permissions and those are ok.luke
09/13/2021, 12:50 PMScript
that people are trying out? https://docs.serverless-stack.com/constructs/ScriptManuel Villafañe
09/13/2021, 9:13 PMJoel Corona
09/13/2021, 9:53 PMAdrián Mouly
09/13/2021, 11:00 PMdefaultAuthorizer
for all the functions and then skip ONE single function to not use it?
Maybe adding this on my single function…..?
authorizationType: ApiAuthorizationType.NONE,
Adrián Mouly
09/14/2021, 1:20 AM<https://xxxxx.execute-api.ap-southeast-1.amazonaws.com/xxxx/>
Thanks.syang
09/14/2021, 5:19 AMJoel Corona
09/14/2021, 9:13 PMOmi Chowdhury
09/14/2021, 11:30 PMsst start
I get my compiled code turning up outside of the .build
folder. That’s where its supposed to go, right?Drew
09/15/2021, 1:59 AMLee Reinhardt
09/15/2021, 3:05 AMsst.Table()
. am i correct in understanding there’s no way to create LSIs from SST? everything in secondaryIndexes
gets created as a GSI (even when re-using the table’s PK). i’m kinda surprised no one’s apparently asked about this on github issues, discussions or even this slack. that makes me think i’m missing something obvious, but i’ve read the docs/source extensively and don’t think so..Blake E
09/15/2021, 5:20 PMsst.Api
constructsAdrián Mouly
09/16/2021, 1:09 PMJoel Corona
09/16/2021, 1:50 PMAdrián Mouly
09/16/2021, 2:58 PM…LogRetentionaae0aa3c5b4d-9XyoBY3lJCKM
…
Why is that?
Just saw this on my Console, I have a bunch of lambdas with.log retention
name.Joel Corona
09/16/2021, 8:18 PMLongyang Zhang
09/17/2021, 4:08 AMsst start
command not watching the code changes anymore if the code located under src/notes
folder.
Initially followed the graphql-appsync example which was working fine. Just wondering whether SST supports that? Or maybe something wrong with my setup? ThanksLuke Wyman
09/17/2021, 4:27 AMinstallCommands
to get those same steps to happen with sst.
The thing is, I'm wondering if some take on this could become a feature of sst. Typescript sst projects have their nice, clean way of running tests in test
using Jest, and the tsconfig
et al working the deployment. As it currently stands, coordinating testing and deployment with Python in sst seems a little under-developed by comparison.Phil Astle
09/17/2021, 4:04 PM