Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any way to use IAM Role for auth in next.js api routes #3557

Closed
4 tasks done
juaoose opened this issue Jun 27, 2023 · 3 comments
Closed
4 tasks done

Is there any way to use IAM Role for auth in next.js api routes #3557

juaoose opened this issue Jun 27, 2023 · 3 comments
Labels
archived This issue has been locked. duplicate question Further information is requested

Comments

@juaoose
Copy link

juaoose commented Jun 27, 2023

Before opening, please confirm:

App Id

d14z3n2zfezi4a

AWS Region

us-east-1

Amplify Hosting feature

Not Applicable

Question

I have a Next.js app deployed on Amplify and I'd like to connect to DynamoDB from one API Route.

Is it possible to use the credentials provided by the service account instead of having to manage a set of AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY (plus having to rename them since the AWS_ environment variables are reserved)?

I tried adding the DynamoDB admin policy to the service role but it does not seem to work.

@juaoose juaoose added the question Further information is requested label Jun 27, 2023
@Jay2113
Copy link
Contributor

Jay2113 commented Feb 22, 2024

@juaoose 👋 , thanks for reaching out. We are tracking this as a feature request here #3205. I'll recommend subscribing to it to track updates.

@Jay2113 Jay2113 closed this as not planned Won't fix, can't repro, duplicate, stale Feb 22, 2024
Copy link

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

Copy link

This issue has been automatically locked.

@github-actions github-actions bot added the archived This issue has been locked. label Feb 22, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Feb 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived This issue has been locked. duplicate question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants