CmdID / aws / aws deploy
aws deploy register-on-premises-instance
Registers an on-premises instance. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To register an on-premises instance
The following register-on-premises-instance example registers an on-premises instance with AWS CodeDeploy. It does not create the specified IAM user, nor does it associate in AWS CodeDeploy any on-premises instances tags with the registered instance.
aws deploy register-on-premises-instance --instance-name AssetTag12010298EX --iam-user-arn arn:aws:iam::80398EXAMPLE:user/CodeDeployDemoUser-OnPremIdentify--instance-nameThe name of the on-premises instance to register.--iam-user-arnThe ARN of the user to associate with the on-premises instance.This command produces no output.
For more information, see Use the register-on-premises-instance command (IAM user ARN) to register an on-premises instance in the AWS CodeDeploy User Guide.
Options
--iam-session-arnThe ARN of the IAM session to associate with the on-premises instance.--iam-user-arnThe ARN of the user to associate with the on-premises instance.--instance-nameThe name of the on-premises instance to register.