@import data.Roles @import prism.BakeUsage @import prism.Prism.AWSAccount @( recipe: Recipe, bakeUsage: Seq[BakeUsage], accounts: Seq[AWSAccount], prismBaseUrl: String )(implicit flash: Flash) @simpleLayout("AMIgo"){

Usages of @recipe.id.value

@if(bakeUsage.isEmpty) {

No usages of this recipe found

} else { @bakeUsage.sortBy(bu => (bu.bake.startedAt.getMillis, bu.viaCopy.map(_.imageId.value))).map { usage => }
Build Encrypted copy? Usages AMI
@usage.viaCopy.map { viaCopy =>
  • Acc: @defining(accounts.find(_.accountNumber == viaCopy.ownerId)){ maybeOwnerAcc => @maybeOwnerAcc.map{ ownerAcc => @ownerAcc.accountName (@ownerAcc.accountNumber) }.getOrElse(viaCopy.ownerId) }
  • @viaCopy.encrypted.map{e =>
  • Encrypted tag: @e
  • }
}
    @usage.instances.map { instance =>
  • Instance @instance.name (in @instance.awsAccount.accountName)
  • } @usage.launchConfigurations.map { launchConfiguration =>
  • Launch Configurations @launchConfiguration.name (in @launchConfiguration.awsAccount.accountName)
  • } @usage.launchTemplates.map { launchTemplate =>
  • Launch Configurations @launchTemplate.name (in @launchTemplate.awsAccount.accountName)
  • }
@if(usage.bake.amiId.isDefined) { @usage.bake.amiId }
} }