Alert.png The wiki is deprecated and due to be decommissioned by the end of September 2022.
The content is being migrated to other supports, new updates will be ignored and lost.
If needed you can get in touch with EGI SDIS team using operations @ egi.eu.

Difference between revisions of "rOCCI:ROCCI-cli AWS Examples"

From EGIWiki
Jump to navigation Jump to search
(Created page with "This page gives simple examples of using the OCCI gateway to Amazon Services as presented at the [https://indico.egi.eu/indico/event/3249/ 2017 EGI Conference and Indigo Summit]....")
 
Line 21: Line 21:
== Creating a Virtual Machine ==
== Creating a Virtual Machine ==


  occi --endpoint https://awsocci.cesnet.cz:11443/ --auth x509 --user-cred /tmp/x509up_u`id -u` --voms --action create --resource compute \
  VMID=$(occi --endpoint https://awsocci.cesnet.cz:11443/ --auth x509 --user-cred /tmp/x509up_u`id -u` --voms --action create --resource compute \
  --mixin os_tpl#ami-971238f1 --mixin resource_tpl#t2_micro --attribute occi.core.title="VMby${USER}" \
  --mixin os_tpl#ami-971238f1 --mixin resource_tpl#t2_micro --attribute occi.core.title="VMby${USER}" \
  --context public_key="file://${HOME}/.ssh/id_rsa.pub" --link /network/vpc-e2e4f686
  --context public_key="file://${HOME}/.ssh/id_rsa.pub" --link /network/vpc-e2e4f686)


== Describing a Virtual Machine ==
== Describing a Virtual Machine ==

Revision as of 13:33, 27 April 2017

This page gives simple examples of using the OCCI gateway to Amazon Services as presented at the 2017 EGI Conference and Indigo Summit. You have been probably redirected here through a QR code.

Prerequisites

You need:

  • a VOMS proxy certificate
  • an OCCI client
  • an SSH key pair

Examples

Listing Available Images

occi --endpoint https://awsocci.cesnet.cz:11443/ --auth x509 --user-cred /tmp/x509up_u`id -u` --voms --action list --resource os_tpl

Listing Available Resource Sizes

occi --endpoint https://awsocci.cesnet.cz:11443/ --auth x509 --user-cred /tmp/x509up_u`id -u` --voms --action list --resource resource_tpl

Creating a Virtual Machine

VMID=$(occi --endpoint https://awsocci.cesnet.cz:11443/ --auth x509 --user-cred /tmp/x509up_u`id -u` --voms --action create --resource compute \
--mixin os_tpl#ami-971238f1 --mixin resource_tpl#t2_micro --attribute occi.core.title="VMby${USER}" \
--context public_key="file://${HOME}/.ssh/id_rsa.pub" --link /network/vpc-e2e4f686)

Describing a Virtual Machine

TBD

Deleting a Virtual Machine

TBD