Skip to main content

deployments

Creates, updates, deletes or gets a deployment resource or lists deployments in a region

Overview

Namedeployments
TypeResource
DescriptionDefinition of AWS::LaunchWizard::Deployment Resource Type
Idawscc.launchwizard.deployments

Fields

NameDatatypeDescription
arnstringARN of the LaunchWizard deployment
created_atstringTimestamp of LaunchWizard deployment creation
deleted_atstringTimestamp of LaunchWizard deployment deletion
deployment_idstringDeployment ID of the LaunchWizard deployment
deployment_pattern_namestringWorkload deployment pattern name
namestringName of LaunchWizard deployment
resource_groupstringResource Group Name created for LaunchWizard deployment
specificationsobjectLaunchWizard deployment specifications
statusstringStatus of LaunchWizard deployment
tagsarrayTags for LaunchWizard deployment
workload_namestringWorkload Name for LaunchWizard deployment
regionstringAWS region.

For more information, see AWS::LaunchWizard::Deployment.

Methods

NameResourceAccessible byRequired Params
create_resourcedeploymentsINSERTDeploymentPatternName, Name, WorkloadName, region
delete_resourcedeploymentsDELETEIdentifier, region
update_resourcedeploymentsUPDATEIdentifier, PatchDocument, region
list_resourcesdeployments_list_onlySELECTregion
get_resourcedeploymentsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual deployment.

SELECT
region,
arn,
created_at,
deleted_at,
deployment_id,
deployment_pattern_name,
name,
resource_group,
specifications,
status,
tags,
workload_name
FROM awscc.launchwizard.deployments
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}';

INSERT example

Use the following StackQL query and manifest file to create a new deployment resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.launchwizard.deployments (
DeploymentPatternName,
Name,
WorkloadName,
region
)
SELECT
'{{ deployment_pattern_name }}',
'{{ name }}',
'{{ workload_name }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

Use the following StackQL query and manifest file to update a deployment resource, using stack-deploy.

/*+ update */
UPDATE awscc.launchwizard.deployments
SET PatchDocument = string('{{ {
"Specifications": specifications,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.launchwizard.deployments
WHERE
Identifier = '{{ arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

To operate on the deployments resource, the following permissions are required:

launchwizard:CreateDeployment,
launchwizard:GetDeployment,
launchwizard:ListDeploymentEvents,
launchwizard:ListTagsForResource,
launchwizard:TagResource,
ssm:GetParameter,
ssm:PutParameter,
ssm:DescribeParameters,
ssm:AddTagsToResource,
ssm:DeleteParameter,
secretsmanager:DescribeSecret,
secretsmanager:PutSecretValue,
secretsmanager:CreateSecret,
secretsmanager:TagResource,
secretsmanager:UpdateSecret,
resource-groups:CreateGroup,
resource-groups:DeleteGroup,
cloudformation:DeleteStack,
cloudformation:DescribeStackResources,
cloudformation:DescribeStackResource,
cloudformation:DescribeStacks,
cloudformation:DescribeStackEvents,
cloudformation:CreateStack,
cloudformation:TagResource,
s3:PutObject,
s3:GetObject,
s3:CreateBucket,
sns:ListSubscriptionsByTopic,
sns:Publish,
sns:ListSubscriptions,
sns:ListTopics,
sns:CreateTopic,
sns:Subscribe,
sns:Unsubscribe,
sqs:TagQueue,
sqs:GetQueueUrl,
sqs:AddPermission,
sqs:ListQueues,
sqs:GetQueueAttributes,
sqs:ListQueueTags,
sqs:CreateQueue,
sqs:SetQueueAttributes