so what we do is ``` object ConfigReader { la...
# getting-started
d
so what we do is
Copy code
object ConfigReader {
    lateinit var configFilePath: String
    fun readConfig(): AppConfig {
        val secrets = Secrets.standard(true)
        val content = File(configFilePath)
                .readLines(Charsets.UTF_8)
                .joinToString(transform = secrets::replace, separator = "\n")
        return ObjectMapper(YAMLFactory()).apply {
            registerModule(KotlinModule())
        }.readValue(content, AppConfig::class.java)!!
    }
}
this includes downloading secrets from s3