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

Add tf iac #415

Merged
merged 298 commits into from
May 21, 2024
Merged

Add tf iac #415

merged 298 commits into from
May 21, 2024

Conversation

jdbass
Copy link
Contributor

@jdbass jdbass commented May 21, 2024

Description of the Change

Adds Tofu/Terragrunt IaC and github actions workflows to manage release & deployment

Benefits

  • defines a consistent Appointment infrastructure for all stages of the SDLC
  • provides pipelines to manage build, testing & deployment of infrastructure & code

Applicable Issues

@jdbass jdbass added the enhancement New feature or request label May 21, 2024
@jdbass jdbass requested a review from MelissaAutumn May 21, 2024 16:05
@jdbass jdbass self-assigned this May 21, 2024
Copy link
Member

@MelissaAutumn MelissaAutumn left a comment

Choose a reason for hiding this comment

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

Just a few comments!

terragrunt init -upgrade
terragrunt validate
terragrunt plan -out tfplan
# terragrunt apply tfplan
Copy link
Member

Choose a reason for hiding this comment

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

Can we remove these?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These are just disabled temporarily so we can verify the production release workflow without actually overwriting the production environment

release-production:
name: Release to Production
needs: deploy-iac
if: startsWith(github.ref_name, 'r-') # the prefix we have added to the tag
Copy link
Member

Choose a reason for hiding this comment

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

Is this branch or tag name? so a tag name of r-05-21-24 would trigger it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

tag name, it's created by the create-release job in the deploy-staging workflow. We can change how it's named if desired

Copy link
Member

Choose a reason for hiding this comment

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

Naw it's good, thanks!

# terragrunt apply tfplan

# - name: Deploy frontend to S3
# run: aws s3 sync ./frontend/frontend/dist "s3://${{ needs.deploy-iac.outputs.bucket }}"
Copy link
Member

Choose a reason for hiding this comment

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

I'm guessing this is temp?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is just disabled temporarily so we can verify the production release workflow without actually overwriting the production environment

@MelissaAutumn MelissaAutumn merged commit 4f895c9 into main May 21, 2024
4 checks passed
@MelissaAutumn MelissaAutumn deleted the add-tf-iac branch May 21, 2024 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants