Albert Gao
06/20/2021, 1:06 AMTrashyDev
06/20/2021, 5:14 PMAlbert Gao
06/21/2021, 8:23 AMLuca Demmel
06/21/2021, 9:57 AMTrashyDev
06/21/2021, 1:55 PM{
"message": "Missing Authentication Token"
}
thdxr
06/21/2021, 6:37 PMOmi Chowdhury
06/22/2021, 2:43 AMBrinsley
06/22/2021, 6:50 AMuat-service-stack failed: The uat-service-stack stack failed to deploy.
Looking further up the logs I see this:
Deploying stacks
uat-service-stack: deploying...
[0%] start: Publishing _sha_:current
[16%] fail: No bucket named 'cdk-blah-assets-ACCOUNT-REGION'. Is account ACCOUNT bootstrapped?
...
Iāve been trying to fix and Google around this problem for around three days and Iām just dead in the water. From what Iāve read, using sst deploy
should take care of the CDK bootstrapping right? What am I missing here?Tomasz Michalak
06/22/2021, 8:02 AMcachePolicyName: scope.stageName + 'CFrontCachePolicy'
where scope is <http://sst.App|sst.App>
.
The problem is that stageName
is empty. What is the reason for that?Karo
06/22/2021, 7:59 PM[0%] start: Publishing 56390565ccdc759b266225bf9130ac51078bc677d20185a4d279888b294a2688:xxx-us-east-1
[50%] success: Published 56390565ccdc759b266225bf9130ac51078bc677d20185a4d279888b294a2688:xxx-us-east-1
[50%] start: Publishing 3035421a19ebfd74d42640670926ecc263446e6891f9bcb59cc9b6fe93d961d7:xxx-us-east-1
[100%] fail: Inaccessible host: `<http://cdk-hnb659fds-assets-xxx-us-east-1.s3.amazonaws.com|cdk-hnb659fds-assets-xxx-us-east-1.s3.amazonaws.com>'. This service may not be available in the `us-east-1' region.
After the first run, this is the error I get when retrying:
[0%] start: Publishing c3a93133082f6ad1e61e99d22b86c5a4b6293e977bb569f297395cafa327b509:xxx-us-east-1
[33%] success: Published c3a93133082f6ad1e61e99d22b86c5a4b6293e977bb569f297395cafa327b509:xxx-us-east-1
[33%] start: Publishing 67b7823b74bc135986aa72f889d6a8da058d0c4a20cbc2dfc6f78995fdd2fc24:xxx-us-east-1
[66%] success: Published 67b7823b74bc135986aa72f889d6a8da058d0c4a20cbc2dfc6f78995fdd2fc24:xxx-us-east-1
[66%] start: Publishing d887caad65f1d4216fbfd254545dee7bb6d8a71ea2efe1834675512e73b8acb6:xxx-us-east-1
[100%] fail: socket hang up
Any ideas? Has anybody seen that one before?Mr.9715
06/22/2021, 8:33 PMBrett Gullan
06/23/2021, 2:18 AMSimon Reilly
06/23/2021, 9:27 AMTomasz Michalak
06/23/2021, 1:01 PMNick Laffey
06/25/2021, 8:05 PMTony J
06/28/2021, 1:57 AMDrew
06/28/2021, 8:19 PMBrett Gullan
06/29/2021, 4:02 AMTony J
06/29/2021, 10:47 PMSam Frampton
06/30/2021, 11:59 AMsst start
to develop lambda locally. I run the command and I get the response Unknown script "start".
Ashishkumar Pandey
06/30/2021, 1:44 PMstageName
?Andrew Blaney
07/01/2021, 1:49 PMsst.Table
that already exists, with 1 existing secondary index. I've tried adding it to TableProps.secondaryIndexes
property of the table, and also tried using table.dynamodbTable.addGlobalSecondaryIndex()
but when I deploy, no changes are found for the stack.. any ideas? thanks!Alfred Brose
07/01/2021, 3:10 PMSam Frampton
07/01/2021, 5:43 PMGuy Shechter
07/01/2021, 9:41 PM#13 [9/9] RUN if [ -f 'requirements.txt' ]; then pip install -r requirements.txt -t .; else echo "requirements.txt not found"; fi
#13 0.723 ERROR: Could not find a version that satisfies the requirement myprivatemodule (from versions: none)
#13 0.723 ERROR: No matching distribution found for myprivatemodule
#13 ERROR: executor failed running [/bin/sh -c if [ -f 'requirements.txt' ]; then pip install -r requirements.txt -t .; else echo "requirements.txt not found"; fi]: exit code: 1
------
> [9/9] RUN if [ -f 'requirements.txt' ]; then pip install -r requirements.txt -t .; else echo "requirements.txt not found"; fi:
------
executor failed running [/bin/sh -c if [ -f 'requirements.txt' ]; then pip install -r requirements.txt -t .; else echo "requirements.txt not found"; fi]: exit code: 1
Error: docker exited with status 1
at dockerExec (/src/myapp/node_modules/@aws-cdk/core/lib/bundling.ts:450:11)
at Function.fromBuild (/src/myapp/node_modules/@aws-cdk/core/lib/bundling.ts:266:5)
at Function.fromAsset (/src/myapp/node_modules/@aws-cdk/core/lib/bundling.ts:156:24)
at Object.bundle (/src/myapp/node_modules/@serverless-stack/resources/src/util/python/bundling.ts:107:41)
at Object.builder (/src/myapp/node_modules/@serverless-stack/resources/src/util/pythonBuilder.ts:42:15)
at new Function (/src/myapp/node_modules/@serverless-stack/resources/src/Function.ts:245:21)
at Function.fromDefinition (/src/myapp/node_modules/@serverless-stack/resources/src/Function.ts:326:14)
at Api.addRoute (/src/myapp/node_modules/@serverless-stack/resources/src/Api.ts:339:23)
at /src/myapp/node_modules/@serverless-stack/resources/src/Api.ts:198:14
at Array.forEach (<anonymous>)
There was an error synthesizing your app.
FWIW, when building my own docker containers I use the following script with environment AWS_* credentials to pull dependencies defined in requirements.txt
from both AWS CodeArtifact and PyPi.org
#!/bin/sh
CODEARTIFACT_AUTH_TOKEN=`/usr/local/bin/aws codeartifact get-authorization-token --domain mydomain --domain-owner 1111111111 --query authorizationToken --output text`
pip3 install -v d \
--index-url "<https://aws>:$CODEARTIFACT_AUTH_TOKEN@mydomain-1111111111.d.codeartifact.us-east-1.amazonaws.com/pypi/myprivatemodule/simple/" \
--extra-index-url "<https://pypi.org/simple>" "myprivatemodule>=0.0.16"
One workaround would be to publish a lambda Layer of my private module, but Iām not sure that solution would work for local debugging.Branko Gvoka
07/02/2021, 10:02 AMTobias Otte
07/04/2021, 10:03 PMconst edgeFunc = new experimental.EdgeFunction(this, "WebsiteEdge", {
runtime: Runtime.NODEJS_12_X,
handler: "test.handler",
code: Code.fromAsset("src/test"),
stackId: `${scope.logicalPrefixedName("edge-lambda")}`,
});
Brett Gullan
07/05/2021, 12:58 AMdeploy
an SST API Stack, I'm getting a reported linting error. I can't figure out why it's happening. Have tried rolling back to earlier commits, but still getting the same error. Any pointers greatly appreciated š
SST debug log attached, if that helps!
BTW, everything works fine if I run locally, using npx sst start
Patrick Young
07/05/2021, 1:33 AMMichael Wolfenden
07/05/2021, 2:19 AMapi
construct so I can set these AWS::ApiGatewayV2::Stage RouteSettings
properties
{
"DetailedMetricsEnabled" : Boolean,
"ThrottlingBurstLimit" : Integer,
"ThrottlingRateLimit" : Double
}