Skip to content

Commit 30468c4

Browse files
committed
Use id instead of name in security_groups in cranehost
1 parent 766a23d commit 30468c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ resource "aws_instance" "instance" {
2020
instance_type = "${var.instance_type}"
2121
key_name = "${var.ssh_key_name}"
2222
subnet_id = "${var.subnet_id}"
23-
security_groups = ["${aws_security_group.sg.name}"]
23+
security_groups = ["${aws_security_group.sg.id}"]
2424
associate_public_ip_address = true
2525

2626
tags {

0 commit comments

Comments
 (0)