sladg / nextjs-lambda

Lambda deployments for Nextjs12 & Nextjs13 (standalone). Easy CLI commands to get your standalone Next output to run in AWS Lambda (not @Edge)! Uses CDK in behind and produces code zips importable to Terraform, Serverless, Azure, etc.
MIT License
169 stars 19 forks source link

Specify Profile for CDK to use #75

Closed bounds closed 1 year ago

bounds commented 1 year ago

Hoping there would be a deploy flag for choosing an AWS profile from ~/.aws/credentials

Bit of a pain to modify [profile.default]to get this going.

Maybe there's a better way?

sladg commented 1 year ago

I would suggest giving a shot to https://www.npmjs.com/package/aws-profile-switcher :)

bounds commented 1 year ago

But CDK already has a flag you can forward!

bounds commented 1 year ago

Alright I'll figure it out thanks!

bounds commented 1 year ago

Opened PR #77

sladg commented 1 year ago

Merged, closing, thank you for PR!