is there a way to add environment variables automa...
# kotless
g
is there a way to add environment variables automatically in AWS lambda through kotless?
t
Yep:
Copy code
kotless {
    webapp {
        lambda {
            environment = hashMapOf("key" to "value")
        }
    }
}
Environment map would be passed as environment variables to lambda funciton
Also Kotless supports SSM integration which I would consider more preferable approach 🙂
g
i'm quite new to the backend stuff and AWS, but what is SSM integration?
t
I mean AWS Parameter Store -- https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-parameter-store.html . It is manged solution for keeping parameters and secrets. Kotless support permission generation for it
But if you are new to AWS environment variables are simpler 🙂
g
yeah, i think i'd go for the env variables for now. thanks for the help
👍 1
h
@TanVD Is there any documentation/examples with Kotless + AWS Parameter Store out there? 🙂
t
Hm, there was an example for shortener with ssm parameters, but not right now 🙂
@SSMParameters
does not work?