Skip to content

Automate AWS EC2 deployment with GitHub Actions and OpenID/AWS setup

Notifications You must be signed in to change notification settings

leticiavalladares/ring-challenge-team1-ec2-nr3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Server deploy

Automate server deployment with GitHub Actions

Requirements:

  • OpenID/AWS setup completed.

Steps:

  1. Create your own repository
  2. Copy infrastructure files from your own branch from https://github.com/muhammetkoele/ring-number-challenge-team-1 in your new repository
  3. Create .github/workflows folders
  4. Then inside workflows, create yaml file (deploy-infra.yaml) with aws and terraform instructions for GitHub actions.
  5. Add permimssions on terraform-deployment if they were not already included:
    permissions:
      packages: write
      contents: read
      id-token: write
  1. Add your arn:aws:iam role from AWS for role/github-actions-oidc on your deploy-infra.yaml
  2. Push your code and that will trigger the GitHub Actions

About

Automate AWS EC2 deployment with GitHub Actions and OpenID/AWS setup

Topics

Resources

Stars

Watchers

Forks