ec2:tag

Full name:

org.kuali.maven.plugins:ec2-maven-plugin:1.1.4:tag

Description:

Connect to EC2 and tag a resource with name/value pairs. Each resource can have up to 10 tags. resourceId can be an EC2 instance id, volume id, snapshot id, etc.

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
resourceId String - The id of the resource to tag. Set this to NONE to skip tagging any resources
secretKey String - The AWS Secret Access Key for an account on EC2

Optional Parameters

Name Type Since Description
tags List - List of tags to associate with the resource. Tags are key 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}

resourceId:

The id of the resource to tag. Set this to NONE to skip tagging any resources
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${ec2.instanceId}

secretKey:

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

tags:

List of tags to associate with the resource. Tags are key 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