Ec2 get instance tags?

I’ve created an instance by using boto3 client via ec2, and added a name to the instance via tags functionality

In sunstone i can see that an attribute called EC2_TAGS was created:

But if i try to retrieve instance via the same boto3, tags are not returned:

<item>
               <instanceId>i-00000075</instanceId>
               <imageId>ami-00000005</imageId>
               <instanceState>
                  <code>0</code>
                  <name>pending</name>
               </instanceState>
               <privateIpAddress>192.168.122.17</privateIpAddress>
               <privateDnsName>192.168.122.17</privateDnsName>
               <dnsName>192.168.122.17</dnsName>
               <keyName>none</keyName>
               <productCodes />
               <instanceType>t2.nano</instanceType>
               <launchTime>2016-11-19T09:50:27+01:00</launchTime>
               <placement>
                  <availabilityZone>default</availabilityZone>
               </placement>
               <amiLaunchIndex>75</amiLaunchIndex>
               <kernelId>eki-EA801065</kernelId>
               <ramdiskId>eri-1FEE1144</ramdiskId>
               <monitoring>
                  <state>disabled</state>
               </monitoring>
               <clientToken />
            </item>

Is this functionality not implemented?

Ok, so it seems that this feature is not implemented, thought it’s not hard to patch:

/usr/lib/one/ruby/cloud/econe/views/describe_instances.erb

  <% if vm.has_elements?("USER_TEMPLATE/EC2_TAGS") %>
  <tagSet>
        <% vm_hash = vm.to_hash %>
        <% vm_hash["VM"]["USER_TEMPLATE"]["EC2_TAGS"].each do |key, value| %>
            <item>
                <key><%= key %></key>
                <value><%= value %></value>
            </item>
        <% end %>
  </tagSet>
  <% end %>

Can i create an issue or pull request somewhere?

Send a PR on github please :slight_smile: