Urgent.News

What's breaking now, across thousands of outlets.

Tech

AWS EC2 Deployment — Q&A Reference

A reference guide compiled from deploying two Node.js/Docker apps to AWS EC2, covering the real issues hit and how they were fixed. 1. Getting Connected Q: How do I SSH into my EC2 instance? chmod 400 your-key.pem ssh -i your-key.pem ubuntu@YOUR_ELASTIC_IP Type yes when asked about the fingerprint the first time. Q: chmod 400 doesn't seem to work / I get "bad permissions" / "Permission denied…

A guide compiled from deploying two Node.js/Docker applications to AWS EC2, addressing common issues encountered and their solutions. To access your instance, use the command: chmod 400 your-key.pem; ssh -i your-key.pem ubuntu@YOUR_ELASTIC_IP. If the chmod command fails, copy the private key from a Windows drive mounted in WSL and set permissions accordingly.

Verify which instance you are connected to by using curl commands to fetch the instance ID and public IP. For HTTPS without purchasing a domain, use sslip.io, which automatically resolves to the public IP. Real HTTPS can be obtained via Let's Encrypt via Certbot. Using the raw IP with HTTP will not work with Clerk or Razorpay, which require HTTPS with a proper hostname.

An Elastic IP is necessary to maintain a stable public IP for domain and certificate setup. To resolve "no space left on device" errors, allocate an Elastic IP and associate it with the instance. For disk space issues, increase the volume size through the AWS console or extend the partition on the server. Memory and swap problems can be addressed by adding swap space, as free-tier instances often have limited RAM.

Configure Nginx and Certbot for reverse proxy and free SSL, addressing common issues like OOM kills and Node.js memory limitations.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Hello Everyone

Hello everyone, I am new to coding just begun to learn the ins and outs of coding and what it can do. I am in the process of getting my Full Stack Developer certificates.

From Prompt to Playable: Building a Phaser Survival Game with Codex and SpriteShip

There is a big difference between a game prototype that technically works and one that feels like a game. Movement, spawning, upgrades, and collision can be built with colored rectangles.

  • Combines Phaser 3, Codex, and SpriteShip for top-down survival game
  • Generates animated characters, enemies, weapons, collectibles, and boss encounter
  • Streamlined asset integration speeds up development process

.NET 10 JSON Console Logging: Stop Parsing State.Message

The .NET 10 JSON console logging change is small enough to miss during an upgrade: the formatted message still exists, but a typical record no longer duplicates it at State.Message .

  • .NET 10 JSON console logging now places formatted message at top-level Message property
  • State.Message property now holds structured values, not duplicated formatted message
  • Parsers should prioritize top-level Message, retain State for structured data

More from Saturday 22 August →