Blake E
08/31/2021, 5:40 PMCloudFormation cannot update a stack when a custom-named resource requires replacing. Rename dev-my-stack-myTableName and update the stack again.
I believe.. cloudformation natively can create dynamic names, or maybe it was CDK POCs I did in the past - can’t seem to remember.
sst
have support for this?
I am still of two minds around whether I like the friction or not, but generally - I don’t lol.
I’d prefer cdk/sst/cloudform to pick a name with a custom prefix, like dev-my-stack-myTableNameRANDOMISH
Blake E
08/31/2021, 6:18 PMgrantX
style?
As seen in https://docs.serverless-stack.com/util/Permissions#access-to-a-list-of-specific-permissions-in-a-construct as an interface to https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-dynamodb.Table.html#grantwbrreadwbrdatagrantee
I love typescript for this, and we do see this pattern all over sst
, but not seeing anything on roadmap re: perms/grantsSam Frampton
08/31/2021, 7:45 PMAdrián Mouly
08/31/2021, 8:15 PMsst test
.Adrián Mouly
09/01/2021, 3:29 AMaddRoute
, which instances a Function
construct, and also defines new environment variables…
Are the first ones replaced by the second ones? or both are merged?Adrián Mouly
09/01/2021, 7:22 AMAWS_KEY
and AWS_SECRET
?Drew
09/01/2021, 7:36 AMDrew
09/01/2021, 7:40 AMAdrián Mouly
09/01/2021, 7:51 AMAbdul Taleb
09/02/2021, 3:47 AMconst apollo = new sst.ApolloApi();
const resolver = new sst.Function();
resolver.attachPermissions([apollo]);
Adrián Mouly
09/02/2021, 5:24 AM.map
file is included in the bundle now, and before with SLS might not be there.
Is there a real need to include .map
file? I’m not familiarized how to take advantage of it.Aram
09/02/2021, 6:28 AMnpx sst deploy
and just do a deploy without building it again?Adrián Mouly
09/02/2021, 6:45 AMAccount ID
on my stack? I need to build the SQS URL like..
<https://sqs.ap-southeast-1.amazonaws.com/#{AWS::AccountId}/>
Wondering if using scope.account
is the actual ID.Clayton
09/02/2021, 2:40 PMKujtim Hoxha
09/02/2021, 3:48 PMRoss Coundon
09/02/2021, 7:19 PMMichael Orcutt
09/03/2021, 4:31 PMBlake E
09/03/2021, 6:23 PMsls logs
right? (ie. https://www.serverless.com/framework/docs/providers/aws/cli-reference/logs/#aws---logs)Blake E
09/03/2021, 9:05 PM.bin/tsc
in cdkHelpers.ts vs. letting the system resolve this using $PATH? or other node module resolution strategies?
I believe my latest mono-repo issue (rushjs, which symlinks node_modules
) deals with this “custom” module command resolution for tsc
Kujtim Hoxha
09/03/2021, 9:15 PMSome context information is missing. Fetching...
Luke Wyman
09/04/2021, 2:58 AMnpx sst deploy --stage test
of my monorepo app. CDK is in Typescript, Lambdas are in Python. Things had been pretty smooth with deploying/removing through this morning, and I haven't changed the CDK code in a couple days. Here's the error:
test-karaoke-auth | CREATE_FAILED | AWS::Lambda::Function | AuthpostConfirmation9638BE34 Resource handler returned message: "Could not unzip uploaded file. Please check your file, then try to upload again. (Service: Lambda, Status Code: 400, Request ID: 62093ef6-5fc4-4c34-9fc9-41f040129049, Extended Request ID: null)" (RequestToken: 7ff6ef6c-3053-e0bd-a668-dd1d985361bc, HandlerErrorCode: InvalidRequest)
Putting other failed Lambda here to preserve:
test-karaoke-singers | CREATE_FAILED | AWS::Lambda::Function | LambdaPUTkaraokesingerssingerId0B097659 Resource handler returned message: "Could not unzip uploaded file. Please check your file, then try to upload again. (Service: Lambda, Status Code: 400, Request ID: 78b004a4-77ed-4336-bc7e-4ce5c5eac1c4, Extended Request ID: null)" (RequestToken: 4529ae3a-b7be-a06a-e162-7a16afd056ee, HandlerErrorCode: InvalidRequest)
I did a complete deploy before my last git push and deploy and integration tests worked great. The only changes I've made this go around, are to add a non-infrastructure-related domain object with isolated unit tests.
It might be not related to sst, since I seem to also have a Python issue where modules in the same folder are not being recognized on imports, but that is happening throughout the project, and only a couple of Lambdas are being rejected on deploy.Fazi
09/05/2021, 2:21 PMsst deploy
at the end (once the code is tested etc). Now the issue I run into is the following:
Integration-api-integration-MyTable already exists
so Failed to deploy the app
Is it not possible to continually deploy the application? What would be best practice here? Apologies if this has been covered somewhere but I couldn't find it in the docs under the deployment section (or perhaps I misunderstood).Kevin Baker
09/06/2021, 3:03 PMMehmet Ali SARAÇ
09/06/2021, 3:25 PMAbdul Taleb
09/06/2021, 4:42 PMAdrián Mouly
09/06/2021, 9:55 PMobject
?
I was expecting to have something like defaultFunctionProps
but at Project level, not only Api
.
This is how SLS does it, you can define properties like logRetention
or permissions
at the root level.
Toughts?Adrián Mouly
09/07/2021, 3:30 AMdev
for local development and PRs. Of course each developer is going to have their own stage.
Thoughts? 🙂Kujtim Hoxha
09/07/2021, 11:20 AMOlivers
09/07/2021, 1:25 PMAdrián Mouly
09/07/2021, 11:26 PM"start": "AWS_PROFILE=development sst start --stage $USER"
The problem is some of my developers has $USER like name.surname
, then the expression is not valid to name the stage or stack.
Any suggestions?