Skip to content
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

CICD: Implement Terraform Workflow for EKS Deployment #41

Merged
merged 6 commits into from
Apr 23, 2024
Merged

Conversation

KyleOps
Copy link
Collaborator

@KyleOps KyleOps commented Apr 18, 2024

This PR introduces a new GitHub Actions workflow to automate the infrastructure deployment process using Terraform. The workflow is designed to perform a terraform plan followed by a conditional terraform apply. The apply step is executed only if the workflow is manually triggered from the main branch, ensuring controlled updates.

Key Features:

  • Terraform Plan: Automatically generates a plan to show potential changes to the infrastructure, aiding in review and validation.

  • Conditional Apply: The terraform apply is conditionally run based on the trigger context. It is only executed when the workflow is manually triggered from the main branch, providing an extra layer of safety for production changes.

  • Role Assumption: Utilises a custom AWS IAM role, crafted to deploy resources to our Amazon EKS cluster. This role ensures that the workflow has the necessary permissions to execute actions within our AWS account securely.

@ir4y ir4y merged commit f7c3bb1 into master Apr 23, 2024
2 checks passed
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.

None yet

2 participants