sst / ion

SST v3
https://sst.dev
MIT License
1.88k stars 221 forks source link

How to connect to an existing S3 bucket and an existing cloudfront distribution #518

Closed richardvaldivieso closed 3 months ago

richardvaldivieso commented 3 months ago

I apologize in advance since this is not an issue, mostly I need help. I want to use ion in an existing mono-repo with different front-end frameworks. My app which is using Svelte is in that repo. When the whole repo is deployed, it uses Cloudfront distribution, S3 for the resources, and Cloudformation for applications. If I want to use Ion, the Cloudformation no longer needs it (is that correct?) also, how can I deploy it to an existing distribution and s3 bucket?

Another question: If I have to deploy to an existing bucket, how much would the IAM policy in the help section change? Should point to that bucket's arn? the deployment would not delete existing files?

thdxr commented 3 months ago

we don't support importing existing resources yet but it's on the roadmap

thdxr commented 3 months ago

going to close this issue for now until we implement sst import