Skip to content

Commit 35d1e7b

Browse files
committed
updates
1 parent c9c990f commit 35d1e7b

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,15 @@ Now you can create your Key pairs on AWS following the AWS Documentation below:
4040

4141
Remember you can create a Terraform resource to provision automatically:
4242

43-
```
44-
resource "aws_key_pair" "deployer" {
45-
key_name = "deployer-key"
46-
public_key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD3F6tyPEFEzV0LX3X8BsXdMsQz1x2cEikKDEY0aIj41qgxMCP/iteneqXSIFZBp5vizPvaoIR3Um9xK7PGoW8giupGn+EPuxIA4cDM4vzOqOkiMPhz5XK0whEjkVzTo4+S0puvDZuwIsdiW9mxhJc7tgBNL0cYlWSYVkz4G/fslNfRPW5mYAM49f4fhtxPb5ok4Q2Lg9dPKVHO/Bgeu5woMc7RY0p1ej6D4CKFE6lymSDJpW0YHX/wqE9+cfEauh7xZcG0q9t2ta6F6fmX0agvpFyZo8aFbXeUBr7osSCJNgvavWbM/06niWrOvYX2xwWdhXmXSrbX8ZbabVohBK41 [email protected]"
43+
```hcl
44+
resource "aws_key_pair" "key" {
45+
key_name = "aws-key"
46+
public_key = file("./aws-key.pub")
47+
48+
tags = {
49+
Name = "my-key-aws"
50+
managed_by = "terraform"
51+
}
4752
}
4853
```
4954

0 commit comments

Comments
 (0)