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.

rOCCI:ROCCI-cli AWS Examples

From EGIWiki
Revision as of 17:37, 21 April 2017 by Zsustr (talk | contribs) (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]....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

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