Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect E3002 'AWS::ImageBuilder::ContainerRecipe' BlockDeviceMappings property #3412

Closed
sudoudaisuke opened this issue Jun 26, 2024 · 2 comments

Comments

@sudoudaisuke
Copy link

sudoudaisuke commented Jun 26, 2024

CloudFormation Lint Version

1.3.5

What operating system are you using?

docker container based on python:3.12-alpine

Describe the bug

$ cfn-lint --template ./a.yaml
E3002 Additional properties are not allowed ('BlockDeviceMappings' was unexpected)
a.yaml:12:9

Expected behavior

no errors or warnings

Reproduction template

Resources: 
  SampleContainerRecipe:
    Type: AWS::ImageBuilder::ContainerRecipe
    Properties:
      Components: []
      ContainerType: DOCKER
      TargetRepository:
        RepositoryName: sampleRepository
      DockerfileTemplateData: |
        FROM {{{ imagebuilder:parentImage }}}
      InstanceConfiguration:
        BlockDeviceMappings:
          - DeviceName: /dev/xvda
            Ebs:
              DeleteOnTermination: true
      ParentImage: amazonlinux:2023
      Name: sampleName
      Version: 1.0.0
@kddejong
Copy link
Contributor

This is tripping up the json schema validation as its expecting properties to be along the additionalProperties going to patch it out as it doesn't need to be there.

"InstanceConfiguration": {
   "$ref": "#/definitions/InstanceConfiguration",
   "additionalProperties": false
  },

@kddejong
Copy link
Contributor

Fixed in #3413 release with v1.3.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants