Mischa Spiegelmock
01/03/2022, 7:22 PMsst build in my CI build/test action, but I get this error:
[Error at /none-platform-tombo] Need to perform AWS calls for account my-account, but no credentials have been configured
Found errors
There was an error synthesizing your app.
npm ERR! Lifecycle script `build` failed with error:
npm ERR! Error: command failed
npm ERR! in workspace: platform-infra@0.1.0
npm ERR! at location: /home/runner/work/platform/platform/packages/infrathdxr
01/03/2022, 8:02 PMFrank
fromLookup() calls in CDK makes an AWS SDK call if the value is not found in cdk.context.jsonFrank
sst build, do a git diff and see if the cdk.context.json is updated. If it is, commit the changes and the next build should not make any AWS calls.Frank
Mischa Spiegelmock
01/04/2022, 8:04 AMMischa Spiegelmock
01/04/2022, 8:59 AMFrank
git statusFrank
git diff doesn’t show if it’s a file is newly addedMischa Spiegelmock
01/04/2022, 2:03 PMnothing to commit, working tree cleanFrank
~/.aws folder on my local machine, and was able to sst build no problemFrank
sst build locally without an AWS profile?Mischa Spiegelmock
01/05/2022, 10:37 AMsst cdk synth fails with the same error for me so it sounds like more of a CDK issue for me not SSTFrank
fromXXXX to look up things in ur AWS account. ie. ec2.Vpc.fromLookup(). Also, CDK tries to resolve the AWS account ID while building, but that won’t fail the build i think.Frank
Mischa Spiegelmock
01/25/2022, 12:04 PM