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

Provide more details on "Could not find a value associated with JSONKey in SecretString" related failures

Open
#1,822 0 comments 2 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

Other

### Resource name

_No response_

### Description

If you have a stack that uses [`secretsmanager` dynamic references](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/dynamic-references.html#dynamic-references-secretsmanager), you can get the following error message `Could not find a value associated with JSONKey in SecretString` while updating the stack.

CloudFormation does not clarify which SecretString(s) are causing the issue. This becomes difficult to troubleshoot if you have hundreds of inline dynamic references in one stack.

Ideally, CloudFormation should at least tell us which secret is causing the failure.

### Other Details

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the issue description and its AWS CloudFormation dynamic references documentation link, focusing on secretsmanager references that use SecretString and JSONKey. The requested outcome is an error that identifies which secret causes the failure during stack updates; no repository files or tests are named.

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.