Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
Flow Designer: AWS EC2 spoke issue: Unable to pick data items from data pill - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Flow Designer: AWS EC2 spoke issue: Unable to pick data items from data pill
KB0863182

Flow Designer: AWS EC2 spoke issue: Unable to pick data items from data pill


669 Views Last updated : Apr 8, 2024 public Copy Permalink
KB Summary by Now Assist

Issue

Amazon EC2 spoke

Integrate ServiceNow instance with Amazon Elastic Compute Cloud (EC2). Manage Amazon instances, Amazon Machine Images (AMIs), Key Pairs, and Tags from your ServiceNow instance.

Amazon EC2 Spoke

From this KB perspective , Amazon EC2 spoke use the Action "List Instances" to list the instances for a region and then using the Action "Stop Instances" , to stop the relevant instances by providing the "Instance ID" as an input to stop instance action

Trying to pull the value of the Instance ID variable from the output variables of "List Instances" action in flow designer but the variable "Instance ID" from the Data Picker in flow designer towards the right is grayed out. In fact the whole array and its all fields are grayed out and doesn't allow us to pull the instance id as inputs to stop instance action

Sample Flow:


List Action data pill structure for Ec2 spoke:

Release

Paris

Cause

We could get the results from list of instances action in the flow in the below format

Reservation Set - {
"reservation_set" : [ {
"imageId" : "ami-02354e95b39ca8dec",
"instanceId" : "i-0cedd3f1defebd299",
"instanceState" : {
"name" : "stopped"
},
"instanceType" : "t2.micro",
"ipAddress" : null,
"monitoring" : {
"state" : "disabled"
},

From the results of list instance action , the instance id is present in Reservation set --> reservation set array as stated above. The instance id from list instance data pill in the right under flow designer, we could see the instance id object exists under Reservation set object 

Hierarchy of the list instance action design is Reservation set object --> Reservation set object  Array --> Reservation set object  --> Instance id , image id etc

The list instance action data pill in flow designer has Reservation set object followed by reservation set array, again an object and then the instance id object. The input for instance id under stop instances action is expecting an array object but the instance id in list instance data pill design is under Reservation set normal object and hence we cannot pull the instance id from list instance action data pill as an input to the stop instance action

Resolution

In the list instances result , we have "Reservation Sets"(type object) => "Reservation Set(Type Array)" => "Instance ID". "Reservation set" is type of array. If we need to use "Instance ID" as an input to stop action from the results of list action , use " For loop" and place the stop action inside the for loop. 

Here is the screenshot 

This will read the instance id from the "For loop" results and stop the instances accordingly.


The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.