EnglishFrenchSpanish

Ad


OnWorks favicon

as-terminate-instance-in-auto-scaling-group - Online in th

Run as-terminate-instance-in-auto-scaling-group in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command as-terminate-instance-in-auto-scaling-group that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


as-terminate-instance-in-auto-scaling-group - Terminates a given
instance.

SYNOPSIS


as-terminate-instance-in-auto-scaling-group
InstanceId
--decrement-desired-capacity/no-decrement-desired-capacity
[General Options]

DESCRIPTION


Terminates a given instance. If specified with
--decrement-desired-capacity,
the value of desired capacity will be reduced by 1 when the
instance
is terminated. If specified with --no-decrement-desired-capacity, the
value
of desired capacity will not change and Auto Scaling will
launch a
replacement instance.

ARGUMENTS


InstanceId
ID of the instance to be terminated. You can also set this value
using
"--instance". Required.

SPECIFIC OPTIONS


-d, --decrement-desired-capacity, -D, --no-decrement-desired-capacity
Specify only one of the two flags. If set, desired capacity is
decremented by 1 when we terminate this instance. Otherwise, a new
instance will be launched to compensate for the termination of this
instance. Required.

-f, --force
Forces the terminate action to go through without prompting. By
default,
the terminate command will prompt.

GENERAL OPTIONS


--aws-credential-file VALUE
Location of the file with your AWS credentials. This value can be
set by
using the environment variable 'AWS_CREDENTIAL_FILE'.

-C, --ec2-cert-file-path VALUE
Path to the file holding the X.509 certificate. This value can be
set by
using the environment variable 'EC2_CERT'.

--connection-timeout VALUE
Connection timeout (in seconds). The default value is '30'.

--delimiter VALUE
The delimiter to use when displaying delimited (long) results.

-H, --headers
For displaying tabular or delimited results, it includes the column
headers. For displaying XML results, it returns the HTTP headers
from the
service request, if applicable. This is off by default.

-I, --access-key-id VALUE
The AWS access ID to use.

-K, --ec2-private-key-file-path VALUE
Path to the file holding the X.509 private key. This value can be
set by
using the environment variable 'EC2_PRIVATE_KEY'.

--region VALUE
Amazon EC2 region to use. This value can be set by using the
environment
variable 'EC2_REGION'.

-S, --secret-key VALUE
The AWS Secret Key to use.

--show-empty-fields
Shows empty fields and rows, using a (nil) value. The default is to
not
show empty fields or columns.

--show-request
Displays the URL the tools used to call the AWS Service. The
default
value is 'false'.

--show-table, --show-long, --show-xml, --quiet
The way in which the results are displayed: tabular, delimited
(long),
XML or no output (quiet). Tabular shows a subset of the data in
fixed
column-width form, while long shows all of the returned values
delimited
by a character, XML is the raw return from the service and quiet
suppresses all standard output. The default is tabular, or
'show-table'.

-U, --url VALUE
This option will override the URL for the service call with VALUE.
This
value can be set by using the environment variable
'AWS_AUTO_SCALING_URL'.

INPUT EXAMPLES


Terminates instance 'i-1' and decrements group size.

$PROMPT> as-terminate-instance-in-auto-scaling-group i-1
--decrement-desired-capacity

Terminates instance 'i-2' but does not decrement the group size.

$PROMPT> as-terminate-instance-in-auto-scaling-group i-2
--no-decrement-desired-capacity

OUTPUT


This command returns a table that contains the following:
* ACTIVITY-ID - Id of the scaling activity.
* UPDATED-TIME - Last update time of this activity's status.
* CODE - Status code of the activity.
* CAUSE - Activity cause.
* MESSAGE - Message associated with the acitivity's latest event
(long).
This column appears only in the --show-long view.
* PROGRESS - Progress rate of the activity (long). This column appears
only
in the --show-long view.
* DESCRIPTION - Activity description (long). This column appears only
in the
--show-long view.
* START-TIME - Activity's start time (long). This column appears only
in the
--show-long view.

OUTPUT EXAMPLES


This is an example of the output of this command.

Use as-terminate-instance-in-auto-scaling-group online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    VASSAL Engine
    VASSAL Engine
    VASSAL is a game engine for creating
    electronic versions of traditional board
    and card games. It provides support for
    game piece rendering and interaction,
    and...
    Download VASSAL Engine
  • 2
    OpenPDF - Fork of iText
    OpenPDF - Fork of iText
    OpenPDF is a Java library for creating
    and editing PDF files with a LGPL and
    MPL open source license. OpenPDF is the
    LGPL/MPL open source successor of iText,
    a...
    Download OpenPDF - Fork of iText
  • 3
    SAGA GIS
    SAGA GIS
    SAGA - System for Automated
    Geoscientific Analyses - is a Geographic
    Information System (GIS) software with
    immense capabilities for geodata
    processing and ana...
    Download SAGA GIS
  • 4
    Toolbox for Java/JTOpen
    Toolbox for Java/JTOpen
    The IBM Toolbox for Java / JTOpen is a
    library of Java classes supporting the
    client/server and internet programming
    models to a system running OS/400,
    i5/OS, o...
    Download Toolbox for Java/JTOpen
  • 5
    D3.js
    D3.js
    D3.js (or D3 for Data-Driven Documents)
    is a JavaScript library that allows you
    to produce dynamic, interactive data
    visualizations in web browsers. With D3
    you...
    Download D3.js
  • 6
    Shadowsocks
    Shadowsocks
    A fast tunnel proxy that helps you
    bypass firewalls This is an application
    that can also be fetched from
    https://sourceforge.net/projects/shadowsocksgui/.
    It ha...
    Download Shadowsocks
  • More »

Linux commands

Ad