Rupert Smith
03/07/2021, 1:14 PM$ npx sst build
Preparing your SST app
Transpiling source
Synthesizing CDK
[Error at /dev-eco-server-build-job] You are not authorized to perform this operation.
The code is:
const ec2 = require("@aws-cdk/aws-ec2");
export default class BuildJobStack extends sst.Stack {
constructor(scope, id, props) {
super(scope, id, props);
const vpc = new ec2.Vpc(this, "eco-vpc", {
maxAzs: 1
});
Note, this isn't even deploying it, just running build
on command line. Any ideas?Rupert Smith
03/07/2021, 1:38 PMRupert Smith
03/07/2021, 1:38 PMAndreas
03/07/2021, 1:53 PMRupert Smith
03/07/2021, 5:24 PMFrank
ec2.Vpc
, but you can use ec2.Vpc
directly.Frank
build
, CDK needs to look up certain things in your AWS account in order to build the CloudFormation template.Frank
Frank
npx sst build --verbose
and all AWS api calls will be printed out, and you figure out which one failed.Frank
Rupert Smith
03/08/2021, 10:15 AM[AWS ec2 403 0.123s 0 retries] describeAvailabilityZones({})
Call failed: describeAvailabilityZones(undefined) => You are not authorized to perform this operation. (code=UnauthorizedOperation)