AWS Native v0.63.0, May 25 23
AWS Native v0.63.0, May 25 23
aws-native.opsworkscm.Server
Explore with Pulumi AI
Resource Type definition for AWS::OpsWorksCM::Server
Example Usage
Example
using System.Collections.Generic;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var pivotalKey = config.Require("pivotalKey");
var password = config.Require("password");
var myChefServer = new AwsNative.OpsWorksCM.Server("myChefServer", new()
{
BackupRetentionCount = 12,
CustomCertificate = "-----BEGIN CERTIFICATE----- EXAMPLEqEXAMPLE== -----END CERTIFICATE-----",
CustomDomain = "https://aws.my-company.com",
CustomPrivateKey = "-----BEGIN RSA PRIVATE KEY----- EXAMPLEqEXAMPLE= -----END RSA PRIVATE KEY-----",
DisableAutomatedBackup = false,
Engine = "ChefAutomate",
EngineVersion = "2",
EngineAttributes = new[]
{
new AwsNative.OpsWorksCM.Inputs.ServerEngineAttributeArgs
{
Name = "CHEF_AUTOMATE_PIVOTAL_KEY",
Value = pivotalKey,
},
new AwsNative.OpsWorksCM.Inputs.ServerEngineAttributeArgs
{
Name = "CHEF_AUTOMATE_ADMIN_PASSWORD",
Value = password,
},
},
EngineModel = "Single",
InstanceProfileArn = "INSTANCE-PROFILE-ARN",
InstanceType = "r5.xlarge",
PreferredBackupWindow = "08:00",
PreferredMaintenanceWindow = "Fri:08:00",
ServiceRoleArn = "SERVICE-ROLE-ARN",
Tags = new[]
{
new AwsNative.OpsWorksCM.Inputs.ServerTagArgs
{
Key = "Stage",
Value = "Production",
},
new AwsNative.OpsWorksCM.Inputs.ServerTagArgs
{
Key = "Name",
Value = "test-owcm-server",
},
},
});
return new Dictionary<string, object?>
{
["endpoint"] = myChefServer.Endpoint,
};
});
package main
import (
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/opsworkscm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
pivotalKey := cfg.Require("pivotalKey")
password := cfg.Require("password")
myChefServer, err := opsworkscm.NewServer(ctx, "myChefServer", &opsworkscm.ServerArgs{
BackupRetentionCount: pulumi.Int(12),
CustomCertificate: pulumi.String("-----BEGIN CERTIFICATE----- EXAMPLEqEXAMPLE== -----END CERTIFICATE-----"),
CustomDomain: pulumi.String("https://aws.my-company.com"),
CustomPrivateKey: pulumi.String("-----BEGIN RSA PRIVATE KEY----- EXAMPLEqEXAMPLE= -----END RSA PRIVATE KEY-----"),
DisableAutomatedBackup: pulumi.Bool(false),
Engine: pulumi.String("ChefAutomate"),
EngineVersion: pulumi.String("2"),
EngineAttributes: []opsworkscm.ServerEngineAttributeArgs{
{
Name: pulumi.String("CHEF_AUTOMATE_PIVOTAL_KEY"),
Value: pulumi.String(pivotalKey),
},
{
Name: pulumi.String("CHEF_AUTOMATE_ADMIN_PASSWORD"),
Value: pulumi.String(password),
},
},
EngineModel: pulumi.String("Single"),
InstanceProfileArn: pulumi.String("INSTANCE-PROFILE-ARN"),
InstanceType: pulumi.String("r5.xlarge"),
PreferredBackupWindow: pulumi.String("08:00"),
PreferredMaintenanceWindow: pulumi.String("Fri:08:00"),
ServiceRoleArn: pulumi.String("SERVICE-ROLE-ARN"),
Tags: []opsworkscm.ServerTagArgs{
{
Key: pulumi.String("Stage"),
Value: pulumi.String("Production"),
},
{
Key: pulumi.String("Name"),
Value: pulumi.String("test-owcm-server"),
},
},
})
if err != nil {
return err
}
ctx.Export("endpoint", myChefServer.Endpoint)
return nil
})
}
Coming soon!
import pulumi
import pulumi_aws_native as aws_native
config = pulumi.Config()
pivotal_key = config.require("pivotalKey")
password = config.require("password")
my_chef_server = aws_native.opsworkscm.Server("myChefServer",
backup_retention_count=12,
custom_certificate="-----BEGIN CERTIFICATE----- EXAMPLEqEXAMPLE== -----END CERTIFICATE-----",
custom_domain="https://aws.my-company.com",
custom_private_key="-----BEGIN RSA PRIVATE KEY----- EXAMPLEqEXAMPLE= -----END RSA PRIVATE KEY-----",
disable_automated_backup=False,
engine="ChefAutomate",
engine_version="2",
engine_attributes=[
aws_native.opsworkscm.ServerEngineAttributeArgs(
name="CHEF_AUTOMATE_PIVOTAL_KEY",
value=pivotal_key,
),
aws_native.opsworkscm.ServerEngineAttributeArgs(
name="CHEF_AUTOMATE_ADMIN_PASSWORD",
value=password,
),
],
engine_model="Single",
instance_profile_arn="INSTANCE-PROFILE-ARN",
instance_type="r5.xlarge",
preferred_backup_window="08:00",
preferred_maintenance_window="Fri:08:00",
service_role_arn="SERVICE-ROLE-ARN",
tags=[
aws_native.opsworkscm.ServerTagArgs(
key="Stage",
value="Production",
),
aws_native.opsworkscm.ServerTagArgs(
key="Name",
value="test-owcm-server",
),
])
pulumi.export("endpoint", my_chef_server.endpoint)
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const config = new pulumi.Config();
const pivotalKey = config.require("pivotalKey");
const password = config.require("password");
const myChefServer = new aws_native.opsworkscm.Server("myChefServer", {
backupRetentionCount: 12,
customCertificate: "-----BEGIN CERTIFICATE----- EXAMPLEqEXAMPLE== -----END CERTIFICATE-----",
customDomain: "https://aws.my-company.com",
customPrivateKey: "-----BEGIN RSA PRIVATE KEY----- EXAMPLEqEXAMPLE= -----END RSA PRIVATE KEY-----",
disableAutomatedBackup: false,
engine: "ChefAutomate",
engineVersion: "2",
engineAttributes: [
{
name: "CHEF_AUTOMATE_PIVOTAL_KEY",
value: pivotalKey,
},
{
name: "CHEF_AUTOMATE_ADMIN_PASSWORD",
value: password,
},
],
engineModel: "Single",
instanceProfileArn: "INSTANCE-PROFILE-ARN",
instanceType: "r5.xlarge",
preferredBackupWindow: "08:00",
preferredMaintenanceWindow: "Fri:08:00",
serviceRoleArn: "SERVICE-ROLE-ARN",
tags: [
{
key: "Stage",
value: "Production",
},
{
key: "Name",
value: "test-owcm-server",
},
],
});
export const endpoint = myChefServer.endpoint;
Coming soon!
Create Server Resource
new Server(name: string, args: ServerArgs, opts?: CustomResourceOptions);
@overload
def Server(resource_name: str,
opts: Optional[ResourceOptions] = None,
associate_public_ip_address: Optional[bool] = None,
backup_id: Optional[str] = None,
backup_retention_count: Optional[int] = None,
custom_certificate: Optional[str] = None,
custom_domain: Optional[str] = None,
custom_private_key: Optional[str] = None,
disable_automated_backup: Optional[bool] = None,
engine: Optional[str] = None,
engine_attributes: Optional[Sequence[ServerEngineAttributeArgs]] = None,
engine_model: Optional[str] = None,
engine_version: Optional[str] = None,
instance_profile_arn: Optional[str] = None,
instance_type: Optional[str] = None,
key_pair: Optional[str] = None,
preferred_backup_window: Optional[str] = None,
preferred_maintenance_window: Optional[str] = None,
security_group_ids: Optional[Sequence[str]] = None,
server_name: Optional[str] = None,
service_role_arn: Optional[str] = None,
subnet_ids: Optional[Sequence[str]] = None,
tags: Optional[Sequence[ServerTagArgs]] = None)
@overload
def Server(resource_name: str,
args: ServerArgs,
opts: Optional[ResourceOptions] = None)
func NewServer(ctx *Context, name string, args ServerArgs, opts ...ResourceOption) (*Server, error)
public Server(string name, ServerArgs args, CustomResourceOptions? opts = null)
public Server(String name, ServerArgs args)
public Server(String name, ServerArgs args, CustomResourceOptions options)
type: aws-native:opsworkscm:Server
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ServerArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ServerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServerArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Server Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Server resource accepts the following input properties:
- Instance
Profile stringArn - Instance
Type string - Service
Role stringArn - Associate
Public boolIp Address - Backup
Id string - Backup
Retention intCount - Custom
Certificate string - Custom
Domain string - Custom
Private stringKey - Disable
Automated boolBackup - Engine string
- Engine
Attributes List<Pulumi.Aws Native. Ops Works CM. Inputs. Server Engine Attribute Args> - Engine
Model string - Engine
Version string - Key
Pair string - Preferred
Backup stringWindow - Preferred
Maintenance stringWindow - Security
Group List<string>Ids - Server
Name string - Subnet
Ids List<string> - List<Pulumi.
Aws Native. Ops Works CM. Inputs. Server Tag Args>
- Instance
Profile stringArn - Instance
Type string - Service
Role stringArn - Associate
Public boolIp Address - Backup
Id string - Backup
Retention intCount - Custom
Certificate string - Custom
Domain string - Custom
Private stringKey - Disable
Automated boolBackup - Engine string
- Engine
Attributes []ServerEngine Attribute Args - Engine
Model string - Engine
Version string - Key
Pair string - Preferred
Backup stringWindow - Preferred
Maintenance stringWindow - Security
Group []stringIds - Server
Name string - Subnet
Ids []string - []Server
Tag Args
- instance
Profile StringArn - instance
Type String - service
Role StringArn - associate
Public BooleanIp Address - backup
Id String - backup
Retention IntegerCount - custom
Certificate String - custom
Domain String - custom
Private StringKey - disable
Automated BooleanBackup - engine String
- engine
Attributes List<ServerEngine Attribute Args> - engine
Model String - engine
Version String - key
Pair String - preferred
Backup StringWindow - preferred
Maintenance StringWindow - security
Group List<String>Ids - server
Name String - subnet
Ids List<String> - List<Server
Tag Args>
- instance
Profile stringArn - instance
Type string - service
Role stringArn - associate
Public booleanIp Address - backup
Id string - backup
Retention numberCount - custom
Certificate string - custom
Domain string - custom
Private stringKey - disable
Automated booleanBackup - engine string
- engine
Attributes ServerEngine Attribute Args[] - engine
Model string - engine
Version string - key
Pair string - preferred
Backup stringWindow - preferred
Maintenance stringWindow - security
Group string[]Ids - server
Name string - subnet
Ids string[] - Server
Tag Args[]
- instance_
profile_ strarn - instance_
type str - service_
role_ strarn - associate_
public_ boolip_ address - backup_
id str - backup_
retention_ intcount - custom_
certificate str - custom_
domain str - custom_
private_ strkey - disable_
automated_ boolbackup - engine str
- engine_
attributes Sequence[ServerEngine Attribute Args] - engine_
model str - engine_
version str - key_
pair str - preferred_
backup_ strwindow - preferred_
maintenance_ strwindow - security_
group_ Sequence[str]ids - server_
name str - subnet_
ids Sequence[str] - Sequence[Server
Tag Args]
- instance
Profile StringArn - instance
Type String - service
Role StringArn - associate
Public BooleanIp Address - backup
Id String - backup
Retention NumberCount - custom
Certificate String - custom
Domain String - custom
Private StringKey - disable
Automated BooleanBackup - engine String
- engine
Attributes List<Property Map> - engine
Model String - engine
Version String - key
Pair String - preferred
Backup StringWindow - preferred
Maintenance StringWindow - security
Group List<String>Ids - server
Name String - subnet
Ids List<String> - List<Property Map>
Outputs
All input properties are implicitly available as output properties. Additionally, the Server resource produces the following output properties:
Supporting Types
ServerEngineAttribute
ServerTag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0