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 = "TestDeployment1"
dryRun = false
specifications = mapOf<String, String>(
"DisableDeploymentRollback" to "Yes",
"SaveDeploymentArtifacts" to "No",
"KeyPairName" to "keyName",
"VpcId" to "vpc-1234566",
"CreateSecurityGroup" to "No",
"ProxyServerAddress" to "http://xyz.abc.com:8080",
"Timezone" to "Pacific/Wake",
"EnableEbsVolumeEncryption" to "Yes",
"SapSysGroupId" to "5003",
"SapVirtualIPOptIn" to "No",
"SnsTopicArn" to "arn:aws:sns:us-east-1:111111222222:snsNameUsEast1.fifo"
)
}
//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 = "TestDeployment2"
dryRun = false
specifications = mapOf<String, String>(
"DisableDeploymentRollback" to "Yes",
"SaveDeploymentArtifacts" to "No",
"KeyPairName" to "keyName",
"VpcId" to "vpc-1234566",
"CreateSecurityGroup" to "No",
"ProxyServerAddress" to "http://xyz.abc.com:8080",
"Timezone" to "Pacific/Wake",
"EnableEbsVolumeEncryption" to "Yes",
"SapSysGroupId" to "5003",
"SapVirtualIPOptIn" to "No",
"SnsTopicArn" to "arn:aws:sns:us-east-1:111111222222:snsNameUsEast1.fifo"
)
tags = mapOf<String, String>(
"key1" to "val1",
"key2" to "val2"
)
}
//sampleEnd
}