Skip to main content

deployment_configs

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

Overview

Namedeployment_configs
TypeResource
Idaws.codedeploy.deployment_configs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
compute_platformstringThe destination platform type for the deployment (Lambda, Server, or ECS). (Server, Lambda, ECS)
create_timestring (date-time)The time at which the deployment configuration was created.
deployment_config_idstringThe deployment configuration ID.
deployment_config_namestringThe deployment configuration name.
minimum_healthy_hostsobjectInformation about the number or percentage of minimum healthy instances.
traffic_routing_configobjectThe configuration that specifies how the deployment traffic is routed. Used for deployments with a Lambda or Amazon ECS compute platform only.
zonal_configobjectInformation about a zonal configuration.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_deployment_configselectregionGets information about a deployment configuration.
list_deployment_configsselectregionLists the deployment configurations with the user or Amazon Web Services account.
create_deployment_configinsertregion, deploymentConfigNameCreates a deployment configuration.
delete_deployment_configdeleteregionDeletes a deployment configuration. A deployment configuration cannot be deleted if it is currently in use. Predefined configurations cannot be deleted.

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

Gets information about a deployment configuration.

SELECT
compute_platform,
create_time,
deployment_config_id,
deployment_config_name,
minimum_healthy_hosts,
traffic_routing_config,
zonal_config
FROM aws.codedeploy.deployment_configs
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a deployment configuration.

INSERT INTO aws.codedeploy.deployment_configs (
deploymentConfigName,
minimumHealthyHosts,
trafficRoutingConfig,
computePlatform,
zonalConfig,
region
)
SELECT
'{{ deploymentConfigName }}' /* required */,
'{{ minimumHealthyHosts }}',
'{{ trafficRoutingConfig }}',
'{{ computePlatform }}',
'{{ zonalConfig }}',
'{{ region }}'
RETURNING
deployment_config_id
;

DELETE examples

Deletes a deployment configuration. A deployment configuration cannot be deleted if it is currently in use. Predefined configurations cannot be deleted.

DELETE FROM aws.codedeploy.deployment_configs
WHERE region = '{{ region }}' --required
;