create_deployment
¶
create_deployment(
workload_name: WorkloadName,
deployment_pattern_name: DeploymentPatternName,
name: DeploymentName,
specifications: DeploymentSpecifications,
*,
config_overrides: Optional[LaunchWizardClientConfig] = None,
dry_run: Optional[bool] = None,
tags: Optional[Tags] = None,
) -> CreateDeploymentOutput
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.
Parameters:
-
workload_name(WorkloadName) –The name of the workload. You can use the
ListWorkloadsoperation to discover supported values for this parameter. -
deployment_pattern_name(DeploymentPatternName) –The name of the deployment pattern supported by a given workload. You can use the
ListWorkloadDeploymentPatternsoperation to discover supported values for this parameter. -
name(DeploymentName) –The name of the deployment.
-
specifications(DeploymentSpecifications) –The settings specified for the deployment. These settings define how to deploy and configure your resources created by the deployment. For more information about the specifications required for creating a deployment for a SAP workload, see SAP deployment specifications. To retrieve the specifications required to create a deployment for other workloads, use the
GetWorkloadDeploymentPatternoperation. -
dry_run(Optional[bool], default:None) –Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation. -
tags(Optional[Tags], default:None) –The tags to add to the deployment.
Raises:
-
InternalServerException–An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
-
ResourceLimitException–You have exceeded an Launch Wizard resource limit. For example, you might have too many deployments in progress.
-
ResourceNotFoundException–The specified workload or deployment resource can't be found.
-
ValidationException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Deploy a given workload with given settings.
>>> client.create_deployment(workload_name='SAP', deployment_pattern_name='SapHanaSingle', name='TestDeployment1', dry_run=False, specifications={'DisableDeploymentRollback': 'Yes', 'SaveDeploymentArtifacts': 'No', 'KeyPairName': 'keyName', 'VpcId': 'vpc-1234566', 'CreateSecurityGroup': 'No', 'ProxyServerAddress': 'http://xyz.abc.com:8080', 'Timezone': 'Pacific/Wake', 'EnableEbsVolumeEncryption': 'Yes', 'SapSysGroupId': '5003', 'SapVirtualIPOptIn': 'No', 'SnsTopicArn': 'arn:aws:sns:us-east-1:111111222222:snsNameUsEast1.fifo'})
Deploy a given workload with given settings and passing tags for Launch Wizard deployment resource.
>>> client.create_deployment(workload_name='SAP', deployment_pattern_name='SapHanaSingle', name='TestDeployment2', dry_run=False, specifications={'DisableDeploymentRollback': 'Yes', 'SaveDeploymentArtifacts': 'No', 'KeyPairName': 'keyName', 'VpcId': 'vpc-1234566', 'CreateSecurityGroup': 'No', 'ProxyServerAddress': 'http://xyz.abc.com:8080', 'Timezone': 'Pacific/Wake', 'EnableEbsVolumeEncryption': 'Yes', 'SapSysGroupId': '5003', 'SapVirtualIPOptIn': 'No', 'SnsTopicArn': 'arn:aws:sns:us-east-1:111111222222:snsNameUsEast1.fifo'}, tags={'key1': 'val1', 'key2': 'val2'})
Source code in docs_src/capo_launch_wizard/_services/launch_wizard.py
366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 | |