aws-cloudformation / aws-cloudformation/cloudformation-coverage-roadmap

Pass secrets straight to Lambda like we can with Fargate

Open
#934 1 comment 25 reactions 0 assignees View on GitHub
enhancement
Dominant language
No language data
Stars
1.1k
Forks
62
PR merge metrics
No merged PRs in 30d

Description

### Name of the resource

AWS::Lambda::Function

### Resource name

_No response_

### Description

Just like how in Fargate, a [ContainerDefinition can pass secrets](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-containerdefinitions.html#cfn-ecs-taskdefinition-containerdefinition-secrets) straight into environment variables that are otherwise hidden from view, it would be super helpful if Lambda could have the same.

Rather than make a Lambda talk to SecretsManager, and hurting latency, it could just receive secrets by virtue of how it's been configured. If it can work for Fargate, I wonder why it couldn't for Lambda?

### Other Details

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the AWS::Lambda::Function resource and compare the requested behavior with the linked Fargate ContainerDefinition secrets support and AWS Secrets Manager. Define the supported configuration and its security and latency behavior; done means the Lambda resource can pass configured secrets into environment variables without requiring application-side retrieval.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws
Domain
cloud
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.