Flint provides out-of-the-box or ready to use workflows for operations on cloud infrastructure/resources. Here are the details of workflows or Flintbits for Amazon EC2 provider-

Flintbox nameLocationAmazon EC2 Flintbits
fb-cloudhttps://github.com/getflint/fb-cloud.gitfb-cloud > aws-ec2 > operation

Available Flintbits

Perform all standard application operations available through the Amazon EC2, Some of them are listed below:

Amazon EC2 available Flintbits

  • create_instance.rb
  • start_instance.rb
  • stop_instance.rb
  • describe_instance.rb
  • terminate_instance.rb
  • reboot_instance.rb
  • list_instance.rb
  • create_security_group.rb
  • add_rule_security_group.rb
  • describe_security_group.rb
  • delete_security_group.rb
  • create_tags.rb
  • describe_tags.rb
  • delete_tags.rb
  • modify_instance_attribute.rb
  • list_regions.rb

Create Instance Operation

The Create an Instances operation enables you to launch a specified number of instances of an AMI for which you have permissions.

When you Create an instance, it enters the pending state. After the instance is ready for you, it enters the running state. To check the state of your instance, use the describe-instances operation.

Input and output JSON for the Create Instances operation

This section illustrates the Flintbit Input and output for Create Instances operations.

Sample Input JSON for the Create Instances operations
{
  "connector_name" : "amazon-ec2",
  "ami_id" : "ami-fce3c696",
  "instance_type" : "t2.micro",
  "min_instance" : 1,
  "max_instance" : 1,
  "availability_zone" : "us-east-1b",
  "region" : "us-east-1",
  "key_name" : "flint-test",
  "subnet_id" : "subnet-4ad45013",
  "access-key" : "BQBIJKQHGGHHGF3KL5SGQ",
  "security-key" : "i2+pesMfdgfdgasdfqwegfdddfg6Qo+fgfdgeHKfdgdfgH0mev",
  "storage" : "GP2",
  "network" : "vpc-b77239d2",
  "security_group" : "default",
  "device_name" : "/dev/sda1",
  "shutdown_behavior" : "stop",
  "termination_protection" : false,
  "timeout" : 60000 
} 

 

 
Flintbit input elements for the Create Instances operation
ParameterDescriptionRequired
connector_nameName of the AWS-EC2 Connector to be configured.true
ami_idSpecifies the unique ID for the AMI(Amazon Machine Images)true
instance_typeSpecifies the type of the instance Valid values are: m1.small, m1.large, m1.xlarge, c1.medium, c1.xlarge, m2.2xlarge, m2.4xlarge, t2.microtrue
min_instanceSpecifies the minimum number of instances to launch, If Amazon EC2 cannot launch the value specified in the (min-count) element, no instances are launched. Valid values: Any value between 1 and the maximum number of instances allowed for your Amazon EC2 accountfalse
max_instanceSpecifies the maximum number of instances to launch, If Amazon EC2 cannot launch the value specified in the (max-count) element, the largest possible number greater than that specified in the (min-count) element is launched. Valid values: Any value between 1 and the maximum number of instances allowed for your Amazon EC2 accounttrue
availability_zoneSpecifies the placement constraints or availability zones for launching the required instances For example, us-east-1a is a sample value for the availability zone element. (Default: us-east-1a)false
regionSpecifies the region for performing operations on Amazon EC2 (Default value: us-east-1)true
key_nameSpecifies the name of the key pairfalse
subnet_idSpecifies the subnet ID for the Amazon Virtual Private Cloud within which to launch the instance or instancesfalse
access_keySpecifies the credentials for signing the connector requestfalse
security_keySpecifies the credentials for signing the connector requestfalse
storageVolume type for instancefalse
networkLaunch Instance into Amazon Virtual Private Cloudfalse
security_groupSecurity Group for instancefalse
device_nameThe available device names for the volume. Depending on the block device driver of the selected AMI's kernel.false
shutdown_behaviorShutdown behavior of instance (Valid inputs : stop/terminate)false
termination_protectionTermination protection of instance (true/false)false
timeoutExecution time of the Flintbit in milliseconds (default timeout is 60000 milloseconds)false
Sample JSON output for the Create Instances operations
{
  "meta": { 
            "job-id": "job-d83959e6-daaf-401b-8bd3-0ecb6023cbb3", 
            "exit-code": 0, 
            "context": "fb-cloud:aws-ec2:operation:create_instance.rb", 
            "message": "success", 
            "timeout": 60000, 
            "timestamp": 1465370400205,
            "status": "complete", 
            "content-type": "application/json" 
          },
  "output": { 
              "instances-info": [ { "instance-type": "t2.micro", "private-ip": "10.0.37.170", "instance-id": "i-66bfcefc", "public-ip": null,           
  "image-id": "ami-fce3c696" } 
            "exit-code": 0 
            } 
} 

 

Start Instances operation

Starts an instance that uses an Amazon EBS volume as its root device.

Input and output JSON for the Start Instances operation

This section illustrates the Flintbit Input and output for Start Instances operations.

Sample Input JSON for the Start Instances operations
{
  "connector_name":"amazon-ec2",
  "instance-id":["i-66bfcefc","i-f88b5c7e"],
  "region":"us-east-1",
  "access-key": "BQBIJKQHGGHHGF3KL5SGQ",
  "security-key": "i2+pesMfdgfdgasdfqwegfdddfg6Qo+fgfdgeHKfdgdfgH0mev",
  "timeout" : 60000 
} 

 

 
Flintbit input elements for the Start Instances operation
ParameterDescriptionRequired
connector_nameName of the AWS-EC2 Connector to be configured.true
instance_idContains one or more instance IDs corresponding to the instances that you want to start, supplied within an array of stringstrue
regionSpecifies the region for performing operations on Amazon EC2 (Default value: us-east-1)true
access_keySpecifies the credentials for signing the connector requestfalse
security_keySpecifies the credentials for signing the connector requestfalse
timeoutExecution time of the Flintbit in milliseconds (default timeout is 60000 milloseconds)false
Sample JSON output for the Start Instances
{
  "meta": { "job-id": "job-500329a9-979f-43cd-9bb4-cc0d0a13599f", "exit-code": 0, "context": "fb-cloud:aws-ec2:operation:start_instance.rb", "message": "success", "timeout": 60000, "timestamp": 1465370932143, "status": "complete", "content-type": "application/json" },
  "output": { "started-instances": [ { "current-state": "pending", "instance-id": "i-66bfcefc", "previous-state": "stopped" }, { "current-state": "pending", "instance-id": "i-f88b5c7e", "previous-state": "stopped" } ], "exit-code": 0 } } 


 

Stop Instances operation

Stops an instance that uses an Amazon EBS volume as its root device.

Input and output JSON for the Stop Instances operation

This section illustrates the Flintbit Input and output for Stop Instances operations.

Sample Input JSON for the Stop Instances operations
{
  "connector_name":"amazon-ec2",
  "instance-id":["i-66bfcefc","i-f88b5c7e"],
  "region":"us-east-1",
  "access-key": "BQBIJKQHGGHHGF3KL5SGQ",
  "security-key": "i2+pesMfdgfdgasdfqwegfdddfg6Qo+fgfdgeHKfdgdfgH0mev",
  "timeout" : 60000 
} 

 

 
Flintbit input elements for the Stop Instances operation
ParameterDescriptionRequired
connector_nameName of the AWS-EC2 Connector to be configured.true
instance_idContains one or more instance IDs corresponding to the instances that you want to stop, supplied within an array of stringstrue
regionSpecifies the region for performing operations on Amazon EC2 (Default value: us-east-1)true
access_keySpecifies the credentials for signing the connector requestfalse
security_keySpecifies the credentials for signing the connector requestfalse
timeoutExecution time of the Flintbit in milliseconds (default timeout is 60000 milloseconds)false
Sample JSON output for the Stop Instances
{
  "meta": { "job-id": "job-ae4f4665-1c5c-4f6a-a725-501e7473aa98", "exit-code": 0, "context": "fb-cloud:aws-ec2:operation:stop_instance.rb", "message": "success", "timeout": 60000, "timestamp": 1465370766831, "status": "complete", "content-type": "application/json" },
  "output": { "stopped-instances": [ { "current-state": "stopping", "instance-id": "i-66bfcefc", "previous-state": "running" }, { "current-state": "stopping", "instance-id": "i-f88b5c7e", "previous-state": "running" } ], "exit-code": 0 } } 


 

Describe Instances operation

Describes one or more of your instances. If you specify one or more instance IDs, Amazon EC2 returns information for those instances

Input and output JSON for the Describe Instances operation

This section illustrates the Flintbit Input and output for Describe Instances operations.

Sample Input JSON for the Describe Instances operations
{
  "connector_name":"amazon-ec2",
  "instance-id":["i-50a077d6","i-522ee6e1"],
  "region":"us-east-1",
  "access-key": "BQBIJKQHGGHHGF3KL5SGQ",
  "security-key": "i2+pesMfdgfdgasdfqwegfdddfg6Qo+fgfdgeHKfdgdfgH0mev",
  "timeout" : 60000 
} 

 

 
Flintbit input elements for the Describe Instances operation
ParameterDescriptionRequired
connector_nameName of the AWS-EC2 Connector to be configured.true
instance_idContains one or more instance IDs corresponding to the instances that you want to describe, supplied within an array of stringstrue
regionSpecifies the region for performing operations on Amazon EC2 (Default value: us-east-1)true
access_keySpecifies the credentials for signing the connector requestfalse
security_keySpecifies the credentials for signing the connector requestfalse
timeoutExecution time of the Flintbit in milliseconds (default timeout is 60000 milloseconds)false
Sample JSON output for the Describe Instances
{
  "meta": { "job-id": "job-8a5906f8-973a-473d-8e76-159d294beb64", "exit-code": 0, "context": "fb-cloud:aws-ec2:operation:describe_instance.rb", "message": "success", "timeout": 60000, "timestamp": 1465383662782, "status": "complete", "content-type": "application/json" },
  "output": { "instances-info": [ { "root-device-type": "ebs", "Platform": null, "kernel-id": null, "subnet-id": "subnet-4ad45013", "ramdisk-id": null, "vpc-id": "vpc-b77239d2", "placement-group-name": "", "image-id": "ami-d05e75b8", "root-device-name": "/dev/sda1", "hypervisor": "xen", "state": "running", "private-ip": "10.0.37.90", "architecture": "x86_64", "instance-lifecycle": null, "key-name": "flintcloud-test", "security-group": [ "default" ], "instance-state-code": 16, "instance-id": "i-522ee6e1", "private-DNSname": "ip-10-0-37-90.ec2.internal", "public-DNSname": "ec2-52-22-36-247.compute-1.amazonaws.com", "source-dest-check": true, "ebs-optimized": false, "instance-type": "t2.medium", "ami-launch-index": 0, "availability-zone": "us-east-1b", "launch-time": "Tue Apr 26 19:28:08 IST 2016", "client-token": "ghKNj1451365551218", "public-ip": "52.22.36.247", "virtualization-type": "hvm", "placement-tenancy": "default" }, { "root-device-type": "ebs", "Platform": null, "kernel-id": "aki-919dcaf8", "subnet-id": null, "ramdisk-id": null, "vpc-id": null, "placement-group-name": "", "image-id": "ami-d85e75b0", "root-device-name": "/dev/sda1", "hypervisor": "xen", "state": "running", "private-ip": "10.170.158.126", "architecture": "x86_64", "instance-lifecycle": null, "key-name": null, "security-group": [ "default" ], "instance-state-code": 16, "instance-id": "i-50a077d6", "private-DNSname": "ip-10-170-158-126.ec2.internal", "public-DNSname": "ec2-54-242-224-20.compute-1.amazonaws.com", "source-dest-check": null, "ebs-optimized": false, "instance-type": "t1.micro", "ami-launch-index": 0, "availability-zone": "us-east-1a", "launch-time": "Sun Jun 05 12:43:49 IST 2016", "client-token": "", "public-ip": "54.242.224.20", "virtualization-type": "paravirtual", "placement-tenancy": "default" } ], "exit-code": 0 } } 


 

Terminate Instances operation

Shuts down one or more instances. This operation is idempotent; if you terminate an instance more than once, each call succeeds. Terminated instances remain visible after termination (approximately one hour).

Input and output JSON for the Terminate Instances operation

This section illustrates the Flintbit Input and output for Terminate Instances operations.

Sample Input JSON for the Terminate Instances operations
{
  "connector_name" : "amazon-ec2",
  "instance-id" : ["i-66bfcefc","i-f88b5c7e"],
  "region" : "us-east-1",
  "access-key" : "BQBIJKQHGGHHGF3KL5SGQ",
  "security-key" : "i2+pesMfdgfdgasdfqwegfdddfg6Qo+fgfdgeHKfdgdfgH0mev",
  "timeout" : 60000
 } 


 

Flintbit input elements for the Terminate Instances operation
ParameterDescriptionRequired
connector_nameName of the AWS-EC2 Connector to be configured.true
instance_idContains one or more instance IDs corresponding to the instances that you want to terminate, supplied within an array of stringstrue
regionSpecifies the region for performing operations on Amazon EC2 (Default value: us-east-1)true
access_keySpecifies the credentials for signing the connector requestfalse
security_keySpecifies the credentials for signing the connector requestfalse
timeoutExecution time of the Flintbit in milliseconds (default timeout is 60000 milloseconds)false
Sample JSON output for the Terminate Instances
{
  "meta": { "job-id": "job-d0ce703c-b605-4e55-9970-960625f30af0", "exit-code": 0, "context": "fb-cloud:aws-ec2:operation:terminate_instance.rb", "message": "success", "timeout": 60000, "timestamp": 1465372242272, "status": "complete", "content-type": "application/json" },
  "output": { "terminated-instances": [ { "current-state": "shutting-down", "instance-id": "i-66bfcefc", "previous-state": "running" }, { "current-state": "shutting-down", "instance-id": "i-f88b5c7e", "previous-state": "running" } ], "exit-code": 0 } } 


 

Reboot Instances operation

An instance reboot is equivalent to an operating system reboot. In most cases, it takes only a few minutes to reboot your instance. When you reboot an instance, it remains on the same physical host, so your instance keeps its public DNS name, private IP address, and any data on its instance store volumes. Rebooting an instance doesn't start a new instance billing hour, unlike stopping and restarting your instance.

Input and output JSON for the Reboot Instances operation

This section illustrates the Flintbit Input and output for Reboot Instances operations.

Sample Input JSON for the Reboot Instances operations
{
  "connector_name" : "amazon-ec2",
  "instance-id" : ["i-66bfcefc","i-f88b5c7e"],
  "region" : "us-east-1",
  "access-key" : "BQBIJKQHGGHHGF3KL5SGQ",
  "security-key" : "i2+pesMfdgfdgasdfqwegfdddfg6Qo+fgfdgeHKfdgdfgH0mev",
  "timeout" : 60000 
} 

 

 
Flintbit input elements for the Reboot Instances operation
ParameterDescriptionRequired
connector_nameName of the AWS-EC2 Connector to be configured.true
instance_idContains one or more instance IDs corresponding to the instances that you want to reboot, supplied within an array of stringstrue
regionSpecifies the region for performing operations on Amazon EC2 (Default value: us-east-1)true
access_keySpecifies the credentials for signing the connector requestfalse
security_keySpecifies the credentials for signing the connector requestfalse
timeoutExecution time of the Flintbit in milliseconds (default timeout is 60000 milloseconds)false
Sample JSON output for the Reboot Instances
{
  "meta": { "job-id": "job-f7cf9499-8e94-4cb4-a227-28bd1920596b", "exit-code": 0, "context": "fb-cloud:aws-ec2:operation:reboot_instance.rb", "message": "success", "timeout": 60000, "timestamp": 1465371237297, "status": "complete", "content-type": "application/json" },
  "output": { "exit-code": 0, "rebooted-instances": [ "i-66bfcefc", "i-f88b5c7e" ] } } 

 

 

List Instances operation

List out and returns information for all relevant instances.

Input and output JSON for the List Instances operation

This section illustrates the Flintbit Input and output for List Instances operations.

Sample Input JSON for the List Instances operations
{
  "connector_name" : "amazon-ec2",
  "region" : "us-east-1",
  "access-key" : "BQBIJKQHGGHHGF3KL5SGQ",
  "security-key" : "i2+pesMfdgfdgasdfqwegfdddfg6Qo+fgfdgeHKfdgdfgH0mev",
  "timeout" : 60000
} 



 
Flintbit input elements for the List Instances operation
ParameterDescriptionRequired
connector_nameName of the AWS-EC2 Connector to be configured.true
regionSpecifies the region for performing operations on Amazon EC2 (Default value: us-east-1)true
access_keySpecifies the credentials for signing the connector requestfalse
security_keySpecifies the credentials for signing the connector requestfalse
timeoutExecution time of the Flintbit in milliseconds (default timeout is 60000 milloseconds)false
Sample JSON output for the List Instances
{
  "meta": { "job-id": "job-b72f3f69-2f01-4ce5-add0-ce989ef75e16", "exit-code": 0, "context": "fb-cloud:aws-ec2:operation:list_instances.rb", "message": "success", "timeout": 60000, "timestamp": 1465371622014, "status": "complete", "content-type": "application/json" },
  "output": { "message": "success", "exit-code": 0, "instance-list": [ { "root-device-type": "ebs", "Platform": null, "kernel-id": null, "subnet-id": "subnet-4ad45013", "ramdisk-id": null, "vpc-id": "vpc-b77239d2", "placement-group-name": "", "image-id": "ami-fce3c696", "provider": "aws-ec2", "root-device-name": "/dev/sda1", "hypervisor": "xen", "state": "running", "private-ip": "10.0.37.170", "instance-lifecycle": null, "architecture": "x86_64", "key-name": "flint-test", "instance-state-code": 16, "security-group": [ "default" ], "instance-id": "i-66bfcefc", "private-DNSname": "ip-10-0-37-170.ec2.internal", "public-DNSname": "ec2-52-91-76-99.compute-1.amazonaws.com", "ebs-optimized": false, "source-dest-check": true, "instance-type": "t2.micro", "ami-launch-index": 0, "launch-time": "Wed Jun 08 12:58:51 IST 2016", "availability-zone": "us-east-1b", "client-token": "8a7b4872-3bc2-40d7-a6be-b29999a4cea0", "virtualization-type": "hvm", "public-ip": "52.91.76.99", "placement-tenancy": "default", "region": "us-east-1" }, { "root-device-type": "ebs", "Platform": null, "kernel-id": null, "subnet-id": "subnet-4ad45013", "ramdisk-id": null, "vpc-id": "vpc-b77239d2", "placement-group-name": "", "image-id": "ami-08111162", "provider": "aws-ec2", "root-device-name": "/dev/xvda", "hypervisor": "xen", "state": "stopped", "private-ip": "10.0.37.67", "instance-lifecycle": null, "architecture": "x86_64", "key-name": "flint-test", "instance-state-code": 80, "security-group": [ "default" ], "instance-id": "i-18496183", "private-DNSname": "ip-10-0-37-67.ec2.internal", "public-DNSname": "", "ebs-optimized": false, "source-dest-check": true, "instance-type": "t2.micro", "ami-launch-index": 0, "launch-time": "Fri May 20 16:23:21 IST 2016", "availability-zone": "us-east-1b", "client-token": "CoCJe1461043944404", "virtualization-type": "hvm", "public-ip": null, "placement-tenancy": "default", "region": "us-east-1" } ] } } 


 

Create Security Group

A security group is for use with instances either in the EC2-Classic platform or in a specific VPC.

Input and output JSON for the Create Security Group operation

This section illustrates the Flintbit Input and output for Create Security Group operations.

Sample Input JSON for the Create Security Group operations
{
  "connector_name" : "amazon-ec2",
  "region" : "us-east-1",
  "group-name" : "flint-group",
  "group-description" : "flint security group",
  "access-key" : "BQBIJKQHGGHHGF3KL5SGQ",
  "security-key" : "i2+pesMfdgfdgasdfqwegfdddfg6Qo+fgfdgeHKfdgdfgH0mev",
  "timeout" : 60000 
} 

Flintbit input elements for the Create Security Group operation
ParameterDescriptionRequired
connector_nameName of the AWS-EC2 Connector to be configured.true
regionSpecifies the region for performing operations on Amazon EC2 (Default value: us-east-1)true
group_nameThe name of the security grouptrue
group_descriptionA description for the security group. This is informational only.true
access_keySpecifies the credentials for signing the connector requestfalse
security_keySpecifies the credentials for signing the connector requestfalse
timeoutExecution time of the Flintbit in milliseconds (default timeout is 60000 milloseconds)false
Sample JSON output for the Create Security Group
{
  "meta": { "job-id": "job-5479270c-cbbe-4f2b-b4a7-e686a15f9744", "exit-code": 0, "context": "fb-cloud:aws-ec2:operation:create_security_group.rb", "message": "success", "timeout": 60000, "timestamp": 1465378679862, "status": "complete", "content-type": "application/json" },
  "output": { "message": "success" } } 


Add Rule Security Group

to add In-bound or out-bound rule on AWS-EC2

Input and output JSON for the Add Rule Security Group operation

This section illustrates the Flintbit Input and output for Add Rule Security Group operations.

Sample Input JSON for the Add Rule Security Group operations
{
"connector_name" : "amazon-ec2",
"action":"security-group-add-rule",                
"region":"us-east-1",
"direction":"inbound",
"ip_range":"0.0.0.0/0",
"cidr_block":"10.0.0.0/32",
"from_port":0,
"to_port":65535 ,         
"protocol":"tcp",       
"security_group_id":"sg-01345279"
}
Flintbit input elements for the Add Rule Security Group operation
connector_nameName of the AWS-EC2 Connector to be configured.true
actionContains the name of the operation: security-group-add-ruletrue
directionContains the direction of the rule, Valid values : inbound,outboundtrue
regionSpecifies the region for performing operations on Amazon EC2 (Default value: us-east-1)false
security_group_idSpecifies the ID of the security group.true
protocolSpecifies the protocol to add rule to security group on Amazon EC2true
ip_rangeSpecifies the IP Ranges to add rule to security group on Amazon EC2false

cidr_block

Specifies the CIDR Block to add rule to security group on Amazon EC2false
from-portSpecifies the from port number to add rule to security group on Amazon EC2true
to_port

Specifies the to port number to add rule to security group on Amazon EC2

true
regionSpecifies the region for performing operations on Amazon EC2 (Default value: us-east-1)true
Sample JSON output for the Add Rule Security Group operation
{
  "meta": {
    "job-id": "job-8ab38831-bbb5-4a7e-9ba3-a0fc82ff36cf",
    "exit-code": 0,
    "context": "fb-cloud:aws-ec2:operation:add_rule_security_group.rb",
    "message": "success",
    "timeout": 60000,
    "timestamp": 1470233663335,
    "status": "complete",
    "content-type": "application/json",
    "username": "admin"
  },
  "output": {
    "message": "success",
    "exit-code": 0
  }
}

 

Describe Security Group

Describes one or more of your security groups.

Input and output JSON for the Describe Security Group operation

This section illustrates the Flintbit Input and output for Describe Security Group operations.

Sample Input JSON for the Describe Security Group operations
{
  "connector_name" : "amazon-ec2",
  "region" : "us-east-1",
  "group-name" : "default",
  "access-key" : "BQBIJKQHGGHHGF3KL5SGQ",
  "security-key" : "i2+pesMfdgfdgasdfqwegfdddfg6Qo+fgfdgeHKfdgdfgH0mev",
  "timeout" : 60000 
} 

 

 
Flintbit input elements for the Describe Security Group operation
ParameterDescriptionRequired
connector_nameName of the AWS-EC2 Connector to be configured.true
regionSpecifies the region for performing operations on Amazon EC2 (Default value: us-east-1)true
group_nameThe name of the security grouptrue
access_keySpecifies the credentials for signing the connector requestfalse
security_keySpecifies the credentials for signing the connector requestfalse
timeoutExecution time of the Flintbit in milliseconds (default timeout is 60000 milloseconds)false
Sample JSON output for the Describe Security Group
{
  "meta": { "job-id": "job-95e0709f-1acd-43c2-97a6-bac2d134a41e", "exit-code": 0, "context": "fb-cloud:aws-ec2:operation:describe_security_group.rb", "message": "success", "timeout": 60000, "timestamp": 1465379709010, "status": "complete", "content-type": "application/json" },
  "output": { "security-group-info": [ { "group-description": "default group", "group-name": "default", "group-id": "sg-9b255ef0", "owner-id": "038055767699", "ip-permissions": [ { "from-port": 0, "to-port": 65535, "ip-ranges": [ "0.0.0.0/0" ], "ip-protocol": "tcp", "user-id-group-pairs": [] } ], "ip-permissions-egress": [], "vpc-id": null, "tags": [] } ] } } 


 

Delete Security Group

Delete one of your security groups.

Input and output JSON for the Delete Security Group operation

This section illustrates the Flintbit Input and output for Delete Security Group operations.

Sample Input JSON for the Delete Security Group operations
{

  "connector_name" : "amazon-ec2",
  "region" : "us-east-1",
  "group-name" : "flint-test1",
  "access-key" : "BQBIJKQHGGHHGF3KL5SGQ",
  "security-key" : "i2+pesMfdgfdgasdfqwegfdddfg6Qo+fgfdgeHKfdgdfgH0mev",
  "timeout" : 60000
 } 
 
Flintbit input elements for the Delete Security Group operation
ParameterDescriptionRequired
connector_nameName of the AWS-EC2 Connector to be configured.true
regionSpecifies the region for performing operations on Amazon EC2 (Default value: us-east-1)true
group_nameThe name of the security grouptrue
access_keySpecifies the credentials for signing the connector requestfalse
security_keySpecifies the credentials for signing the connector requestfalse
timeoutExecution time of the Flintbit in milliseconds (default timeout is 60000 milloseconds)false
Sample JSON output for the Delete Security Group
{
  "meta": { "job-id": "job-3316e33d-5c9a-4e11-8827-3cc90fe8e942", "exit-code": 0, "context": "fb-cloud:aws-ec2:operation:delete_security_group.rb", "message": "success", "timeout": 60000, "timestamp": 1465380631135, "status": "complete", "content-type": "application/json" },
  "output": { "message": "success" } } 


Create Tags Operation

Adds or overwrites tag for the specified instance. Each instance can have a maximum of 10 tags. Each tag consists of a key and optional value. Tag keys must be unique per instance.

Input and output JSON for the Create Tags Operation

This section illustrates the Flintbit Input and output for Create Tags Operation.

Sample Input JSON for the Create Tags Operation
{
  "connector_name" : "amazon-ec2",
  "region" : "us-east-1",
  "resource_id" : "i-18496183",
  "tag_key" : "Name",
  "tag_value" : "flint-server",
  "access-key" : "BQBIJKQHGGHHGF3KL5SGQ",
  "security-key" : "i2+pesMfdgfdgasdfqwegfdddfg6Qo+fgfdgeHKfdgdfgH0mev",
  "timeout" : 60000 
} 

 

 
Flintbit input elements for the Create Tags Operation
ParameterDescriptionRequired
connector_nameName of the AWS-EC2 Connector to be configured.true
regionSpecifies the region for performing operations on Amazon EC2 (Default value: us-east-1)true
resource_idSpecifies the id of resource to which you want to add tagstrue
tag_keySpecifies the tag key which you want to assigntrue
tag_valueSpecifies the tag value which you want to assigntrue
access_keySpecifies the credentials for signing the connector requestfalse
security_keySpecifies the credentials for signing the connector requestfalse
timeoutExecution time of the Flintbit in milliseconds (default timeout is 60000 milloseconds)false
Sample JSON output for the Create Tags Operation
{
  "meta": { "job-id": "job-b3cf4406-5e27-445b-89f8-bd9e30ce5fc0", "exit-code": 0, "context": "fb-cloud:aws-ec2:operation:create_tags.rb", "message": "success", "timeout": 60000, "timestamp": 1465384766318, "status": "complete", "content-type": "application/json" },
  "output": { "message": "success", "exit-code": 0 } } 


 

Describe Tags Operation

Describes the tags for your Amazon EC2 resources.

Input and output JSON for the Describe Tags Operation

This section illustrates the Flintbit Input and output for Describe Tags Operation.

Sample Input JSON for the Describe Tags Operation
{
  "connector_name" : "amazon-ec2",
  "region" : "us-east-1",
  "resource_id" : "i-18496183",
  "resource_type" : "instance",
  "access-key" : "BQBIJKQHGGHHGF3KL5SGQ",
  "security-key" : "i2+pesMfdgfdgasdfqwegfdddfg6Qo+fgfdgeHKfdgdfgH0mev",
  "timeout" : 60000 
} 

 

 
Flintbit input elements for the Describe Tags Operation
ParameterDescriptionRequired
connector_nameName of the AWS-EC2 Connector to be configured.true
regionSpecifies the region for performing operations on Amazon EC2 (Default value: us-east-1)true
resource_idSpecifies the id of resource to which you want to describe tagstrue
resource_typeSpecifies the resource type from which you want to describe tags Example : 'instance'true
access_keySpecifies the credentials for signing the connector requestfalse
security_keySpecifies the credentials for signing the connector requestfalse
timeoutExecution time of the Flintbit in milliseconds (default timeout is 60000 milloseconds)false
Sample JSON output for the Describe Tags Operation
{
  "meta": { "job-id": "job-27859de1-89c7-4fc1-b8dd-de2c980069e6", "exit-code": 0, "context": "fb-cloud:aws-ec2:operation:describe_tags.rb", "message": "success", "timeout": 60000, "timestamp": 1465385063511, "status": "complete", "content-type": "application/json" },
  "output": { "message": "success", "exit-code": 0, "tags": [ { "Name": "mastek" } ] } } 

 

Delete Tags Operation

Delete the tags for your Amazon EC2 resources.

Input and output JSON for the Delete Tags Operation

This section illustrates the Flintbit Input and output for Delete Tags Operation.

Sample Input JSON for the Delete Tags Operation
{
  "connector_name" : "amazon-ec2",
  "region" : "us-east-1",
  "resource_id" : "i-18496183",
  "tag_key" : "Name",
  "tag_value" : "flint-server",
  "access-key" : "BQBIJKQHGGHHGF3KL5SGQ",
  "security-key" : "i2+pesMfdgfdgasdfqwegfdddfg6Qo+fgfdgeHKfdgdfgH0mev",
  "timeout" : 60000 
} 


 

Flintbit input elements for the Delete Tags Operation
ParameterDescriptionRequired
connector_nameName of the AWS-EC2 Connector to be configured.true
regionSpecifies the region for performing operations on Amazon EC2 (Default value: us-east-1)true
resource_idSpecifies the id of resource to which you want to delete tagstrue
tag_keySpecifies the tag key which you want to deletetrue
tag_valueSpecifies the tag value which you want to deletetrue
access_keySpecifies the credentials for signing the connector requestfalse
security_keySpecifies the credentials for signing the connector requestfalse
timeoutExecution time of the Flintbit in milliseconds (default timeout is 60000 milloseconds)false
Sample JSON output for the Create Tags Operation
{
  "meta": { "job-id": "job-a51c16ce-a9c0-4f4e-bf0a-ebdd490f7f30", "exit-code": 0, "context": "fb-cloud:aws-ec2:operation:delete_tags.rb", "message": "success", "timeout": 60000, "timestamp": 1465388319666, "status": "complete", "content-type": "application/json" },
  "output": { "message": "success", "exit-code": 0 } }

 

 

On this page: