You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry - follow the instructions in the README.md file to the letter. However, if you are deploying (either directly or with GitHub Actions) and you are deploying to a different profile, then you need an @aws section in your app.arc file that should look like the one in my comment with the exception of the profile line not being "profile default" but "profile my-other-aws-config-profile". Note that this only works if your aws config has multiple profiles in it. I wouldn't recommend using an AWS_PROFILE env var. That's too easy to miss from time to time. I recommend the @aws section in the .arc file instead. Hope that helps.
Ok, thanks. I looked in https://github.com/remix-run/grunge-stack and couldn't see any app.arc file so I'm guessing it is generated by one of the setup steps.
I've never used Architect so will have to do a bit more reading to get my head around what it is doing.
What version of Remix are you using?
1.5.1
Steps to Reproduce
Expected Behavior
success
Actual Behavior
missing SESSION_SECRET error in lambda function
error occurs in line 7 of session.server.ts: invariant(process.env.SESSION_SECRET, "SESSION_SECRET must be set");
Note that this will be fixed if the .arc file has an @aws section
Example:
@aws
region us-east-2
profile default
With that entry in the .arc file, it would be clear to a user what needs to be changed (i.e. change default to the desired profile)
Documentation could be amended to suggest that is where to change the region and profile if needed.
The text was updated successfully, but these errors were encountered: