main.tf 417 B

123456789101112131415161718
  1. provider "aws" {
  2. region = "${var.region}"
  3. profile = "${var.profile}"
  4. }
  5. # Allow us to enable flash devices
  6. locals {
  7. count_flash = (var.enable-flash == true ? var.data-node-count : 0)
  8. }
  9. locals {
  10. ssh_key_path = (var.ssh-key == "" ? "~/.ssh/${var.vpc-name}.pem" : "~/.ssh/${replace(var.ssh-key, ".pem", "")}.pem")
  11. }
  12. locals {
  13. ssh_key= (var.ssh-key == "" ? var.vpc-name : replace(var.ssh-key, ".pem", ""))
  14. }