-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
(ec2.KeyPair): extraneous key [KeyFormat] is not permitted #28984
Comments
@ajaykarpur Are you updating a key pair by chance? I see
|
Thanks for testing this! No, I'm not updating an existing key pair-- I'm trying to create a new one. Here's some additional context:
|
hmm, I can't reproduce. what happens if you don't specify |
Just tried-- that didn't work either, unfortunately. |
Can I see the CFN? Here's what mine is when I deploy:
|
Looks the same as mine:
I wonder if there's a CloudFormation bug in the region I'm using ( |
That could be it... can you try deploying in a different Region? If it works in that Region, could you reach out to AWS Support in the gov cloud account? |
Yes I can't reproduce this in |
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
Describe the bug
I'm creating a new key pair like so:
When I deploy the stack, I get this error:
Expected Behavior
I'm not setting KeyFormat, so I expect it to default to PEM and deploy with no issues.
Current Behavior
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.126.0 (build fb74c41)
Framework Version
No response
Node.js Version
v20.9.0
OS
macOS Ventura 13.5.2
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: