aws / aws/aws-cdk

aws-apprunner-alpha: missing option for referencing environment variables via SM parameters

Open
#32,770 7 comments 0 reactions 0 assignees View on GitHub
@aws-cdk/aws-apprunner effort/small feature-request p2
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
2d 3h
Merged PRs (30d)
83

Description

### Describe the bug

There's no option in the current `Service` L2 construct for [referencing environment variables](https://docs.aws.amazon.com/apprunner/latest/dg/env-variable.html) using `SecureString` parameters in Systems Manager.

### Regression Issue

- [ ] Select this option if this issue appears to be a regression.

### Last Known Working CDK Version

_No response_

### Expected Behavior

I expected to be able to reference environment variables from SM Parameter Store like from AWS Console.

![image](https://github.com/user-attachments/assets/084acec8-2dbb-44c6-b989-f182c33e8951)

### Current Behavior

![image](https://github.com/user-attachments/assets/9cb9cc68-48c2-4fcf-8df1-63af5f5c3310)

You only have the following two options available within the `Service` construct props:

- `environmentVariables` ➜ equivalent to `Plain text` in AWS Console
- `environmentSecrets` ➜ equivalent to `Secrets Manager` in AWS Console

### Reproduction Steps

See above.

### Possible Solution

Introduce a new `environmentParameters` option following the same principle as the other two props.

### Additional Information/Context

_No response_

### CDK CLI Version

2.174.0

### Framework Version

_No response_

### Node.js Version

22.12.0

### OS

Ubuntu 24.04.1

### Language

TypeScript

### Language Version

_No response_

### Other information

_No response_

Contributor guide

Open the contributing guide

Research direction

Start at the App Runner Service L2 construct and compare the existing environmentVariables and environmentSecrets props with the linked AWS environment-variable documentation. Add the proposed environmentParameters capability for SecureString Systems Manager Parameter Store references, then verify the synthesized configuration alongside the existing environment options.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, typescript
Domain
cloud
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.