opennextjs / opennextjs-aws

Open-source Next.js adapter for AWS
https://open-next.js.org
MIT License
3.98k stars 121 forks source link

Do you have example Terraform, CloudFormation, SDK, or other infrastructure examples? #22

Closed Gregory-Ledray closed 5 months ago

Gregory-Ledray commented 1 year ago

Hi. Do you have example Terraform, CloudFormation, SDK, or other infrastructure examples? Although I can build my own, I'd prefer to start with an example template.

fwang commented 1 year ago

Hey @Gregory-Ledray, I will share some examples shortly. Will keep you posted here.

Dilven commented 1 year ago

A simple example would be very helpful to get started with this adapter :)

ghost commented 1 year ago

That would be excellent! I would particularly be interested in a Terraform example.

Thanks for all the hard work on this awesome project, @fwang!

taymoork2 commented 1 year ago

@fwang with SST2 out and it's examples still being AWS heavy, the need for other infra templating examples is much needed, especially for those with enterprise setups that aren't using AWS or on-prem solutions.

taymoork2 commented 1 year ago

There's not enough documentation at the moment that explains how to use the SSG generated files in the .next folder along with .open-next build assets

unless it's mentioned somewhere in the discord

devmanbr commented 1 year ago

I'm kinda newbie, and really some examples would help a lot (especially using terraform, which is my main need).

thank you so much for this amazing project!

brett-james-rocketlab commented 1 year ago

Also would like examples for SSG too!

mark-strudwick commented 1 year ago

I +1 this, it would be nice to include some examples using CFN, CDK, or TF. SST2 looks cool, but it deploys a bunch of resources that are unnecessary when the project only requires the basic resources to run open-next

Sreejit7 commented 1 year ago

+1 for a much-needed Terraform example! Would love to try out open-next which will finally allow us to upgrade our codebases to Next.js 13!

jayair commented 1 year ago

Mischa released one for CDK that uses OpenNext: https://github.com/jetbridge/cdk-nextjs

RJPearson94 commented 1 year ago

hey all,

For anyone interested, I have been developing a Terrraform module that will deploy a Open Next app to AWS. It can be found at https://github.com/RJPearson94/terraform-aws-open-next and in the Terraform Registry.

Examples of how the module can be used can be found at https://github.com/RJPearson94/terraform-aws-open-next-examples

Hope it helps. Any feedback is welcome. Please raise an issue on the corresponding repo

Also to the contributors, just wanted to say great work on open-next, its super simple to use and made making this module quite easy 🙌

fwang commented 1 year ago

Hey @RJPearson94, this is awesome! Added to the README — https://github.com/serverless-stack/open-next#other-frameworks.

benkraus commented 1 year ago

Also throwing out there that I stumbled upon this: https://github.com/nhs-england-tools/terraform-aws-opennext

conico974 commented 5 months ago

https://open-next.js.org/reference-implementation There is also an implementation used in the e2e tests https://github.com/sst/open-next/blob/main/examples/sst/stacks/OpenNextReferenceImplementation.ts