Skip to content

Complete Project Automation: EC2 Deployment Using Terraform & GitHub Workflow (deploy.yml) #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

git-user-9
Copy link
Owner

Pull Request Title:
Complete Project Automation: EC2 Deployment Using Terraform & GitHub Workflow (deploy.yml)

Pull Request Description:
This pull request introduces full automation for deploying AWS EC2 instances using Terraform and the GitHub Actions workflow (deploy.yml). The README has been updated to clearly explain the setup and workflow for better usability. Key changes include:

  • Updated the project structure section to reflect the current file organization.

  • Marked deploy.sh as obsolete and replaced it with the deploy.yml GitHub Actions workflow.

  • Added instructions for forking the repository, which is necessary to add GitHub Secrets.

  • Explained how to configure SSH private keys from AWS .pem files.

  • Expanded the workflow overview to describe:

    • Provisioning an EC2 instance with write access for deploying the Maven app and uploading logs to S3.
    • Provisioning a second EC2 instance with read-only access for pulling and validating logs.
    • Automating log validation and printing the last 20 lines of each log via SSH.
  • Documented all trigger methods, including branch pushes, git tags, and manual runs.

This update makes it easier for others to understand, use, and extend the project’s automated deployment process.

This feature/assignment [devops/a3] has been continued from [devops/a2] branch. The PR has been raised on [main] branch to keep track of each feature/assignment on the long run.

Image below shows the successful execution of the feature/assignment.
image

@Siddpawar9222
Copy link

Well explain , Lets discuss in meeting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants