aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2013-05-21 11:32:27 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2013-05-21 11:32:27 +0300
commitf5f9ad5a144999f7c788119cc21d967734ae0dba (patch)
treec65c817e401c8264212e1b7abad9ac2fa18ece94 /etc
parentdc2eda2489f6f8e9bd699c3968edd0710b3adb73 (diff)
downloadeclat-f5f9ad5a144999f7c788119cc21d967734ae0dba.tar.gz
eclat-f5f9ad5a144999f7c788119cc21d967734ae0dba.tar.bz2
Various minor fixes.
* doc/eclat.conf.5: Document EC2 maps. * etc/eclat.cfin: Provide default maps. * lib/Makefile.am (AM_LFLAGS): Remove -v. * lib/bidimap.c (cb_submap): Remove unused variable. * lib/forlan.c: Minor change. * lib/forlangrm.y: Declare prototype for yylex. * lib/forlanlex.l: Add option nounput * lib/libeclat.h (eclat_map) <locus>: New member. * lib/map.c (eclat_map_config): Warn if attempting to redeclare an existing map. * src/ec2map.c (ec2_map_get): Minor change.
Diffstat (limited to 'etc')
-rw-r--r--etc/eclat.cfin39
1 files changed, 39 insertions, 0 deletions
diff --git a/etc/eclat.cfin b/etc/eclat.cfin
index 755187a..dc49368 100644
--- a/etc/eclat.cfin
+++ b/etc/eclat.cfin
@@ -31,3 +31,42 @@ format-file "FORMATDIR/FORMATNAME.forlan";
# Ask for confirmation before running a destructive command.
confirm tty destructive;
+# #####################################################################
+# Sample resource maps.
+#
+# These maps use the Describe* EC2 requests to translate symbolic
+# resource names to the corresponding IDs. The resource name should be
+# stored in the Name tag of the corresponding resource.
+# #####################################################################
+
+map "InstanceId" {
+ type ec2;
+ action DescribeInstances;
+ arguments ("Filter.1.Name=tag:Name", "Filter.1.Value.1=${key}");
+ return ".DescribeInstancesResponse.reservationSet.item.instancesSet.item.instanceId";
+}
+
+map "ImageId" {
+ type ec2;
+ action DescribeImages;
+ arguments ("Owner.1=self",
+ "Filter.1.Name=tag:Name",
+ "Filter.1.Value.1=${key}");
+ return ".DescribeImagesResponse.imagesSet.item.imageId";
+}
+
+map "VolumeId" {
+ type ec2;
+ action DescribeVolumes;
+ arguments ("Filter.1.Name=tag:Name", "Filter.1.Value.1=${key}");
+ return ".DescribeVolumesResponse.volumeSet.item.volumeId";
+}
+
+map "SnapshotId" {
+ type ec2;
+ action DescribeSnapshots;
+ arguments ("Owner.1=self",
+ "Filter.1.Name=tag:Name",
+ "Filter.1.Value.1=${key}");
+ return ".DescribeSnapshotsResponse.snapshotSet.snapshotId";
+}

Return to:

Send suggestions and report system problems to the System administrator.