Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

aws/lambda: Inject deployment configs to Lambda functions #4328

Merged
merged 2 commits into from Dec 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changelog/4328.txt
@@ -0,0 +1,5 @@
```release-note:bug
aws/lambda: fix issue where deployment configuration was not injected in to
Lambda function environments, preventing waypoint-entrypoint from authenticating
with the Waypoint server
```
4 changes: 4 additions & 0 deletions builtin/aws/lambda/platform.go
Expand Up @@ -303,6 +303,10 @@ func (p *Platform) Deploy(
envVars[k] = aws.String(v)
}

for k, v := range deployConfig.Env() {
envVars[k] = aws.String(v)
}

step.Done()

step = sg.Add("Reading Lambda function: %s", src.App)
Expand Down