HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //usr/share/doc/awscli/examples/opsworks/create-server.rst
**To create a server**

The following ``create-server`` example creates a new Chef Automate server named ``automate-06`` in your default region. Note that defaults are used for most other settings, such as number of backups to retain, and maintenance and backup start times. Before you run a ``create-server`` command, complete prerequisites in `Getting Started with AWS OpsWorks for Chef Automate <http://docs.aws.amazon.com/opsworks/latest/userguide/gettingstarted-opscm.html>`__ in the *AWS Opsworks for Chef Automate User Guide*. ::

    aws opsworks-cm create-server \
        --engine "ChefAutomate" \
        --instance-profile-arn "arn:aws:iam::012345678901:instance-profile/aws-opsworks-cm-ec2-role" \
        --instance-type "t2.medium" \
        --server-name "automate-06" \
        --service-role-arn "arn:aws:iam::012345678901:role/aws-opsworks-cm-service-role"

Output::

    {
        "Server": {
            "AssociatePublicIpAddress": true,
            "BackupRetentionCount": 10,
            "CreatedAt": 2019-12-29T13:38:47.520Z,
            "DisableAutomatedBackup": FALSE,
            "Endpoint": "https://opsworks-cm.us-east-1.amazonaws.com",
            "Engine": "ChefAutomate",
            "EngineAttributes": [
                {
                    "Name": "CHEF_AUTOMATE_ADMIN_PASSWORD",
                    "Value": "1Example1"
                }
            ],
            "EngineModel": "Single",
            "EngineVersion": "2019-08",
            "InstanceProfileArn": "arn:aws:iam::012345678901:instance-profile/aws-opsworks-cm-ec2-role",
            "InstanceType": "t2.medium",
            "PreferredBackupWindow": "Sun:02:00",
            "PreferredMaintenanceWindow": "00:00",
            "SecurityGroupIds": [ "sg-12345678" ],
            "ServerArn": "arn:aws:iam::012345678901:instance/automate-06-1010V4UU2WRM2",
            "ServerName": "automate-06",
            "ServiceRoleArn": "arn:aws:iam::012345678901:role/aws-opsworks-cm-service-role",
            "Status": "CREATING",
            "SubnetIds": [ "subnet-12345678" ]
        }
    }

For more information, see `CreateServer <http://docs.aws.amazon.com/opsworks-cm/latest/APIReference/API_CreateServer.html>`__ in the *AWS OpsWorks for Chef Automate API Reference*.