Perpaduan Chef, Knife, AWS CLI, Digital Ocean, dan Google Compute Engine

6-alasan-wanita-tertarik-pada-pria-jago-masak
Idenya, saya ingin memanajemen beberapa provider layanan awan dalam satu tools. Kebetulan kantor menggunakan beberapa, diantaranya aws, digital ocean, gce.

 

Saya terbiasa menggunakan ChefDK dan knife sebagai alat masak. Mari kita pasang-pasang tools pendamping.

  1. ChefDK (Chef, Ruby, Knife)
  2. AWS CLI
     $ pip install awscli
    
  3. Google Cloud SDK
  4. Gem (knife-ec2, knife-digital_ocean, knife-google)
    $ chef gem install knife-ec2 knife-digital_ocean knife-google
    
  5. Atur knife.rb untuk masing-masing provider
    $ vim ~/.chef/knife.rb
    

    Atur kira kira seperti ini

    knife[:aws_credential_file] = File.join(ENV['HOME'], "/.aws/credentials")
    knife[:aws_config_file] = File.join(ENV['HOME'], "/.aws/config")
    knife[:aws_profile] = "default"
    knife[:digital_ocean_access_token]  = "xxxxxxxxxxxxxxxxxx"
    knife[:gce_project] = 'my-project-name'
    knife[:gce_zone]    = 'asia-east1-a'
    
  6. Knife siap digunakan
    $ knife ec2 server list
    $ knife digital_ocean droplet list
    $ knife google server list
    

Dah kira-kira begitu.
Sumber gambar dari sini.

Estu~

Iklan

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout /  Ubah )

Foto Google

You are commenting using your Google account. Logout /  Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout /  Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout /  Ubah )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.