We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2715f11 commit fad01c9Copy full SHA for fad01c9
src/main.rs
@@ -10,6 +10,11 @@ const ENV_FILE: &str = "/tmp/crypteia.json";
10
#[tokio::main]
11
async fn main() -> Result<(), Error> {
12
log::cloudwatch_metric("main", "initialized", false, None);
13
+
14
+ if std::env::var("AWS_LAMBDA_FUNCTION_NAME").is_err() {
15
+ log::cloudwatch_metric("main", "running_outside_lambda", false, None);
16
+ println!("Running outside of AWS Lambda environment.");
17
+ }
18
let env_vars: HashMap<String, String> = std::env::vars().collect();
19
let env_map = ssm::get_envs(env_vars).await?;
20
log::cloudwatch_metric("main", "fetched", false, None);
0 commit comments