Skip to content

Commit

Permalink
Correct instance profile reference
Browse files Browse the repository at this point in the history
  • Loading branch information
sdickenson committed Dec 18, 2023
1 parent a22deac commit 0b3b679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ module "keypair" {
resource "aws_instance" "this" {
ami = local.ami
ebs_optimized = true
iam_instance_profile = aws_iam_instance_profile.this.name
iam_instance_profile = aws_iam_instance_profile.this.id
instance_type = var.instance_type
key_name = module.keypair.key_name
source_dest_check = false
Expand Down

0 comments on commit 0b3b679

Please sign in to comment.