Skip to content

Commit f913163

Browse files
committed
fix: use key_name not key_pair_id for launch template keypair reference
AWS launch templates expect the key pair name string for key_name, not the key pair ID (key-XXXX). aws_key_pair.this.key_pair_id returns the ID; aws_key_pair.this.key_name returns the name. Using the ID caused all ASG CreateAutoScalingGroup calls to fail with 'key pair does not exist'. Also include the extra_tags smoke identifier added earlier in this session.
1 parent 3d51733 commit f913163

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/terraform/aws-simple/provision.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module "provision" {
2020
}
2121
count : ngd.count
2222
type : ngd.type
23-
keypair_id : aws_key_pair.this.key_pair_id
23+
keypair_id : aws_key_pair.this.key_name
2424
root_device_name : ngd.root_device_name
2525
volume_size : ngd.volume_size
2626
role : ngd.role

0 commit comments

Comments
 (0)