data.tf 350 B

123456789101112131415
  1. # Some instance variables
  2. locals {
  3. ami_selection = "minion" # master, minion, ...
  4. }
  5. # Rather than pass in the aws security group, we just look it up.
  6. data "aws_security_group" "typical-host" {
  7. name = "typical-host"
  8. vpc_id = var.vpc_id
  9. }
  10. # Use the default EBS key
  11. data "aws_kms_key" "ebs-key" {
  12. key_id = "alias/ebs_root_encrypt_decrypt"
  13. }