Update Deployment Group
| codedeploy_update_deployment_group | R Documentation |
Changes information about a deployment group¶
Description¶
Changes information about a deployment group.
Usage¶
codedeploy_update_deployment_group(applicationName,
currentDeploymentGroupName, newDeploymentGroupName,
deploymentConfigName, ec2TagFilters, onPremisesInstanceTagFilters,
autoScalingGroups, serviceRoleArn, triggerConfigurations,
alarmConfiguration, autoRollbackConfiguration,
outdatedInstancesStrategy, deploymentStyle,
blueGreenDeploymentConfiguration, loadBalancerInfo, ec2TagSet,
ecsServices, onPremisesTagSet, terminationHookEnabled)
Arguments¶
applicationName[required] The application name that corresponds to the deployment group to update.
currentDeploymentGroupName[required] The current name of the deployment group.
newDeploymentGroupNameThe new name of the deployment group, if you want to change it.
deploymentConfigNameThe replacement deployment configuration name to use, if you want to change it.
ec2TagFiltersThe replacement set of Amazon EC2 tags on which to filter, if you want to change them. To keep the existing tags, enter their names. To remove tags, do not enter any tag names.
onPremisesInstanceTagFiltersThe replacement set of on-premises instance tags on which to filter, if you want to change them. To keep the existing tags, enter their names. To remove tags, do not enter any tag names.
autoScalingGroupsThe replacement list of Auto Scaling groups to be included in the deployment group, if you want to change them.
To keep the Auto Scaling groups, enter their names or do not specify this parameter.
To remove Auto Scaling groups, specify a non-null empty list of Auto Scaling group names to detach all CodeDeploy-managed Auto Scaling lifecycle hooks. For examples, see Amazon EC2 instances in an Amazon EC2 Auto Scaling group fail to launch and receive the error "Heartbeat Timeout" in the CodeDeploy User Guide.
serviceRoleArnA replacement ARN for the service role, if you want to change it.
triggerConfigurationsInformation about triggers to change when the deployment group is updated. For examples, see Edit a Trigger in a CodeDeploy Deployment Group in the CodeDeploy User Guide.
alarmConfigurationInformation to add or change about Amazon CloudWatch alarms when the deployment group is updated.
autoRollbackConfigurationInformation for an automatic rollback configuration that is added or changed when a deployment group is updated.
outdatedInstancesStrategyIndicates what happens when new Amazon EC2 instances are launched mid-deployment and do not receive the deployed application revision.
If this option is set to
UPDATEor is unspecified, CodeDeploy initiates one or more 'auto-update outdated instances' deployments to apply the deployed application revision to the new Amazon EC2 instances.If this option is set to
IGNORE, CodeDeploy does not initiate a deployment to update the new Amazon EC2 instances. This may result in instances having different revisions.deploymentStyleInformation about the type of deployment, either in-place or blue/green, you want to run and whether to route deployment traffic behind a load balancer.
blueGreenDeploymentConfigurationInformation about blue/green deployment options for a deployment group.
loadBalancerInfoInformation about the load balancer used in a deployment.
ec2TagSetInformation about groups of tags applied to on-premises instances. The deployment group includes only Amazon EC2 instances identified by all the tag groups.
ecsServicesThe target Amazon ECS services in the deployment group. This applies only to deployment groups that use the Amazon ECS compute platform. A target Amazon ECS service is specified as an Amazon ECS cluster and service name pair using the format
<clustername>:<servicename>.onPremisesTagSetInformation about an on-premises instance tag set. The deployment group includes only on-premises instances identified by all the tag groups.
terminationHookEnabledThis parameter only applies if you are using CodeDeploy with Amazon EC2 Auto Scaling. For more information, see Integrating CodeDeploy with Amazon EC2 Auto Scaling in the CodeDeploy User Guide.
Set
terminationHookEnabledtotrueto have CodeDeploy install a termination hook into your Auto Scaling group when you update a deployment group. When this hook is installed, CodeDeploy will perform termination deployments.For information about termination deployments, see Enabling termination deployments during Auto Scaling scale-in events in the CodeDeploy User Guide.
For more information about Auto Scaling scale-in events, see the Scale in topic in the Amazon EC2 Auto Scaling User Guide.
Value¶
A list with the following syntax:
list(
hooksNotCleanedUp = list(
list(
name = "string",
hook = "string",
terminationHook = "string"
)
)
)
Request syntax¶
svc$update_deployment_group(
applicationName = "string",
currentDeploymentGroupName = "string",
newDeploymentGroupName = "string",
deploymentConfigName = "string",
ec2TagFilters = list(
list(
Key = "string",
Value = "string",
Type = "KEY_ONLY"|"VALUE_ONLY"|"KEY_AND_VALUE"
)
),
onPremisesInstanceTagFilters = list(
list(
Key = "string",
Value = "string",
Type = "KEY_ONLY"|"VALUE_ONLY"|"KEY_AND_VALUE"
)
),
autoScalingGroups = list(
"string"
),
serviceRoleArn = "string",
triggerConfigurations = list(
list(
triggerName = "string",
triggerTargetArn = "string",
triggerEvents = list(
"DeploymentStart"|"DeploymentSuccess"|"DeploymentFailure"|"DeploymentStop"|"DeploymentRollback"|"DeploymentReady"|"InstanceStart"|"InstanceSuccess"|"InstanceFailure"|"InstanceReady"
)
)
),
alarmConfiguration = list(
enabled = TRUE|FALSE,
ignorePollAlarmFailure = TRUE|FALSE,
alarms = list(
list(
name = "string"
)
)
),
autoRollbackConfiguration = list(
enabled = TRUE|FALSE,
events = list(
"DEPLOYMENT_FAILURE"|"DEPLOYMENT_STOP_ON_ALARM"|"DEPLOYMENT_STOP_ON_REQUEST"
)
),
outdatedInstancesStrategy = "UPDATE"|"IGNORE",
deploymentStyle = list(
deploymentType = "IN_PLACE"|"BLUE_GREEN",
deploymentOption = "WITH_TRAFFIC_CONTROL"|"WITHOUT_TRAFFIC_CONTROL"
),
blueGreenDeploymentConfiguration = list(
terminateBlueInstancesOnDeploymentSuccess = list(
action = "TERMINATE"|"KEEP_ALIVE",
terminationWaitTimeInMinutes = 123
),
deploymentReadyOption = list(
actionOnTimeout = "CONTINUE_DEPLOYMENT"|"STOP_DEPLOYMENT",
waitTimeInMinutes = 123
),
greenFleetProvisioningOption = list(
action = "DISCOVER_EXISTING"|"COPY_AUTO_SCALING_GROUP"
)
),
loadBalancerInfo = list(
elbInfoList = list(
list(
name = "string"
)
),
targetGroupInfoList = list(
list(
name = "string"
)
),
targetGroupPairInfoList = list(
list(
targetGroups = list(
list(
name = "string"
)
),
prodTrafficRoute = list(
listenerArns = list(
"string"
)
),
testTrafficRoute = list(
listenerArns = list(
"string"
)
)
)
)
),
ec2TagSet = list(
ec2TagSetList = list(
list(
list(
Key = "string",
Value = "string",
Type = "KEY_ONLY"|"VALUE_ONLY"|"KEY_AND_VALUE"
)
)
)
),
ecsServices = list(
list(
serviceName = "string",
clusterName = "string"
)
),
onPremisesTagSet = list(
onPremisesTagSetList = list(
list(
list(
Key = "string",
Value = "string",
Type = "KEY_ONLY"|"VALUE_ONLY"|"KEY_AND_VALUE"
)
)
)
),
terminationHookEnabled = TRUE|FALSE
)