Skip to content

Ci/feat/terragrunt multi module#6738

Merged
nischalstha9 merged 8 commits intotasking-manager-fastapifrom
ci/feat/terragrunt-multi-module
Mar 6, 2025
Merged

Ci/feat/terragrunt multi module#6738
nischalstha9 merged 8 commits intotasking-manager-fastapifrom
ci/feat/terragrunt-multi-module

Conversation

@nischalstha9
Copy link
Copy Markdown
Contributor

@nischalstha9 nischalstha9 commented Feb 11, 2025

What type of PR is this? (check all applicable)

  • 🍕 Feature
  • 🐛 Bug Fix
  • 📝 Documentation
  • 🧑‍💻 Refactor
  • ✅ Test
  • 🤖 Build or CI
  • ⚒️ InfraStructure AWS ECS Cron Service

Related Issue

  • There was no option to run terragrunt workflow to update secrets in AWS Secret Manager.
  • The terragrunt apply stage does not run automatically after plan.
  • There is no review based deployment so anyone is able to deploy infrastructure code.
  • This PR adds Cron Service as ecs service in infra directory

Describe this PR

This PR adds feature to run terragrunt workflow on different directory with environment based plan and apply stage and GH review based deployment for security purpose.
You can run plan workflow on following modules and after it success, it will auto trigger apply module:

  • purgeable/ecs/
  • purgeable/ecs-cron/
  • non-purgeable/extras/

This PR too adds feature of review based deployment utilizing GitHub Environments. The plan and apply stage are on separate workflow. When the plan workflow (terragrunt plan) completes with review, the apply workflow runs automatically and waits for review to run terragrunt apply.

Closes #6739
Fixes: #6774

@dakotabenjamin
Copy link
Copy Markdown
Member

Huge number of merge conflicts here that will make it difficult for me to review. Can we also discuss over a call the background of this PR and intentions for merging into the fastapi branch?

@nischalstha9 nischalstha9 force-pushed the ci/feat/terragrunt-multi-module branch from 042a58b to e0c5725 Compare February 14, 2025 05:37
@nischalstha9
Copy link
Copy Markdown
Contributor Author

nischalstha9 commented Feb 14, 2025

@dakotabenjamin I have rebased and now there are only changes that need review.
If you are having any kind of confusion or want to discuss this over a call I am happy to attend it. Do invite me at your preferred time.

Copy link
Copy Markdown
Member

@dakotabenjamin dakotabenjamin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Just needs two small changes.

Comment thread .github/workflows/terragrunt-apply.yml Outdated
Comment thread .github/workflows/terragrunt-plan.yml Outdated
@nischalstha9 nischalstha9 force-pushed the ci/feat/terragrunt-multi-module branch from e0c5725 to c24266e Compare February 19, 2025 04:28
@nischalstha9 nischalstha9 force-pushed the ci/feat/terragrunt-multi-module branch from c24266e to cdb0eb6 Compare February 20, 2025 11:13
@nischalstha9 nischalstha9 force-pushed the ci/feat/terragrunt-multi-module branch from cdb0eb6 to 738afc8 Compare February 20, 2025 11:50
@nischalstha9 nischalstha9 force-pushed the tasking-manager-fastapi branch from 4ccfbc5 to 044c3bc Compare March 6, 2025 06:39
@nischalstha9 nischalstha9 force-pushed the ci/feat/terragrunt-multi-module branch 3 times, most recently from 4956136 to d41c12e Compare March 6, 2025 07:01
@nischalstha9 nischalstha9 force-pushed the ci/feat/terragrunt-multi-module branch from cfb2b66 to f2498b5 Compare March 6, 2025 07:03
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Mar 6, 2025

@nischalstha9 nischalstha9 merged commit 11b7f46 into tasking-manager-fastapi Mar 6, 2025
3 checks passed
@nischalstha9 nischalstha9 mentioned this pull request Mar 6, 2025
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants