Skip to main content

deployment_configs

Creates, updates, deletes or gets a deployment_config resource or lists deployment_configs in a region

Overview

Namedeployment_configs
TypeResource
DescriptionResource Type definition for AWS::CodeDeploy::DeploymentConfig
Idawscc.codedeploy.deployment_configs

Fields

NameDatatypeDescription
compute_platformstringThe destination platform type for the deployment (Lambda, Server, or ECS).
deployment_config_namestringA name for the deployment configuration. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the deployment configuration name. For more information, see Name Type.
minimum_healthy_hostsobjectThe minimum number of healthy instances that should be available at any time during the deployment. There are two parameters expected in the input: type and value.
zonal_configobjectThe zonal deployment config that specifies how the zonal deployment behaves
traffic_routing_configobjectThe configuration that specifies how the deployment traffic is routed.
regionstringAWS region.

For more information, see AWS::CodeDeploy::DeploymentConfig.

Methods

NameResourceAccessible byRequired Params
create_resourcedeployment_configsINSERTregion
delete_resourcedeployment_configsDELETEIdentifier, region
list_resourcesdeployment_configs_list_onlySELECTregion
get_resourcedeployment_configsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual deployment_config.

SELECT
region,
compute_platform,
deployment_config_name,
minimum_healthy_hosts,
zonal_config,
traffic_routing_config
FROM awscc.codedeploy.deployment_configs
WHERE
region = 'us-east-1' AND
Identifier = '{{ deployment_config_name }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.codedeploy.deployment_configs (
ComputePlatform,
DeploymentConfigName,
MinimumHealthyHosts,
ZonalConfig,
TrafficRoutingConfig,
region
)
SELECT
'{{ compute_platform }}',
'{{ deployment_config_name }}',
'{{ minimum_healthy_hosts }}',
'{{ zonal_config }}',
'{{ traffic_routing_config }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM awscc.codedeploy.deployment_configs
WHERE
Identifier = '{{ deployment_config_name }}' AND
region = 'us-east-1';

Permissions

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

codedeploy:CreateDeploymentConfig