Repository navigation
single ec2 deploy script fix - #217
Merged
Merged
Conversation
bjsvedin
approved these changes
Nov 10, 2026
# Conflicts: # deploy-aws-ec2/src/main/kotlin/com/lightningkite/lightningserver/terraform/aws/ec2/TerraformAwsSingleEc2Builder.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Duplicate nginx
default_serverThe catch-all
serverblock (which drops unknown hosts and bare-IP requests) lived insidenginxServers(domain). That function is called once per domain, so a deployment with a separate WebSocket domain got the block twice. nginx allows only onedefault_serverper address and port, sosystemctl restart nginxfailed and the init script aborted. The catch-all is now emitted once innginxInstall(), before the per-domain blocks.Atlas IP access list blocked the instance
terraformManagedVPCreportedmodule.vpc.nat_public_ipsas the VPC's NAT gateway IPs. Since service-abstractions 1.4,mongodbAtlas/mongodbAtlasFreeallowlist exactly those IPs instead of0.0.0.0/0. The single-EC2 instance runs in a public subnet with an Elastic IP, so its traffic goes out through the internet gateway as the EIP, not through the NAT. Atlas rejected every connection (SSLException: Received fatal alert: internal_error), the liveness check failed, and the first deploy rolled back. When IPv4 is enabled,natGatewayIpsis now[aws_eip.main.public_ip].