override def load()

in app/AppLoader.scala [10:30]


  override def load(context: Context): Application = {
    startLogging(context)

    val appName = "atom-workshop"

    val identity: AppIdentity = AppIdentity.whoAmI(appName)

    val credentials: AwsCredentialsProvider = identity match {
      case _: DevIdentity => ProfileCredentialsProvider.create("composer")
      case _ => DefaultCredentialsProvider.create()
    }

    val loadedConfig = ConfigurationLoader.load(identity, credentials) {
      case identity: AwsIdentity => SSMConfigurationLocation.default(identity)
      case _: DevIdentity =>
        val home = System.getProperty("user.home")
        FileConfigurationLocation(new File(s"$home/.gu/$appName.conf"))
    }

    new AppComponents(context.copy(initialConfiguration = context.initialConfiguration.withFallback(Configuration(loadedConfig))), identity).application
  }