AWS - Julia interface to Amazon Web Services
This package provides a native Julia interface to the Amazon Web Services API
The following services are supported as of now:
- Auto Scaling
The basic APIs of EC2, S3, SQS and Auto Scaling are tested
The advanced APIs (e.g. VPC related APIs, etc) of EC2 are yet untested. Any testing will be helpful.
The REST API does not match exactly in certain cases with the WSDL. For the EC2 API, the bulk of the code is generated from the WSDL while it has been translated by hand for the S3 API.
Please file issues on GitHub with the output from running the request in debug mode, i.e., with env.dbg = true.
- Each of the functions takes in an AWSEnv as the first parameter
type AWSEnv aws_id::String # AWS Access Key id aws_seckey::String # AWS Secret key for signing requests aws_token::String # AWS Security Token for temporary credentials region::String # region name ep_scheme::String # URL scheme: http or https ep_host::String # region endpoint (host) ep_path::String # region endpoint (path) sig_ver::Int # AWS signature version (2 or 4) timeout::Float64 # request timeout in seconds, if set to 0.0, request will never time out. Default is 0.0 dry_run::Bool # If true, no actual request will be made - implies dbg flag below dbg::Bool # print request and raw response to screen end
AWSEnv(; id=AWS_ID, key=AWS_SECKEY, token=AWS_TOKEN, ec2_creds=false, scheme="https", region=AWS_REGION, ep="", sig_ver=4, timeout=0.0, dr=false, dbg=false)
AWS_SECKEYare initialized from env if available. Else a file ~/.awssecret is read (if available) for the same.
AWS_TOKENis an empty string by default. Override
keyare temporary security credentials.
ec2_credsto true to automatically retrieve temporary security credentials if running on an EC2 instance that has such credentials.
regionto one of the AWS region name strings, e.g., "us-east-1". Not needed if setting
epcan contain both a hostname and a pathname for an AWS endpoint. It is generally not needed when using native AWS services; use
regioninstead. If using a service that emulates AWS, set
epto the hostname of the endpoint to be used. If both
epare set, the host portion of
epwill override region, and the path portion of
epwill be used in conjunction with
sig_vermust be set to 2 or 4. Some AWS services require one signature version or the other, in which case this value will be ignored.
libz must be installed
libxml2 must be installed