File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -323,11 +323,11 @@ Host jenkins-worker-windows-publish
323
323
# Launch instance on EC2
324
324
## Create (ssh) key pair
325
325
```
326
- echo $(aws ec2 create-key-pair --key-name chef | jq .KeyMaterial) | perl -pe 's/"//g' > ~/git/ scala-jenkins-infra/.chef/config/chef .pem
327
- chmod 0600 ~/git/ scala-jenkins-infra/.chef/config/chef .pem
326
+ echo $(aws ec2 create-key-pair --key-name <YOUR_NAME> | jq .KeyMaterial) | perl -pe 's/"//g' > ~/.ssh/typesafe- scala-aws-$USER .pem
327
+ chmod 0600 ~/.ssh/typesafe- scala-aws-$USER .pem
328
328
```
329
329
330
- make sure ` knife[:aws_ssh_key_id] = 'chef' ` matches ` --identity-file ~/git/scala-jenkins-infra/.chef/config/chef.pem `
330
+ In ` knife.rb ` , make sure ` knife[:aws_ssh_key_id] ` the pem file.
331
331
332
332
333
333
## Selected AMIs
You can’t perform that action at this time.
0 commit comments