app/com/gu/aws/package.scala (10 lines of code) (raw):

package com.gu import com.amazonaws.auth.profile.ProfileCredentialsProvider import com.amazonaws.auth.{AWSCredentialsProviderChain, InstanceProfileCredentialsProvider} package object aws { val ProfileName = "membership" lazy val CredentialsProvider = new AWSCredentialsProviderChain( new ProfileCredentialsProvider(ProfileName), new InstanceProfileCredentialsProvider(false) ) }