@import config.AMIableConfig
@(ami: AMI, conf: AMIableConfig)
@import utils.DateUtils.{readableDateTime, getAgeColour, daysAgo}
@import prism.Recommendations
| Image ID |
@ami.imageId - view usage |
| Creation date |
@ami.creationDate match {
case Some(date) => {
@readableDateTime.print(date) -
@daysAgo(date) day@if(daysAgo(date) != 1){s} old
}
case None => {
Very old (no creation date available)
}
}
|
@ami.name.map { name =>
| Name |
@ami.name |
}
@ami.description.map { description =>
| Description |
@ami.description |
}
@if(ami.tags.nonEmpty) {
| Tags |
|
|
}
| Region |
@ami.region |
| Virtualization |
@ami.virtualizationType |
| Architecture |
@ami.architecture |
| Storage type |
@ami.rootDeviceType |
| Owner |
@Recommendations.owner(ami) |
| ARN |
@ami.arn |