Skip to content

(aws-ssm): valueFromLookup should have an option to skip context caching #12366

@cynicaljoy

Description

@cynicaljoy

When using ssm.StringParameter.valueFromLookup() I would like to have the option to not store the value of the parameter in the cdk context so the parameter is resolved every time that I synth.

Use Case

In particular, I store the value of which ECR Image Tag should be deployed in my Task Definition for my Fargate Service. Currently, if I forget to cdk context --reset ... then I can potentially deploy a previous version of the application. If I was able to skip storing the value in the context I would not have to manage this risk.

Proposed Solution

ssm.StringParameter.valueFromLookup(this, '/my/ssm/parameter', { skipContext: true });
  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change

This is a 🚀 Feature Request

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-ssmRelated to AWS Systems Managerclosed-for-stalenessThis issue was automatically closed because it hadn't received any attention in a while.effort/mediumMedium work item – several days of effortfeature-requestA feature should be added or improved.p2response-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 7 days.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions