Skip to content

imperial-genomics-facility/IGF-aws-terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IGF Terraform confs for AWS

A repository for storing AWS Terraform config files.

What resources will be created ?

  • VPC
  • Public subnets
  • Private subnets
  • Internet gateway for public subnets
  • Route tables
  • S3 bucket with versioning
  • Lifecycle rules for S3 (target prefix: runs/)
    • Remove incomplete multipart uploads after 7 days
    • Remove non-current versions after 7 days
    • Remove files after 30 days

How to use it?

  • Clone repo git clone https://github.com/imperial-genomics-facility/IGF-aws-terraform.git
  • Install and initialize terraform `terraform init'
  • Create a variable file terraform.tfvars and add following lines
environment                = "YOUR ENV NAME"
project_name               = "YOUR PROJECT NAME"
vpc_cidr_block             = "CIDR BLOCK"
enable_nat_gateway         = false
enable_vpn_gateway         = false
name                       = "NAME"
s3_raw_run_bucket_id       = " YOUR BUCKET NAME"
public_subnet_cidr_blocks  = [
  "LIST OF public subnets"
  ]
private_subnet_cidr_blocks = [
  "LIST OF private subnets"
  ]
  • Generate plan terraform plan -out=dev.tfplan -no-color
  • Inspect plan and apply changes terraform apply -no-color dev.tfplan
  • Destroy infrastructure: terraform apply -destroy

About

A repository for storing terraform configs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages