Cristian Pallarés
01/26/2022, 1:29 PMkoukito
01/26/2022, 2:38 PMreplicationRegions: ['us-east-1', 'us-east-2', 'us-west-2'],
in the dynamoDb table construct? seems like replicationRegions is not in the TableProps type.Frank
Api
and a StaticSite
, where the frontend needs to know the API endpoint, and the API needs to know the frontend URL. Sample code here https://gist.github.com/fwang/db1e5697913c5533f8b95a4f04464870Nick Laffey
01/26/2022, 10:18 PMAdrián Mouly
01/26/2022, 11:51 PM/**
* The name of TTL attribute.
*
* @default - TTL is disabled
* @stability stable
*/
readonly timeToLiveAttribute?: string;
What should be the value?Adrián Mouly
01/27/2022, 4:23 AMStaticSite
to deploy my ReactJS site (not using ReactSite
because my app doesn’t use create-react-app
framework.
So the problem is I’m having some CORS issues downloading fonts from CFront… is there a way to customize CORS for specific file types?
Maybe my CORS policy is dictated by S3?Lawrence Lau
01/27/2022, 10:37 AMKujtim Hoxha
01/27/2022, 12:31 PMStaticSite
is being deployed the app will not work, I am assuming that some files get changed and some still are the old files and because of the files having the version on the file name (we use vite for building our UI) there is a mismatch and the UI does not load.
Has anyone else seen this issue? Any way to prevent this?Ryan Weaver
01/27/2022, 3:44 PMRyan Weaver
01/27/2022, 7:22 PMFabian Ehringer
01/27/2022, 9:02 PMsst start
) for the first time the console is printing strange messages
[Module: null prototype] {
default: { handler: [Getter] },
handler: [AsyncFunction: handler]
} handler
…
[Module: null prototype] {
ALGORITHM_IDENTIFIER: undefined,
ALGORITHM_IDENTIFIER_V4A: undefined,
ALGORITHM_QUERY_PARAM: undefined,
ALWAYS_UNSIGNABLE_HEADERS: undefined,
AMZ_DATE_HEADER: undefined,
AMZ_DATE_QUERY_PARAM: undefined,
AUTH_HEADER: undefined,
AWS_DEFAULT_REGION_ENV: undefined,
AWS_EXECUTION_ENV: undefined,
AWS_REGION_ENV: undefined,
AccountInfo: undefined,
AdaptiveRetryStrategy: undefined,
ArchivalSummary: undefined,
AssumeRoleCommand: undefined,
AssumeRoleRequest: undefined,
AssumeRoleResponse: undefined,
AssumeRoleWithSAMLCommand: undefined,
AssumeRoleWithSAMLRequest: undefined,
AssumeRoleWithSAMLResponse: undefined,
AssumeRoleWithWebIdentityCommand: undefined,
AssumeRoleWithWebIdentityRequest: undefined,
AssumeRoleWithWebIdentityResponse: undefined,
AssumedRoleUser: undefined,
AttributeDefinition: undefined,
...
2. sst update
does not work. Nothing gets updated
3. Seed sometimes complains about the yarn.lock file being updated during a yarn install, which is not the case. This seems to be a caching issue, since a complete redeploy fixes the problems. This only happens when I promote a from one stage to another.
We downgraded to yarn 1 again for now.
Edit: Only problem 1 is related to the sst version. It’s not happening in 0.53. Problem 2 and 3 have probably always been there under yarn 3.Adam Fanello
01/27/2022, 9:43 PM% npm ls aws-cdk-lib
casa@1.0.0 /Users/adam/dev/casa
└─┬ @pkg/cloud@1.0.0 -> ./cloud
├─┬ @serverless-stack/cli@0.60.6
│ ├─┬ @aws-cdk/aws-apigatewayv2-alpha@2.7.0-alpha.0
│ │ └── aws-cdk-lib@2.9.0
│ ├─┬ @serverless-stack/core@0.60.6
│ │ └── aws-cdk-lib@2.7.0
│ └── aws-cdk-lib@2.7.0
└─┬ @serverless-stack/resources@0.60.6
├─┬ @aws-cdk/aws-apigatewayv2-authorizers-alpha@2.7.0-alpha.0
│ └── aws-cdk-lib@2.9.0 deduped
├─┬ @aws-cdk/aws-apigatewayv2-integrations-alpha@2.7.0-alpha.0
│ └── aws-cdk-lib@2.9.0 deduped
├─┬ @aws-cdk/aws-appsync-alpha@2.7.0-alpha.0
│ └── aws-cdk-lib@2.9.0 deduped
└── aws-cdk-lib@2.7.0
Cristian Pallarés
01/27/2022, 10:23 PMSam Wrigley
01/28/2022, 1:07 PMAWS::CloudFront::Distribution
.
Anything that would help speed up deployments would be hugely helpful for us.Kujtim Hoxha
01/28/2022, 5:00 PMINFO: Checking for files changes in the ##### service...
0.07 s
Skipping the check since there is only one service in your app.
Ivan Roskoshnyi
01/29/2022, 7:36 AMluke
01/31/2022, 1:51 PMnewrelic-lambda-wrapper.handler
. But I cannot set this in my stack code (like in this SAM example), as SST will try to do this and fail:
Building Lambda function newrelic-lambda-wrapper.handler
Error: Cannot find a handler file for "newrelic-lambda-wrapper.handler".
Adrián Mouly
01/31/2022, 9:41 PM.env
files to have some level of hierarchy?
Like .env
should be applied always, then on top of it apply .<http://env.dev|env.dev>
if the STAGE=dev …. and so on…
I need to do this due I have some env-vars which are repeated across environments/stages.Adrián Mouly
01/31/2022, 10:35 PMplugins: [
new Dotenv({
path: path.join(process.cwd(), `/sst/.env.${process.env.SST_STAGE}`),
}),
],
But this creates other problems…Dan Van Brunt
02/01/2022, 7:15 PMsst.StaticSite
and its use of deployid
as a bucket prefix.
This now means that the CloudFront distro needs to be updated (origin path) so that adds 6-15mins of replication/deploy time.
Optional prefixes and us
With optional prefixes, I would like to write a CDK construct that handles Cloudfront distro cutovers and true blue-green deploys. We would only do that for production, while dev deploys stay spicy fast. Even without this construct… one could at lease make the deploy prefixes optional for Prod only, again, keeping dev deploy fast.Adrián Mouly
02/02/2022, 3:10 AMJack Fraser
02/02/2022, 3:04 PMRoss Gerbasi
02/03/2022, 5:32 PMAdam Elmore
02/04/2022, 1:04 AMjamlen
02/04/2022, 5:48 PMSST: 0.61.0 CDK: 2.7.0
I'm now getting
✘ [ERROR] Could not resolve "@aws-cdk/aws-lambda"
stacks/index.ts:2:24:
2 │ import * as lambda from "@aws-cdk/aws-lambda"
Dan Van Brunt
02/04/2022, 10:26 PMSam Hulick
02/07/2022, 5:26 AMsst start
, press spacebar and then backspace, and you get a mysterious >
prompt. doesn’t do anything though
actually, @Jay, this is why it takes two ^C’s to kill sst now. once I hit ^C the first time, the weird spacebar/backspace thing doesn’t work anymore. and then the second ^C quits sst. so there’s some kind of prompt process running in addition to sst start
, maybe?Ivan Roskoshnyi
02/07/2022, 8:42 PMnpx sst start
I am getting
CredentialsError: Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1
I have updated app/.env
file so it looks
AWS_SDK_LOAD_CONFIG=1
AWS_PROFILE=profile npx sst start
but it doesn't work. Am I missing something?Michael Robellard
02/08/2022, 12:03 AMChecking deploy status...
mike-local-chartflow-dynamodb-stack | UPDATE_IN_PROGRESS | AWS::CloudFormation::Stack | mike-local-chartflow-dynamodb-stack | User Initiated
mike-local-chartflow-dynamodb-stack | UPDATE_ROLLBACK_IN_PROGRESS | AWS::CloudFormation::Stack | mike-local-chartflow-dynamodb-stack | Export mike-local-chartflow-dynamodb-stack:ExportsOutputRefLookupChartflowDataTableB04292358F7B7CAF cannot be deleted as it is in use by mike-local-chartflow-api-stack
mike-local-chartflow-dynamodb-stack | UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS | AWS::CloudFormation::Stack | mike-local-chartflow-dynamodb-stack
mike-local-chartflow-dynamodb-stack | UPDATE_ROLLBACK_COMPLETE | AWS::CloudFormation::Stack | mike-local-chartflow-dynamodb-stack
:x: mike-local-chartflow-dynamodb-stack failed: Export mike-local-chartflow-dynamodb-stack:ExportsOutputRefLookupChartflowDataTableB04292358F7B7CAF cannot be deleted as it is in use by mike-local-chartflow-api-stack
I had been working on fixing up my deploys and getting them to work on actual aws hardware and had ignored my local environment. When I went to redploy my local environment this evening, I got this message. I have no Idea what to do to fix. Everything is working great on AWS, now I just have to figure out how I broke my local environmentDerek Kershner
02/08/2022, 5:38 PM{"errorType":"Error","errorMessage":"Dynamic require of \"stream\" is not supported","stack":["Error: Dynamic require of \"stream\" is not supported"," at file:///var/task/src/api/graphql/index.js:1:464"
I am not sure this is even the fault of the SST implementation, as it happens in AWS itself, but worth knowing perhaps.
I am not doing anything with stream
directly myself, so it must be inside apollo or another package.