MikeBild / sveltekit-adapter-aws

A SvelteKit adapter for AWS using the AWS-CDK
MIT License
135 stars 31 forks source link

Problem with the AWS regions, help! :) #38

Open jaime-skupee opened 1 year ago

jaime-skupee commented 1 year ago

Describe the bug I installed the adapter make a wonderful deploy to my configured account in the region us-east-2 and then when I change my region to us-east-1 always gives me an error of SSM parameter /cdk-bootstrap/hnb659fds/version not found I checked on the AWS dashboard and that parameter is on the us-east-2 region, but I don't remember myself creating it, so I though maybe the adapter created it for me, but nothing happens on trying to deploy to a different region, do I have to create it myself? or is it something else or I missing? I would really love to been able to deploy to a different region the stack.

This is my parameter store on us-east-1

Captura de Pantalla 2023-04-10 a la(s) 12 26 48

And this one my parameter store on us-east-2

Captura de Pantalla 2023-04-10 a la(s) 12 28 33

To Reproduce Steps to reproduce the behavior:

  1. Create a SvelteKit project "my-app" - npm create svelte@latest my-app
  2. cd my-app
  3. npm install
  4. npm install -D sveltekit-adapter-aws
  5. edit svelte.config.js
  6. configure your account aws configure on us-east-2 (this was my default region)
  7. npm build
Captura de Pantalla 2023-04-10 a la(s) 12 59 08

Trying with another region

  1. configure your account aws configure on us-east-1
  2. npm run build
Captura de Pantalla 2023-04-10 a la(s) 12 18 11

Expected behavior That I could make the deploy in different regions

Desktop (please complete the following information):

Additional context All this actions I'm making them on my AWS personal account who I have full permissions over all the services, and I was testing this adapter to use on the job account, that I don't have but just the permissions that I ask and they approve and they want me to work mostly on Frankfurt region

k-dahl commented 1 year ago

Hey @jaime-skupee ,

CDK has a bootstrap routine that needs to be run for each different region you are using it in:

https://docs.aws.amazon.com/cdk/v2/guide/bootstrapping.html

jaime-skupee commented 1 year ago

Thanks @k-dahl sorry the late response, but yeah, thats what I did and all work wonderful I'm really appreciate 😄