ec2:cleanupimages

Full name:

org.kuali.maven.plugins:ec2-maven-plugin:1.1.1-SNAPSHOT:cleanupimages

Description:

Connect to EC2 and delete images (and their associated snapshots) that have matching tags

Attributes:

  • Requires a Maven project to be executed.

Required Parameters

Name Type Since Description
accessKey String - The AWS Access Key Id for an account on EC2
secretKey String - The AWS Secret Access Key for an account on EC2

Optional Parameters

Name Type Since Description
device String - The name of the device whose associated snapshot will be deleted when the image is deregistered.
Default value is: /dev/sda1.
key String - This is the name of the tag to match.
Default value is: Name.
minimumToRetain int - The minimum number of images to retain.
Default value is: 3.
prefix String - If the specified tag starts with the value provided here, the image will be deregistered.
Default value is: CI Slave.
tags List - List of tags. Tags are name/value pairs and can be supplied in the plugin configuration like this:
  <tags>
    <tag>
      <key>Name</key>
      <value>production</value>
    </tag>
    <tag>
      <key>Category</key>
      <value>networking</value>
    </tag>
  </tags>

Parameter Details

accessKey:

The AWS Access Key Id for an account on EC2
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${ec2.accessKey}

device:

The name of the device whose associated snapshot will be deleted when the image is deregistered.
  • Type: java.lang.String
  • Required: No
  • Expression: ${ec2.device}
  • Default: /dev/sda1

key:

This is the name of the tag to match.
  • Type: java.lang.String
  • Required: No
  • Expression: ${ec2.key}
  • Default: Name

minimumToRetain:

The minimum number of images to retain.
  • Type: int
  • Required: No
  • Expression: ${ec2.minimumToRetain}
  • Default: 3

prefix:

If the specified tag starts with the value provided here, the image will be deregistered.
  • Type: java.lang.String
  • Required: No
  • Expression: ${ec2.prefix}
  • Default: CI Slave

secretKey:

The AWS Secret Access Key for an account on EC2
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${ec2.secretKey}

tags:

List of tags. Tags are name/value pairs and can be supplied in the plugin configuration like this:
  <tags>
    <tag>
      <key>Name</key>
      <value>production</value>
    </tag>
    <tag>
      <key>Category</key>
      <value>networking</value>
    </tag>
  </tags>
  • Type: java.util.List
  • Required: No