Sam Hulick
10/26/2021, 9:16 PMyarn start
process just stops listening. it says “Listening for requests…” but when the front end makes requests, I can see that nothing happens, and the front end gets a 500 error. you guys want me to send any logs over?thdxr
10/27/2021, 12:59 PMSeth Geoghegan
10/27/2021, 1:03 PMGarret Harp
10/27/2021, 1:58 PMJoe Kendal
10/27/2021, 2:10 PMMike McCall
10/27/2021, 4:59 PMtest/setup.ts
with a beforeAll
function. When I run npx sst build
i get this error
ReferenceError: beforeAll is not defined
at Object.<anonymous> (/Users/mike/source/trevco-commerce/test/setup.ts:21:1)
at Module._compile (internal/modules/cjs/loader.js:1072:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
at Module.load (internal/modules/cjs/loader.js:937:32)
at Function.Module._load (internal/modules/cjs/loader.js:778:12)
at Module.require (internal/modules/cjs/loader.js:961:19)
at require (internal/modules/cjs/helpers.js:92:18)
at Object.<anonymous> (/Users/mike/source/trevco-commerce/.build/run.js:86:17)
at Module._compile (internal/modules/cjs/loader.js:1072:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
Ryan Martin
10/27/2021, 7:13 PMDan Van Brunt
10/27/2021, 7:16 PMGabriel Araújo
10/27/2021, 8:47 PMPatrick Gold
10/27/2021, 9:26 PM"Runtime.UserCodeSyntaxError: SyntaxError: Unexpected token '?'",
" at _loadUserApp (/var/runtime/UserFunction.js:98:13)",
" at Object.module.exports.load (/var/runtime/UserFunction.js:140:17)",
" at Object.<anonymous> (/var/runtime/index.js:43:30)",
" at Module._compile (internal/modules/cjs/loader.js:999:30)",
" at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)",
" at Module.load (internal/modules/cjs/loader.js:863:32)",
" at Function.Module._load (internal/modules/cjs/loader.js:708:14)",
" at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)",
" at internal/main/run_main_module.js:17:4
Adrian Schweizer
10/27/2021, 10:11 PMthis.api = new sst.Api(this, "SignupApi", {
defaultAuthorizationType: "AWS_IAM",
defaultFunctionProps: {
environment: {
TABLE_NAME: table.tableName,
},
},
routes: {
"POST /registrations": "src/registration/register.main",
"POST /activations": "src/registration/activate.main",
},
});
In AuthStack:
constructor(scope, id, props) {
super(scope, id, props);
const { signupApi, api, bucket } = props;
this.auth.attachPermissionsForUnauthUsers([signupApi]);
Ross Coundon
10/27/2021, 11:05 PMsst start
for a new app and I received the error causing it to abort
failed: Received response status [FAILED] from custom resource. Message returned: A conflicting operation is currently in progress against this resource. Please try again.
Looking at the Cloudformation console I can see that it's to do with a logRetention
The console shows me these options with heading Stack rollback paused
If I re-run sst start
it starts up okay but the log retention isn't applied. Also, the outputs of the stack, like my API URL aren't output and are missing from the Cloudformation console tooMark Fox
10/27/2021, 11:13 PMStaticSite
and must be missing something. All I've done is set up the default SST project (npx create-serverless-stack@latest blah
), created the default Nuxt project in the root of that (npx create-nuxt-app frontend
), and then modified MyStack.js to tell StaticSite
how to build the Nuxt app and where to find the static files. Easy. An npx sst start
works but deploys an SST place-holder site which recommends doing an npx sst deploy
. So I do that and visit the CloudFront link spat out by the deploy. I get an access denied error expressed as an XML document.Frank
Devin
10/28/2021, 6:32 PMnpx sst depoy --stage prod
once. After than I get barrels of cloud formation errors.Garret Harp
10/28/2021, 8:52 PMGarret Harp
10/28/2021, 10:34 PMDevin
10/28/2021, 11:40 PM<http://mycoolsite.com|mycoolsite.com>
with a NS record and an SOA record if I view it in the aws console. I would like to set up both <http://www.mycoolsite.com|www.mycoolsite.com>
and <http://mycoolsite.com|mycoolsite.com>
. Is the following okay or should I delete the hosted domain manually in the console.
// Create a Next.js site
<http://this.site|this.site> = new sst.NextjsSite(this, "Site", {
path: "frontend",
customDomain:
scope.stage === "prod"
? {
domainName: "<http://mycoolsite.com|mycoolsite.com>",
domainAlias: "<http://wwww.mycoolsite.com|wwww.mycoolsite.com>",
}
: undefined,
Noah D
10/29/2021, 12:39 AMstack-xyz failed: Replacement type updates not supported on stack with disable-rollback.
? Seems to only be the case on my debug stack, i.e. if i push it to seed the deploy to dev works fine. Getting it when I do something small like change the name of a lambda function. Can delete and remake the stack but seems like shouldn't be happeningÖmer Toraman
10/29/2021, 1:55 AMJake Harris
10/29/2021, 3:16 AMSahan Amadoruge
10/29/2021, 3:27 AM_new_ Bucket(_this_, "Bucket", {
s3Bucket: {
bucketName: "my-bucket",
},
});
Jake Harris
10/29/2021, 4:48 AMmodules.d.ts
to a barebones typescript template from create-serverless-stack --language typescript
and it's not getting picked up, even when I specify in tsconfig's files[]
Emil Styrke
10/29/2021, 11:43 AMnew MyStack(app, "test-stack")
and then pull the table name out of the stack somehow? Run dynamodb-local? It seems I'm missing something obvious here...Sahan Amadoruge
10/29/2021, 11:52 AMDan Van Brunt
10/29/2021, 12:48 PMcommandHooks
doesn’t seem to console the cli output of commands ?
I can get a command echo Hello
to out…. but yarn build
is silent?Adrian Schweizer
10/29/2021, 12:51 PMthis.api.attachPermissions([table, identityPool]); // identityPool is authStack.auth.identityPoolId, which console.logs to "${Token[TOKEN.390]}"
Errors I get:
Checking deploy status...
dev-convento-signupApi | UPDATE_IN_PROGRESS | AWS::IAM::Policy | SignupApiLambdaPOSTactivationsServiceRoleDefaultPolicyDE00BD65
dev-convento-signupApi | UPDATE_IN_PROGRESS | AWS::IAM::Policy | SignupApiLambdaPOSTregistrationsServiceRoleDefaultPolicy9B80B04C
dev-convento-signupApi | UPDATE_FAILED | AWS::IAM::Policy | SignupApiLambdaPOSTregistrationsServiceRoleDefaultPolicy9B80B04C Actions/Condition can contain only one colon. (Service: AmazonIdentityManagement; Status Code: 400; Error Code: MalformedPolicyDocument; Request ID: 64ca5b25-90b4-4fc7-b981-cb619b3bbcd9; Proxy: null)
dev-convento-signupApi | UPDATE_FAILED | AWS::IAM::Policy | SignupApiLambdaPOSTactivationsServiceRoleDefaultPolicyDE00BD65
dev-convento-signupApi | UPDATE_ROLLBACK_COMPLETE | AWS::IAM::Policy | SignupApiLambdaPOSTactivationsServiceRoleDefaultPolicyDE00BD65
dev-convento-signupApi | UPDATE_ROLLBACK_COMPLETE | AWS::IAM::Policy | SignupApiLambdaPOSTregistrationsServiceRoleDefaultPolicy9B80B04C
dev-convento-signupApi | UPDATE_FAILED | AWS::CloudFormation::Stack | dev-convento-signupApi
❌ dev-convento-signupApi failed: Actions/Condition can contain only one colon. (Service: AmazonIdentityManagement; Status Code: 400; Error Code: MalformedPolicyDocument; Request ID: 64ca5b25-90b4-4fc7-b981-cb619b3bbcd9; Proxy: null)
Stack dev-convento-signupApi
Status: failed
Error: Actions/Condition can contain only one colon. (Service: AmazonIdentityManagement; Status Code: 400; Error Code: MalformedPolicyDocument; Request ID: 64ca5b25-90b4-4fc7-b981-cb619b3bbcd9; Proxy: null)
Garret Harp
10/29/2021, 4:26 PMLukasz K
10/29/2021, 6:36 PMGarret Harp
10/29/2021, 10:13 PM