meraj

meraj

NervesHub Deployment on AWS

Hello,

Did anyone try to setup NervesHub on AWS (GitHub - nerves-hub/terraform: Terraform files · GitHub)? I am able to deploy it via these terraform scripts from my account with some minor changes but having issues with running the api and device images:

nerveshub/nerves_hub_api:latest - not working and exiting
nerveshub/nerves_hub_device:latest - not working and exiting
nerveshub/nerves_hub_www:latest - working on aws

I tried for the same docker images on local and none is working and when I try to view the logs it show this:

2020/12/14 13:50:55 MissingRegion: could not find region configuration
panic: MissingRegion: could not find region configuration

goroutine 1 [running]:
log.Panic(0xc42012dee0, 0x1, 0x1)
	/usr/local/Cellar/go/1.10.3/libexec/src/log/log.go:326 +0xc0
main.ExportVariables(0xc420084098, 0xc42001402d, 0x3, 0x0, 0x75f5f8, 0x7, 0x0, 0x0)
	/Users/aorfin/go/aws-env/aws-env.go:62 +0x17d
main.main()
	/Users/aorfin/go/aws-env/aws-env.go:37 +0x193
fatal error: Unable to locate credentials
2020/12/14 13:51:37 MissingRegion: could not find region configuration
panic: MissingRegion: could not find region configuration

goroutine 1 [running]:
log.Panic(0xc42011dee0, 0x1, 0x1)
	/usr/local/Cellar/go/1.10.3/libexec/src/log/log.go:326 +0xc0
main.ExportVariables(0xc42000c0a8, 0xc42001402d, 0x3, 0x0, 0x75f5f8, 0x7, 0x0, 0x0)
	/Users/aorfin/go/aws-env/aws-env.go:62 +0x17d
main.main()
	/Users/aorfin/go/aws-env/aws-env.go:37 +0x193
fatal error: Unable to locate credentials

Any idea on why it is not working? Thank you.

First Post!

Mrjaco12

Mrjaco12

Do you have AWS credentials set in the environment where the docker images are being built? This error looks like it’s being thrown by aws-env which required and AWS_REGION to be set in the env.

Where Next?

Popular in Questions Top

johnnyicon
Hi all, I’ve just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage. I’m trying to use Postgres...
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? Ecto.Repo — Ecto v3.14.0 has exampl...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
lucidguppy
I have a super simple question about elixir - how would I take a file like this foo bar baz and output a new file that enumerates th...
New
itssasanka
Hi all, Trying to get some more clarity over utc_datetime and naive_datetime for Ecto: The documentation above suggests that while ...
New
RisingFromAshes
I’ve read in another post that it may be possible with a router helper - but I couldn’t find an appropriate one, and tbh, I’m still just ...
New
dblack
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar. I p...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New

Other popular topics Top

sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
985 42920 311
New
chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 30877 112
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
aesmail
Hello guys, I have finally made it. I created an admin interface for a framework. It’s been on my todo list for years and with the curre...
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
saif
Hello everyone, Long time lurker first time poster here. I’ve recently begun working on Elixir full-time again! :raised_hands: It’s been...
New
komlanvi
Hi everyone, I was playing with phoenix liveView but I run into an issue. I have a form and want to validate each input text when the te...
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New

We're in Beta

About us Mission Statement