main.tf 780 B

12345678910111213141516171819202122232425262728293031323334
  1. provider "aws" {
  2. region = var.region
  3. profile = var.profile
  4. }
  5. module "vpc" {
  6. source = "../tfmodule-aws-2tier-vpc"
  7. region = var.region
  8. profile = var.profile
  9. vpc-name = var.vpc-name
  10. vpc-cidr = var.vpc-cidr
  11. vpc-azs = var.vpc-azs
  12. common-tags = {
  13. "Owner" = "maguec"
  14. "Project" = "example_terraform"
  15. }
  16. }
  17. module "nodes" {
  18. source = "../tfmodule-aws-redis-enterprise"
  19. region = var.region
  20. profile = var.profile
  21. open-nets = ["76.14.80.208/32"]
  22. data-node-count = 3
  23. vpc-cidr = var.vpc-cidr
  24. vpc-azs = var.vpc-azs
  25. vpc-name = var.vpc-name
  26. vpc-id = module.vpc.vpc-id
  27. vpc-subnets = ["subnet-062902e9bd6b331d3", "subnet-06d9dcca76217c425"]
  28. common-tags = {
  29. "Owner" = "maguec"
  30. "Project" = "example_terraform"
  31. }
  32. }