CmdID

CmdID / aws / aws deploy

aws deploy register

Creates an IAM user for the on-premises instance, if not provided, and saves the user's credentials to an on-premises instance configuration file; registers the on-premises instance with AWS CodeDeploy; and optionally adds tags to the on-premises instance. AWS CLI reference

1 example 3 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To register an on-premises instance

The following register example registers an on-premises instance with AWS CodeDeploy, associates in AWS CodeDeploy the specified on-premises instance tag with the registered instance, and creates an on-premises configuration file that can be copied to the instance. It does not create the IAM user, nor does it install the AWS CodeDeploy Agent on the instance.

aws deploy register --instance-name AssetTag12010298EX --iam-user-arn arn:aws:iam::80398EXAMPLE:user/CodeDeployUser-OnPrem --tags Key=Name,Value=CodeDeployDemo-OnPremIdentify
--instance-nameThe name of the on-premises instance.
--iam-user-arnThe IAM user associated with the on-premises instance.
--tagsThe list of key/value pairs to tag the on-premises instance.
Its output
Registering the on-premises instance... DONE
Adding tags to the on-premises instance... DONE
Copy the on-premises configuration file named codedeploy.onpremises.yml to the on-premises instance, and run the following command on the on-premises instance to install and configure the AWS CodeDeploy Agent:
aws deploy install --config-file codedeploy.onpremises.yml

For more information, see Use the register command (IAM user ARN) to register an on-premises instance in the AWS CodeDeploy User Guide.

Options

3 in the AWS CLI reference
--iam-user-arnThe IAM user associated with the on-premises instance.
--instance-nameThe name of the on-premises instance.
--tagsThe list of key/value pairs to tag the on-premises instance.