Fazi
02/10/2022, 12:53 PMDevin
02/10/2022, 2:02 PMthis.api = new sst.Api(this, "Api", {
customDomain: {
hostedZome: <http://myCoolSite.com|myCoolSite.com>,
domainName: <http://api.myCoolSite.com|api.myCoolSite.com>,
domainAlias: <http://www.api.myCoolSite.com|www.api.myCoolSite.com>,
}),
Will create an A record in route53 so you can request that api as <http://api.myCoolSite.com|api.myCoolSite.com>
.
then if you wanted to access that in a front end
const reactApp = new sst.ReactStaticSite(this, "ReactSite", {
path: "frontend",
environment: {
REACT_APP_API_URL: this.api.url,
My expectation was that this.api.url
would return <http://api.myCoolSite.com|api.myCoolSite.com>
.
Is that the expected behavior?Nicklas Nyegaard
02/10/2022, 2:42 PMMichael Bannon
02/10/2022, 4:21 PM> frontend@0.1.0 start C:\Users\peter\OneDrive\Documents\Michael Final Year\2021.2022\greenfinger\frontend
sst-env -- react-scripts startsst-env: Cannot find matching SST environment outputs in C:\Users\peter\OneDrive\Documents\Michael Final Year\2021.2022\greenfinger\.build\static-site-environment-output-values.json. E nsure the StaticSite points to C:\Users\peter\OneDrive\Documents\Michael Final Year\2021.2022\greenfinger\frontend npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! frontend@0.1.0 start:
sst-env -- react-scripts start
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the frontend@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\peter\AppData\Roaming\npm-cache\_logs\2022-02-10T16_09_41_140Z-debug.logDan Van Brunt
02/10/2022, 7:23 PMsst.Buckets
in this app”? cause I’m sure there is a bucket… just that its a cdk.Bucket
Greg
02/10/2022, 8:59 PMJ. T. Garcia
02/10/2022, 11:01 PMJustin Robinson
02/11/2022, 10:35 AMDaniel Gato
02/11/2022, 1:27 PMOops! Something went wrong! :(
ESLint: 8.7.0
ESLint couldn't find the plugin "@typescript-eslint/eslint-plugin".
(The package "@typescript-eslint/eslint-plugin" was not found when loaded as a Node module from the directory "/Users/daniel/Github/arify-serverless".)
It's likely that the plugin isn't installed correctly. Try reinstalling by running the following:
npm install @typescript-eslint/eslint-plugin@latest --save-dev
The plugin "@typescript-eslint/eslint-plugin" was referenced from the config file in ".eslintrc.json » eslint-config-serverless-stack".
If you still can't figure out the problem, please stop by <https://eslint.org/chat/help> to chat with the team.
Is that something I’m missing?Bshr Ramadan
02/11/2022, 3:26 PMaws lambda power tuning
using cdk like here:
https://github.com/alexcasalboni/aws-lambda-power-tuning/blob/master/README-DEPLOY.md#option-3-deploy-the-aws-sar-app-with-aws-cdk
after adding it, the sst console is keeping stuck on Waiting for invocations
do you have any idea about this?Mendel Lerner
02/11/2022, 4:09 PMsecret.secretValueFromJson('password').toString()
Is there a way to do it for a nested property? (such as account.password
)David Garcia
02/11/2022, 4:18 PMbucket
property seems to be associated with table output. I can't quite identify how I can configure what S3 bucket the generated glue table is supposed to be looking through when using something like athena to run a query on the bucket.Zack McKenna
02/11/2022, 8:07 PMsst start
or sst deploy
hangs at the Deploying Stacks
stage, it looks like it is caused by the following message from debug logs:
LoggingEvent {
startTime: 2022-02-11T20:00:19.337Z,
categoryName: 'cdk',
data: [
'2022-02-11T20:00:19.336Z proxy-agent creating new ProxyAgent instance: undefined\n'
],
level: Level { level: 5000, levelStr: 'TRACE', colour: 'blue' },
context: {},
pid: 64731
}
And error :
LoggingEvent {
startTime: 2022-02-11T20:00:40.219Z,
categoryName: 'core',
data: [
'deploy stack: run cdk deploy: stderr:',
"2022-02-11T20:00:40.218Z proxy-agent cache hit with key: 'no proxy secure'\n"
],
level: Level { level: 5000, levelStr: 'TRACE', colour: 'blue' },
context: {},
pid: 64731
}
I’m assuming this is purely related to aws cdk and not sst, but wanted to see if anyone has encountered an issue like this before.Devin
02/11/2022, 11:14 PM<http://domain.com|domain.com>
on route 53 and move it to... Netlify I guess. I'll keep <http://app.domain.com|app.domain.com>
for the SST application. Effectively splitting the static site and the application.
Anyone have any thoughts about things I should watch out for?ACPixel
02/12/2022, 4:29 AMchrome-aws-lambda
uses __dirname
in it's code, which doesn't work when in esm. Not sure if there's an easy way around this, or if I should just have the one function not use ESM or something, either way any help would be greatly appreciated! 🙂Pablo Fernandez
02/12/2022, 12:27 PMDan Van Brunt
02/12/2022, 6:28 PMShah Hossain
02/13/2022, 6:38 AMExport dev-storage:ExportsOutputFn.... cannot be deleted as it is in use by dev-api
I tried renaming the table. But, that did not work either. Please suggest.Jon Bretman
02/13/2022, 2:45 PMPablo Fernandez
02/13/2022, 2:50 PMPablo Fernandez
02/13/2022, 6:09 PMKujtim Hoxha
02/13/2022, 8:02 PMGuy Shechter
02/14/2022, 7:25 AMimport { GraphqlApi } from "@aws-cdk/aws-appsync-alpha";
const api = new AppSyncApi(this, "GraphqlApi", {
graphqlApi: GraphqlApi.fromGraphqlApiAttributes(this, "IGraphqlApi", {
graphqlApiId,
}),
});
However, if i then try to add a unit resolver where i reference a datasource I added in the first stack it fails; also, if i try to lookup the datasource by name
api.getDataSource('mydsName');
it also returns undefined. Any thoughts?Kujtim Hoxha
02/14/2022, 2:34 PM99th percentile: 2.042189291s
P95th percentile: 2.011754874s
P90th percentile: 1.985379375s
P50th percentile: 1.683923479s
Max : 2.042189291s
Mean : 1.571575707s
Min : 884.344166ms
The time with warm lambdas is around 100-300ms.
Is 1.8mb too much?
The env. is node14 with 1024mb memory and arm64 arch.
I am really wondering if this has to do with the size of the function or something else.Akos
02/14/2022, 5:10 PMKristian Lake
02/14/2022, 6:55 PMSlackbot
02/14/2022, 9:07 PMPatrick
02/14/2022, 10:32 PMdev-appname-MyStack-Admins8B360DEA-U132VR1JXSY0
. I would love to be able to set the name myself so I could name it something like: dev-appname-MyStack-Admins
Pablo Fernandez
02/15/2022, 2:16 PMAshishkumar Pandey
02/15/2022, 5:02 PM