Skip to content

Commit

Permalink
Create key.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
sourabhdey21 authored Oct 8, 2023
1 parent ef4642d commit dad4a4c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Terraform/ansible_terraform/key.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Create keypair for ec2 instance
resource "aws_key_pair" "keypair" {
key_name = "keypair" # Change this to your desired key pair name
public_key = file("/home/sourabh/.ssh/id_rsa.pub") #Replace with your keypair
}

0 comments on commit dad4a4c

Please sign in to comment.