main.tf 534 B

123456789101112131415161718
  1. # Some instance variables
  2. locals {
  3. asg_name = "${var.prefix}-splunk-asg"
  4. launch_config_name = "${var.prefix}-splunk-lc"
  5. is_moose = length(regexall("moose", var.prefix)) > 0 ? true : false
  6. }
  7. # Rather than pass in the aws security group, we just look it up. This will
  8. # probably be useful other places, as well.
  9. data "aws_security_group" "typical-host" {
  10. name = "typical-host"
  11. vpc_id = var.vpc_id
  12. }
  13. # Use the default EBS key
  14. data "aws_kms_key" "ebs-key" {
  15. key_id = "alias/ebs_root_encrypt_decrypt"
  16. }