Skip to content

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

Open
@garysassano

Description

@garysassano

Describe the bug

There's no option in the current Service L2 construct for referencing environment variables 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

Current Behavior

image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-apprunnerRelated to the apprunner packageeffort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions