Skip to content

Commit

Permalink
Use name prefix instead of fixed names
Browse files Browse the repository at this point in the history
  • Loading branch information
jdpleiness committed May 28, 2020
1 parent 45939b2 commit e51e4fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/imputation-server/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ data "aws_instance" "master_node" {
# ---------------------------------------------------------------------------------------------------------------------

resource "aws_key_pair" "emr_key_pair" {
key_name = "${var.name_prefix}-emr"
public_key = var.public_key
key_name_prefix = "${var.name_prefix}-emr"
public_key = var.public_key
}

# ---------------------------------------------------------------------------------------------------------------------
Expand All @@ -46,7 +46,7 @@ resource "aws_kms_key" "emr_kms" {
}

resource "aws_kms_alias" "emr_kms" {
name = "alias/${var.name_prefix}-key-alias"
name_prefix = "alias/${var.name_prefix}-key-alias"
target_key_id = aws_kms_key.emr_kms.arn
}

Expand Down

0 comments on commit e51e4fe

Please sign in to comment.