Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
prd
README.md

README.md

conoha

conoha

information

  • add vps-server(terraform-server01)
  • add ssh-key
  • add security_groups(ssh,web)
  • image(vmi-ubuntu-18.04-amd64)
  • plan(g-1gb)

How to

  1. make API user and tenant

https://support.conoha.jp/v/addapiuser/?btn_id=controlpanel-controlpanel-api_v-addapiuser

  1. get api key
$ curl -i -X POST -H "Accept: application/json" \
-d '{ "auth": { "passwordCredentials": { "username": "xxxxxxxx", "password": "xxxxxxx" }, "tenantId": "xxxxxxxxxxxxxxx" } }' \
https://identity.tyo1.conoha.io/v2.0/tokens 
  1. Confirm image
$ curl -X GET \                                                                                      
-H 'Content-Type: application/json' \
-H "Accept: application/json" \
-H "X-Auth-Token: <apitoken>" \
https://compute.tyo1.conoha.io/v2/<tenantId>/images \
| jq ".images | sort_by(.name) | map(.name)" 
  1. Confirm Plan
$ curl -X GET \
-H 'Content-Type: application/json' \
-H "Accept: application/json" \
-H "X-Auth-Token: <apitoken>" \
https://compute.tyo1.conoha.io/v2/<tenantId>/flavors \
| jq ".flavors | sort_by(.name) | map(.name)"
  1. init
$ terraform init
  1. plan
$ terraform plan
  1. apply
$ terraform apply
  1. destroy
$ terraform destroy
You can’t perform that action at this time.