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

Support SSM Secure references in AppRunner Service environment variables

Open
#1,044 1 comment 0 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::AppRunner::Service

### Resource name

_No response_

### Description

Currently, referencing `SecureString` SSM Parameter Store values can only be done with a [subset of resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/dynamic-references.html#template-parameters-dynamic-patterns-resources). This is problematic when attempting to use these values to define runtime environment variables for an AppRunner Service. Without this support, sensitive values have to be either (A) stored in Parameter Store as plaintext Strings (suboptimal), or (B) those values must be resolved at synth-time, and the plaintext value is then exposed in the CloudFormation template (also not ideal).

While this issue specifically requests support for AppRunner Service environment variables, I'm sure this same issue plagues users looking to deploy sensitive values as environment variables to AWS Lambda et. al.

TIA!

### Other Details

Current result:
```
SSM Secure reference is not supported in: [AWS::AppRunner::Service/Properties/SourceConfiguration/ImageRepository/ImageConfiguration/RuntimeEnvironmentVariables]
```

Contributor guide

Open the contributing guide

Research direction

Start with the reported AWS::AppRunner::Service path, especially SourceConfiguration/ImageRepository/ImageConfiguration/RuntimeEnvironmentVariables, and reproduce the current unsupported SSM Secure reference result. The issue names no repository files or tests; done would mean CloudFormation accepts the secure dynamic reference for these environment variables without exposing the plaintext value.

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.