AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Creates and immedately starts a new server. The server is ready to use when it is
in the HEALTHY
state. By default, you can create a maximum of 10 servers.
This operation is asynchronous.
A LimitExceededException
is thrown when you have created the maximum number
of servers (10). A ResourceAlreadyExistsException
is thrown when a server with
the same name already exists in the account. A ResourceNotFoundException
is
thrown when you specify a backup ID that is not valid or is for a backup that does
not exist. A ValidationException
is thrown when parameters of the request are
not valid.
If you do not specify a security group by adding the SecurityGroupIds
parameter,
AWS OpsWorks creates a new security group.
Chef Automate: The default security group opens the Chef server to the world on TCP port 443. If a KeyName is present, AWS OpsWorks enables SSH access. SSH is also open to the world on TCP port 22.
Puppet Enterprise: The default security group opens TCP ports 22, 443, 4433, 8140, 8142, 8143, and 8170. If a KeyName is present, AWS OpsWorks enables SSH access. SSH is also open to the world on TCP port 22.
By default, your server is accessible from any IP address. We recommend that you update your security group rules to allow access from known IP addresses and address ranges only. To edit security group rules, open Security Groups in the navigation pane of the EC2 management console.
To specify your own domain for a server, and provide your own self-signed or CA-signed
certificate and private key, specify values for CustomDomain
, CustomCertificate
,
and CustomPrivateKey
.
This is an asynchronous operation using the standard naming convention for .NET 4.5 or higher. For .NET 3.5 the operation is implemented as a pair of methods using the standard naming convention of BeginCreateServer and EndCreateServer.
Namespace: Amazon.OpsWorksCM
Assembly: AWSSDK.OpsWorksCM.dll
Version: 3.x.y.z
public virtual Task<CreateServerResponse> CreateServerAsync( CreateServerRequest request, CancellationToken cancellationToken )
Container for the necessary parameters to execute the CreateServer service method.
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Exception | Condition |
---|---|
LimitExceededException | The limit of servers or backups has been reached. |
ResourceAlreadyExistsException | The requested resource cannot be created because it already exists. |
ResourceNotFoundException | The requested resource does not exist, or access was denied. |
ValidationException | One or more of the provided request parameters are not valid. |
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5