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

Cannot add required parameters to an existing stack

Open
#930 0 comments 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

Other

### Resource Name

Parameter

### Issue Description

Currently, if you try to add a new parameter to your stack template, and the parameter has a `MinLength` attribute, then you cannot update the stack to use the new template via the CloudFormation web console.

### Expected Behavior

I would expect that I could upload the new template version, with a new parameter, and then I would be shown the _Parameters_ page as usual, where I could add a value for the new parameter.

### Observed Behavior

After uploading the new template file, I get a “_Parameter 'XYZ' must contain at least N characters_” error, which prevents me from reaching the page where I could actually set a value for the parameter.

### Test Cases

After creating a stack, edit its template to add a new parameter like this:

```
NewPassword:
MinLength: 8
MaxLength: 41
NoEcho: true
Type: String
```

Try to update the stack to use the new template.

### Other Details

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.