aws opsworks register <target>
Registers an EC2 instance or machine with AWS OpsWorks.
Registering a machine using this command will install the AWS OpsWorks
agent on the target machine and register it with an existing OpsWorks
stack
Arguments
Name | Description |
---|
target | Either the EC2 instance ID or the hostname of the
instance or machine to be registered with OpsWorks.
Cannot be used together with `--local` |
Options
Name | Description |
---|
--stack-id <string> | A stack ID. The instance will be registered with the
given stack |
--infrastructure-class <string> | Specifies whether to register an EC2 instance (`ec2`)
or an on-premises instance (`on-premises`) |
--override-hostname <string> | The instance hostname. If not provided, the current
hostname of the machine will be used |
--override-private-ip <string> | An IP address. If you set this parameter, the given IP
address will be used as the private IP address within
OpsWorks. Otherwise the private IP address will be
determined automatically. Not to be used with EC2
instances |
--override-public-ip <string> | An IP address. If you set this parameter, the given IP
address will be used as the public IP address within
OpsWorks. Otherwise the public IP address will be
determined automatically. Not to be used with EC2
instances |
--override-ssh <string> | If you set this parameter, the given command will be
used to connect to the machine |
--ssh-username <string> | If provided, this username will be used to connect to
the host |
--ssh-private-key <string> | If provided, the given private key file will be used
to connect to the machine |
--local | If given, instead of a remote machine, the local
machine will be imported. Cannot be used together
with `target` |
--use-instance-profile | Use the instance profile instead of creating an IAM
user |