aws-cloudformation / aws-cloudformation/cloudformation-coverage-roadmap
[Resource Type] - [BUG] - Cloudformation replaces an EC2 Key pair for tag changes
- Dominant language
- No language data
- Stars
- 1.1k
- Forks
- 62
- PR merge metrics
- No merged PRs in 30d
Description
### Name of the resource
AWS::EC2::KeyPair
### Resource Name
_No response_
### Issue Description
The ec2 API allows modifying tags for ec2 keypair without recreating the resource. However cloudformation replaces an ec2 keypair if we add/update any tag
### Expected Behavior
Cloudformation should not replace the key pair but update the tag without interruption
### Observed Behavior
The ec2 API allows modifying tags for ec2 keypair without recreating the resource. However cloudformation replaces an ec2 keypair if we add/update any tag
### Test Cases
We want to add/update tags to all our resources in an automated fashion using aws-cdk. But because of this behaviour we need to perform this in a manual fashion so that we can replace the key pair
### Other Details
_No response_
Contributor guide
Research direction
The issue concerns AWS::EC2::KeyPair and EC2 tag updates; start by comparing CloudFormation behavior with the EC2 API when adding or updating tags. Done means tag changes update the existing key pair without replacement or interruption, with the behavior verified through the reported aws-cdk automation scenario.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws
- Domain
- cloud, infrastructure
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100