MikeBild / sveltekit-adapter-aws

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

Adding additional policy statements to serverHandler #14

Closed CalebBassham closed 2 years ago

CalebBassham commented 2 years ago

Is your feature request related to a problem? Please describe.

I would like to be able to add additional policy statements to the serverHandler. Useful if using other AWS resources such as s3. In that case it could be nice to allow the s3:GetObject action for a bucket, so that you can fetch a file for a user for example.

Describe the solution you'd like

Probably add some sort of policy statement array to AWSAdapterStackProps.

Describe alternatives you've considered

Haven't really thought of a better solution.

MikeBild commented 2 years ago

solved by #15