I added the following configuration in spark-env
--configurations '[
{
"Classification": "spark-env",
"Properties": {},
"Configurations": [
{
"Classification": "export",
"Properties": {
"MY_VARIABLE": "MY_VARIABLE"
}
}
]
}
]'
But if I just do echo $MY_VARIABLE
in bash I can't see them in the terminal.
Basically what I want to do is the following:
- schedule the creation of an AWS EMR cluster with AWS Lambda (where I would set all my environment variables such as git credentials)
- in the bootstrapping of the machine, install a bunch of things, including git
- git clone a repository (so I need to use the credentials stored in the environment variables)
- execute some code from this repository