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
Idaws.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

NameAccessible byRequired Params
create_resourceINSERTDeploymentPatternName, Name, Specifications, WorkloadName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all deployments in a region.

SELECT
region,
arn,
created_at,
deleted_at,
deployment_id,
deployment_pattern_name,
name,
resource_group,
specifications,
status,
tags,
workload_name
FROM aws.launchwizard.deployments
WHERE region = 'us-east-1';

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 aws.launchwizard.deployments
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';

INSERT example

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

/*+ create */
INSERT INTO aws.launchwizard.deployments (
DeploymentPatternName,
Name,
Specifications,
WorkloadName,
region
)
SELECT
'{{ DeploymentPatternName }}',
'{{ Name }}',
'{{ Specifications }}',
'{{ WorkloadName }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.launchwizard.deployments
WHERE data__Identifier = '<Arn>'
AND region = 'us-east-1';

Permissions

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

Create

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

Read

launchwizard:GetDeployment,
launchwizard:ListDeploymentEvents,
launchwizard:ListTagsForResource

Delete

launchwizard:GetDeployment,
launchwizard:DeleteDeployment,
launchwizard:UntagResource,
ssm:DeleteParameter,
secretsmanager:DeleteSecret,
resource-groups:DeleteGroup,
cloudformation:DeleteStack,
cloudformation:DescribeStacks,
ssm:GetParameter,
sns:ListSubscriptionsByTopic,
sns:Publish,
sns:ListSubscriptions,
sns:ListTopics,
sns:CreateTopic,
sns:DeleteTopic,
sns:Subscribe,
sns:Unsubscribe,
sqs:GetQueueUrl,
sqs:ListQueues,
sqs:DeleteQueue,
sqs:GetQueueAttributes,
sqs:ListQueueTags

Update

launchwizard:GetDeployment,
launchwizard:ListTagsForResource,
launchwizard:TagResource,
launchwizard:UntagResource

List

launchwizard:ListDeployments,
launchwizard:ListTagsForResource