fence_aws_vpc is a Network and Power Fencing agent for AWS VPC that works by manipulating security groups. It uses the boto3 library to connect to AWS.
boto3 can be configured with AWS CLI or by creating ~/.aws/credentials.
For instructions see: https://boto3.readthedocs.io/en/latest/guide/quickstart.html#configuration NOTE: If onfence-poweroff is set, the agent won't be able to power on the node again, it will have to be powered on manually or with other automation.
http://www.amazon.com
Fencing action
AWS Instance ID to perform action on
AWS Instance ID to perform action on
AWS Region.
AWS Access Key.
AWS Secret Key.
Security Groups to remove.
Skip race condition check.
Remove all security groups except specified..
Remove all security groups except specified..
Remove all security groups except specified..
Remove all security groups except specified..
Filter for list-action
Boto Lib debug
Power off the machine async..
Power off the machine async..
Continue to fence even if backup tag fails..
Continue to fence even if backup tag fails..
Fence regardless of AWS state
Fence regardless of AWS state
Security Groups to restore for interface 0 (bypasses tag logic)
Security Groups to restore for interface 0 (bypasses tag logic)
Security Groups to restore for interface 1 (bypasses tag logic)
Security Groups to restore for interface 1 (bypasses tag logic)
Security Groups to restore for interface 2 (bypasses tag logic)
Security Groups to restore for interface 2 (bypasses tag logic)
Security Groups to restore for interface 3 (bypasses tag logic)
Security Groups to restore for interface 3 (bypasses tag logic)
Security Groups to restore for interface 4 (bypasses tag logic)
Security Groups to restore for interface 4 (bypasses tag logic)
Security Groups to restore for interface 5 (bypasses tag logic)
Security Groups to restore for interface 5 (bypasses tag logic)
Security Groups to restore for interface 6 (bypasses tag logic)
Security Groups to restore for interface 6 (bypasses tag logic)
Security Groups to restore for interface 7 (bypasses tag logic)
Security Groups to restore for interface 7 (bypasses tag logic)
Security Groups to restore for interface 8 (bypasses tag logic)
Security Groups to restore for interface 8 (bypasses tag logic)
Security Groups to restore for interface 9 (bypasses tag logic)
Security Groups to restore for interface 9 (bypasses tag logic)
Security Groups to restore for interface 10 (bypasses tag logic)
Security Groups to restore for interface 10 (bypasses tag logic)
Security Groups to restore for interface 11 (bypasses tag logic)
Security Groups to restore for interface 11 (bypasses tag logic)
Security Groups to restore for interface 12 (bypasses tag logic)
Security Groups to restore for interface 12 (bypasses tag logic)
Security Groups to restore for interface 13 (bypasses tag logic)
Security Groups to restore for interface 13 (bypasses tag logic)
Security Groups to restore for interface 14 (bypasses tag logic)
Security Groups to restore for interface 14 (bypasses tag logic)
Security Groups to restore for interface 15 (bypasses tag logic)
Security Groups to restore for interface 15 (bypasses tag logic)
Disable logging to stderr. Does not affect --verbose or --debug-file or logging to syslog.
Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.
Level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).
Write debug information to given file
Write debug information to given file
Display version information and exit
Display help and exit
Separator for plug parameter when specifying more than 1 plug
Separator for CSV created by 'list' operation
Wait X seconds before fencing is started
Disable timeout (true/false) (default: true when run from Pacemaker 2.0+)
Wait X seconds for cmd prompt after login
Test X seconds for status change after ON/OFF
Wait X seconds after issuing ON/OFF
Wait X seconds for cmd prompt after issuing command
Sleep X seconds between status calls during a STONITH action
Count of attempts to retry power on