Terraform: Setup AWS Redshift


Redshift cluster is expensive to run so the idea behind this article is to create and destroy a redshift cluster using terraform.

Contents:

  • create VPC

  • Configure IAM Role

  • Secret-Manager Setup

  • create Redshift Cluster

  • demo


Network,

IAM,

secret-manager,

cluster,


Please check this link for the code.


Time for hands-on,

terraform init
terraform plan
terraform apply --auto-approve


Clean Up All,

terraform destroy --auto-approve


Summary

You can now apply and destroy a terraform cluster.

Redshift pricing is very high, so always make sure you either pause or destroy the cluster when you do need it.