MCPcopy Create free account
hub / github.com/BishopFox/cloudfox / getLambdaEnvironmentVariablesPerFunction

Method getLambdaEnvironmentVariablesPerFunction

aws/env-vars.go:454–466  ·  view source on GitHub ↗
(function lambdaTypes.FunctionConfiguration, region string, dataReceiver chan EnvironmentVariable)

Source from the content-addressed store, hash-verified

452}
453
454func (m *EnvsModule) getLambdaEnvironmentVariablesPerFunction(function lambdaTypes.FunctionConfiguration, region string, dataReceiver chan EnvironmentVariable) {
455 if function.Environment != nil {
456 for name, value := range function.Environment.Variables {
457 dataReceiver <- EnvironmentVariable{
458 service: "Lambda",
459 name: aws.ToString(function.FunctionName),
460 region: region,
461 environmentVarName: name,
462 environmentVarValue: value,
463 }
464 }
465 }
466}
467
468func (m *EnvsModule) getAppRunnerEnvironmentVariablesPerRegion(r string, wg *sync.WaitGroup, semaphore chan struct{}, dataReceiver chan EnvironmentVariable) {
469 defer func() {

Calls

no outgoing calls

Tested by

no test coverage detected