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.
aws-cloudformation/cfn-lint#4254
Please fix it in cfn-lint-visual-studio-code as well.