Initializing help system before first use

Public declarations

An AMI is represented by the EC2image record type described as follows:

id:string
name:text
description:text    ! "Xpress for AEC2" for images created by aec2setup
location:text
snapshot:text
available:boolean
ispublic:boolean
architecture:string
owner:string
ownerid:string

A running (or recently terminated) instance is represented by the EC2instance record type publishing the following fields:

image:string        ! image name
state:integer       ! AEC2_PENDING/AEC2_RUNNING/AEC2_SHUTTING_DOWN/
                    ! AEC2_STOPPED/AEC2_STOPPING/AEC2_TERMINATED
dns:text            ! public DNS name
key:text            ! key used for ssh connections
type:string         ! e.g. "t1.micro"
launchtime:datetime
ipaddr:text         ! public IP

The package also publishes the following global variables:

aec2_image:string     ! image name
aec2_type:string      ! instance type (e.g. "t1.micro")
aec2_secgrp:string    ! security group for SSH sessions
aec2_connmode:string  ! connecion mode: "xprmsrv" or "ssh"
aec2_xsrvctx:string   ! xprmsrv context
aec2_xsrvpass:string  ! xprmsrv password
aec2_xsrvport:integer ! xprmsrv connection port

These variables are initialised when loading the configuration file using loadAEC2Config but may be modified directly after this routine has been called.