Skip to content

(aws-cloudformation) What is wrong with my code? #34445

Open
@dentistfrankchen

Description

@dentistfrankchen

Describe the bug

Here's my yaml file.
The stack cannot be created.
It says [Failure] reason
Properties validation failed for resource EC2Instance with message: [#: extraneous key [InstanceMarketOptions] is not permitted]

WindowsServer2019-NICE-DCV.yaml.txt

Regression Issue

  • Select this option if this issue appears to be a regression.

Last Known Working CDK Library Version

No response

Expected Behavior

The stack should be created.

Current Behavior

CREATE_ERROR

Reproduction Steps

use the yaml to create stacks.

Possible Solution

No response

Additional Information/Context

No response

AWS CDK Library version (aws-cdk-lib)

...

AWS CDK CLI version

...

Node.js Version

...

OS

...

Language

Python

Language Version

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-cloudformationRelated to AWS CloudFormationbugThis issue is a bug.closing-soonThis issue will automatically close in 4 days unless further comments are made.response-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 7 days.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions