aws-cloudformation / aws-cloudformation/cloudformation-coverage-roadmap
(AWS::EC2::Instance) Relay descriptive 'InvalidParameterValue' error message to stack events
- 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::Instance
### Resource name
_No response_
### Description
I had just resolved an issue whereby a stack was failing to be created as an AWS::EC2::Instance resource was getting stuck in the CREATE_IN_PROGRESS state.
The cause of the issue was ultimately found by inspecting CloudTrail events, finding the respective failing RunInstances event, which included the following error information:
```
errorCode: Client.InvalidParameterValue
errorMessage: Value (xxxxxxxxxxx) for parameter iamInstanceProfile.name is invalid. Invalid IAM Instance Profile name
```
Whilst the issue was resolved by correcting the Instance Profile, it would be nice if Cloudformation could present these details more visibility in stack events.
### Other Details
_No response_
Contributor guide
Research direction
Start with issue #1253 and compare the CloudTrail RunInstances error for AWS::EC2::Instance with the information currently shown in CloudFormation stack events. No files or tests are named; done means stack events expose the descriptive InvalidParameterValue message, including the invalid IAM instance profile detail.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws
- Domain
- cloud
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100