Skip to content

hynespm/gitlab-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3289398 · Aug 7, 2023

History

6 Commits
Aug 7, 2023
Aug 7, 2023
Aug 7, 2023
Aug 7, 2023

Repository files navigation

Description: Repository of gitlab templates for deploying infrastructure to AWS using Terraform

Purpose: This repository is for educational purposes.

Repository Structure

  • infrastructure - Collection of templates for gitlab jobs which repeat when deploying infrastructure to AWS via Terraform
  • .gitlab-ci-tf-aws-all-env-deploy.yml - Sample template to deploy to 3 AWS accounts (dev, stag, prod). This would be incorporated into a repository of terraform resource definitions.

Assumptions

  • Gitlab is used to store AWS account numbers (dev,stag and prod)
  • Role assumption from root to environment accounts (dev, stag, prod) via the Control Tower IAM roles is used prior to Terraform cli execution
  • Terraform Repository is structured as follows
    • backends
      • dev.hcl
      • stag.hcl
      • prod.hcl
    • environments
      • dev.tfvars
      • stag.tfvars
      • prod.tfvars
    • main.tf
    • resrouces.tf
    • variables.tf

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published