sst icon indicating copy to clipboard operation
sst copied to clipboard

Deployment error (next.js) for a new AWS account (free)

Open 12evgen opened this issue 1 year ago • 3 comments

Following the instructions (https://docs.sst.dev/start/nextjs), I'm trying to set up the SST for the next.js application I created a new AWS account (free), set up an AIM account according to the instructions (https://docs.sst.dev/advanced/iam-credentials#loading-from-a-file).

After the npx create-sst@latest command, I see the changes in my repository. And after that I run npx sst dev. My application is starting. image

Now I am trying to deploy my application and I get an error: "Access denied for operation 'AWS::CloudFront::Distribution: Your account must be verified before you can add new CloudFront resources. To verify your account, please contact AWS Support" image

How can this problem be solved?

12evgen avatar Mar 12 '24 07:03 12evgen

Hmm have you tried contacting AWS support about this?

jayair avatar Mar 12 '24 22:03 jayair

@jayair Yes, I contacted support but I haven't received a response yet. However, such a bug was noticed in this issue - https://github.com/sst/sst/issues/3429

12evgen avatar Mar 13 '24 04:03 12evgen

Welp, can confirm this also. I am trying to delete my dev stage resources and deploy the prod one. I think it has something to do with resources, sst creating many resources for NextjsSite stack.

yarabramasta avatar Apr 04 '24 17:04 yarabramasta