File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -40,10 +40,15 @@ Now you can create your Key pairs on AWS following the AWS Documentation below:
40
40
41
41
Remember you can create a Terraform resource to provision automatically:
42
42
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
+ }
47
52
}
48
53
```
49
54
You can’t perform that action at this time.
0 commit comments