createDeployment

Creates a deployment for the given workload. Deployments created by this operation are not available in the Launch Wizard console to use the Clone deployment action on.

Samples


fun main() { 
   //sampleStart 
   // Deploy a given workload with given settings.
val resp = launchWizardClient.createDeployment {
    workloadName = "SAP"
    deploymentPatternName = "SapHanaSingle"
    name = "SapHanaSingleForTest"
    dryRun = false
    specifications = mapOf<String, String>(
        "applicationName" to "SapHanaSingleForTest",
        "deploymentScenario" to "SapHanaSingle",
        "DisableDeploymentRollback" to "true",
        "saveDeploymentArtifacts" to "Yes",
        "saveArtifactsS3Uri" to "s3://testbucket",
        "KeyName" to "testLinuxInstance",
        "VPCID" to "vpc-1234567",
        "environmentType" to "production",
        "SAPTZ" to "America/Vancouver",
        "Encryption" to "Yes"
    )
} 
   //sampleEnd
}

fun main() { 
   //sampleStart 
   // Deploy a given workload with given settings and passing tags for Launch Wizard deployment resource.
val resp = launchWizardClient.createDeployment {
    workloadName = "SAP"
    deploymentPatternName = "SapHanaSingle"
    name = "SapHanaSingleForTest"
    dryRun = false
    specifications = mapOf<String, String>(
        "applicationName" to "SapHanaSingleForTest",
        "deploymentScenario" to "SapHanaSingle",
        "DisableDeploymentRollback" to "true",
        "saveDeploymentArtifacts" to "Yes",
        "saveArtifactsS3Uri" to "s3://testbucket",
        "KeyName" to "testLinuxInstance",
        "VPCID" to "vpc-1234567",
        "environmentType" to "production",
        "SAPTZ" to "America/Vancouver",
        "Encryption" to "Yes"
    )
    tags = mapOf<String, String>(
        "key1" to "val1",
        "key2" to "val2"
    )
} 
   //sampleEnd
}