CloudFormation parameter type AWS::EC2::Instance::Id shows only 1 result

0

I have this in my CloudFormation stack:

Parameters:
  Instance:
    Type: AWS::EC2::Instance::Id

But the list only shows 1 item, I have lots of instances in the region.

To reproduce, create any stack with this parameter type and try to select the instance from the CloudFormation wizard.

  • If answer is helpful, please accept it for better community experience.

  • Thanks Abhishek, putting as List doesn't show the dropdown anymore. The region is us-west-1.

  • Darn it, I can confirm, it's an issue in us-west-1. Do you have access to log support case or otherwise, I've already reported this through internal ticket.

  • thank you very much!

  • Hey, it's fixed now. You should see all the instances in the dropdown on cloudformation console.

n
asked 10 months ago447 views
3 Answers
0
Accepted Answer

AWS fixed their bug, now it's working again, thanks Abhishek!

n
answered 10 months ago
0

I have been using it in some of my cloudformation and it lets me choose from all of the available instances. No issues.

All EC2 instances show up in stack parameter even if instances are stopped.

Can you please make sure, you are running cloudformation in same region where those instances are. As in that case, instances won't show up for us-east-1, if you are running cloudformation in us-east-2.

Edit:(Post discussion)

Can you please try this, I hope this would work for you, though for me both are working fine.

 Parameters:
     InstanceList:
        Type: 'List<AWS::EC2::Instance::Id>'

If first one is not working as expected, try with List option. Hope that may fit into your requirement.

profile pictureAWS
EXPERT
answered 10 months ago
  • Thanks Abhishek, yes I double checked the region, I see in the list only 1 instance from the region with status Stopped. All other instances were left out.

    It was working last week when I can see all of my instances. Was there anything changed?

  • FYI I checked the dev console and can see lots of instances returned to the DescribeInstancesResponse fetch request.

  • That's interesting, nothing changed in my knowledge as otherwise it'd have impacted very broadly. Let me see if I can find something more on this.

  • That one instance, do you see anything different in that from others in terms of instance profile etc?

  • would a difference in tags cause the issue?

0

Use a different browser. I've seen in the past that a change was made to the console and dropdowns were broken.

profile pictureAWS
EXPERT
kentrad
answered 10 months ago
  • Absolutely, that can happen.

  • hey, I found the uniqueness, it's the FIRST instance if you sort by launch date! Ring any bell?

  • nope, tried both Safari and Chrome, same thing.

  • tried Safari and Chrome's incognito, no luck

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions