@import com.gu.googleauth.UserIdentity @import com.gu.janus.model.{AwsAccount, JanusData} @import software.amazon.awssdk.services.sts.model.Credentials @import java.time.Instant @import play.api.Mode @(expiry: Instant, accountsCredentials: List[(AwsAccount, Credentials)], user: UserIdentity, janusData: JanusData)(implicit mode: Mode, assetsFinder: AssetsFinder) @import logic.Date @main("Temporary credentials", Some(user), janusData) {

Credentials

These credentials will expire in @Date.formatInterval(expiry), at @Date.formatTime(expiry).

Copy @if(accountsCredentials.size == 1) {
}
@accountsCredentials match { case (_, credentials) :: Nil => {
keep it secret, keep it safe

These credentials grant access on your behalf. Treat them as you would your password.

  • subjectShow raw credentials
    These are your temporary credentials. The normal way to use them is to configure an AWS profile as described above.
  • lock_openExport to shell
    If you don't use named AWS profiles you can export the credentials on your shell. The normal way to use them is to configure an AWS profile as described above.
    content_copy copy done report_problem
} case _ => {
    @for((account, _) <- accountsCredentials) {
  • @account.name @account.authConfigKey
  • }

To customise profile names or export credentials directly, request accounts separately.

keep it secret, keep it safe

These credentials grant access on your behalf. Treat them as you would your password.

} }
}