le-tf-infra-aws icon indicating copy to clipboard operation
le-tf-infra-aws copied to clipboard

Feature | Implement GitOps with GitHub Actions for Ref Arch

Open exequielrafaela opened this issue 1 year ago • 0 comments

Describe the Feature

  • The feature request is to implement GitOps with GitHub Actions for the Reference Architecture Terraform workflow.
  • This is currently a "nice to have" feature but could be prioritized based on project needs.
  • Consider the already developed GH actions and workflows in case they could help to speed up things as an init references
    • https://github.com/binbashar/le-devops-workflows
    • https://github.com/binbashar/le-devops-workflows/actions
    • https://github.com/binbashar/le-devops-workflows/tree/master/.github/workflows

Expected Behavior

Once implemented, the Reference Architecture should support GitOps using GitHub Actions. This would allow for more streamlined and automated deployment workflows.

Use Case

This feature is valuable for improving the efficiency and reliability of deployment workflows. It would be particularly useful for client projects that require this feature.

Describe Ideal Solution

The ideal solution would involve integrating GitHub Actions into the Reference Architecture to support GitOps workflows.

  • Possible reference examples
    • https://github.com/Azure-Samples/terraform-github-actions
    • https://medium.com/@gallaghersam95/the-best-terraform-cd-pipeline-with-github-actions-6ecbaa5f3762
    • https://spacelift.io/blog/github-actions-terraform

An alternative could be to use the Atlantis AWS module, which appears to be widely adopted and solid. This module includes a practical example for the Reference Architecture of ECS Fargate, including VPC, SSL certificate using ACM, ALB, Domain name using AWS Route53, AWS ECS and AWS Fargate running Atlantis Docker image, and AWS Parameter Store for secrets management.

Alternatives Considered

An alternative could be to continue without GitOps support, relying on existing manual deployment workflows. However, this could lead to inefficiencies and potential errors.

Additional Context

This feature request arose from a discussion about improving deployment workflows and efficiency. The addition of GitOps support using GitHub Actions was suggested as a potential solution.

exequielrafaela avatar Jun 20 '23 15:06 exequielrafaela