Skip to content

ec2 instance with nginx load balancer, ansible configuration and tf deploy

Notifications You must be signed in to change notification settings

BekeAtGithub/juliaEC2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ main.jl          # Julia source code for the app 
β”‚   β”‚   β”œβ”€β”€ Database.jl      # Module for interacting with RDS database
β”‚   β”‚   └── Utils.jl         # Utility functions (hostname, version handling, etc.)
β”‚   β”œβ”€β”€ Dockerfile           # Dockerfile for containerizing the Julia app 
β”‚   └── requirements.txt     # Optional if any Python/other dependencies 
β”œβ”€β”€ ansible/
β”‚   β”œβ”€β”€ playbook.yml         # Ansible playbook for configuring the EC2 instance and NGINX
β”‚   β”œβ”€β”€ roles/
β”‚   β”‚   β”œβ”€β”€ app/
β”‚   β”‚   β”‚   └── tasks/main.yml  # Tasks to deploy the app on EC2 instance
β”‚   β”‚   β”œβ”€β”€ nginx/
β”‚   β”‚   β”‚   └── tasks/main.yml  # Tasks to configure NGINX load balancer
β”‚   └── inventory             # Inventory file defining EC2 instances
β”œβ”€β”€ terraform/
β”‚   β”œβ”€β”€ main.tf               # Main Terraform configuration for infrastructure setup
β”‚   β”œβ”€β”€ variables.tf          # Terraform variables
β”‚   β”œβ”€β”€ outputs.tf            # Terraform outputs (EC2 public IP, RDS endpoint, etc.)
β”‚   β”œβ”€β”€ provider.tf           # AWS provider configuration
β”‚   β”œβ”€β”€ ecs.tf                # ECS resources (optional, if you choose to deploy via ECS)
β”‚   β”œβ”€β”€ rds.tf                # RDS database setup
β”‚   β”œβ”€β”€ ec2.tf                # EC2 instance setup
β”‚   β”œβ”€β”€ lb.tf                 # Load balancer configuration
β”‚   └── dns.tf                # DNS configuration (public DNS records)
β”œβ”€β”€ .github/
β”‚   └── workflows/
β”‚       └── ci_cd.yml         # GitHub Actions workflow for CI/CD
└── README.txt                # Project documentation

About

ec2 instance with nginx load balancer, ansible configuration and tf deploy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published