Skip to content

AWS::Cloud9::EnvironmentEC2 validation logic for ImageId does not align with CloudFormation documentation #494

@toyotest2025

Description

@toyotest2025

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions