Skip to content

Instantly share code, notes, and snippets.

@yamamoto-febc
Created July 21, 2021 00:38
Show Gist options
  • Save yamamoto-febc/52be40772205fd43c9667f785803ebfc to your computer and use it in GitHub Desktop.
Save yamamoto-febc/52be40772205fd43c9667f785803ebfc to your computer and use it in GitHub Desktop.
とりあえずサーバが欲しい時にUsacloudで作る時のテンプレートなど
#!/bin/bash
usacloud server create --parameters parameter.json --name "name" password "password"
{
"CPU": 2,
"Memory": 4,
"BootAfterCreate": true,
"NetworkInterfaces": [
{
"Upstream": "shared"
}
],
"Disks": [
{
"DiskPlan": "ssd",
"Connection": "virtio",
"SizeGB": 20,
"OSType": "ubuntu",
"EditDisk": {
"HostName": "example",
"DisablePWAuth": true,
"ChangePartitionUUID": true,
"SSHKeys": [
"~/.ssh/id_rsa.pub"
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment