Skip to main content

deployments

Creates, updates, deletes, gets or lists a deployments resource.

Overview

Namedeployments
TypeResource
Idaws.launch_wizard.deployments

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the deployment. (pattern: <code>[a-zA-Z0-9-]+</code>)
namestringThe name of the deployment.
created_atstring (date-time)The time the deployment was created.
deleted_atstring (date-time)The time the deployment was deleted.
deployment_arnstringThe Amazon Resource Name (ARN) of the deployment.
modified_atstring (date-time)The time the deployment was last modified.
pattern_namestringThe pattern name of the deployment. (pattern: <code>[A-Za-z0-9][a-zA-Z0-9-]*</code>)
resource_groupstringThe resource group of the deployment.
specificationsobjectThe 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 GetWorkloadDeploymentPattern operation.
statusstringThe status of the deployment. (COMPLETED, CREATING, DELETE_IN_PROGRESS, DELETE_INITIATING, DELETE_FAILED, DELETED, FAILED, IN_PROGRESS, VALIDATING, UPDATE_IN_PROGRESS, UPDATE_COMPLETED, UPDATE_FAILED, UPDATE_ROLLBACK_COMPLETED, UPDATE_ROLLBACK_FAILED)
tagsobjectInformation about the tags attached to a deployment.
workload_namestringThe name of the workload. (pattern: <code>[A-Za-z][a-zA-Z0-9-_]*</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_deploymentselectregionReturns information about the deployment.
list_deploymentsselectregionLists the deployments that have been created.
create_deploymentinsertregion, workloadName, deploymentPatternName, name, specificationsCreates 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.
update_deploymentupdateregion, deploymentId, specificationsUpdates a deployment.
delete_deploymentdeleteregionDeletes a deployment.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns information about the deployment.

SELECT
id,
name,
created_at,
deleted_at,
deployment_arn,
modified_at,
pattern_name,
resource_group,
specifications,
status,
tags,
workload_name
FROM aws.launch_wizard.deployments
WHERE region = '{{ region }}' -- required
;

INSERT examples

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.

INSERT INTO aws.launch_wizard.deployments (
workloadName,
deploymentPatternName,
name,
specifications,
dryRun,
tags,
region
)
SELECT
'{{ workloadName }}' /* required */,
'{{ deploymentPatternName }}' /* required */,
'{{ name }}' /* required */,
'{{ specifications }}' /* required */,
{{ dryRun }},
'{{ tags }}',
'{{ region }}'
RETURNING
deployment_id
;

UPDATE examples

Updates a deployment.

UPDATE aws.launch_wizard.deployments
SET
deploymentId = '{{ deploymentId }}',
specifications = '{{ specifications }}',
workloadVersionName = '{{ workloadVersionName }}',
deploymentPatternVersionName = '{{ deploymentPatternVersionName }}',
dryRun = {{ dryRun }},
force = {{ force }}
WHERE
region = '{{ region }}' --required
AND deploymentId = '{{ deploymentId }}' --required
AND specifications = '{{ specifications }}' --required
RETURNING
deployment;

DELETE examples

Deletes a deployment.

DELETE FROM aws.launch_wizard.deployments
WHERE region = '{{ region }}' --required
;