aws-cloudformation / aws-cloudformation/cfn-lint-visual-studio-code
AWS::Cloud9::EnvironmentEC2 validation logic for ImageId does not align with CloudFormation documentation
- Dominant language
- JavaScript
- Stars
- 289
- Forks
- 170
- PR merge metrics
- No merged PRs in 30d
Description
Hello. The following point is pointed out, but it is not in line with the documentation.
template
```
Resources:
TestC9:
Type: AWS::Cloud9::EnvironmentEC2
Properties:
ImageId: amazonlinux-2-x86_64
InstanceType: t2.micro
Name: test
SubnetId: subnet-*******
```
point
```
ImageId
[cfn-lint] E1152: 'amazonlinux-2-x86_64' is not a 'AWS::EC2::Image.Id' with pattern '^ami-([0-9a-z]{8}|[0-9a-z]{17})$'
```
versrion: 0.26.6
Document
https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/TemplateReference/aws-resource-cloud9-environmentec2.html#cfn-cloud9-environmentec2-imageid
An issue was created and fixed on cfn-lint GitHub.
https://github.com/aws-cloudformation/cfn-lint/issues/4254
Please fix it in cfn-lint-visual-studio-code as well.
Contributor guide
Research direction
Start by comparing the validation behavior described here with the cfn-lint issue 4254 fix and inspect how this VS Code integration receives or represents that validation. Use the supplied CloudFormation example to reproduce the diagnostic; done means amazonlinux-2-x86_64 is no longer rejected for AWS::Cloud9::EnvironmentEC2.ImageId.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100