Skip to content

Commit 9b42bf3

Browse files
author
AWS
committed
AWS CodeDeploy Update: AWS CodeDeploy can now detect instances running an outdated revision of your application and automatically update them with the latest revision.
1 parent 36b458f commit 9b42bf3

File tree

2 files changed

+48
-14
lines changed

2 files changed

+48
-14
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS CodeDeploy",
4+
"contributor": "",
5+
"description": "AWS CodeDeploy can now detect instances running an outdated revision of your application and automatically update them with the latest revision."
6+
}

services/codedeploy/src/main/resources/codegen-resources/service-2.json

Lines changed: 42 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1535,6 +1535,10 @@
15351535
"shape":"AutoRollbackConfiguration",
15361536
"documentation":"<p>Configuration information for an automatic rollback that is added when a deployment group is created.</p>"
15371537
},
1538+
"outdatedInstancesStrategy":{
1539+
"shape":"OutdatedInstancesStrategy",
1540+
"documentation":"<p>Indicates what happens when new EC2 instances are launched mid-deployment and do not receive the deployed application revision.</p> <p>If this option is set to <code>UPDATE</code> or is unspecified, CodeDeploy initiates one or more 'auto-update outdated instances' deployments to apply the deployed application revision to the new EC2 instances.</p> <p>If this option is set to <code>IGNORE</code>, CodeDeploy does not initiate a deployment to update the new EC2 instances. This may result in instances having different revisions.</p>"
1541+
},
15381542
"deploymentStyle":{
15391543
"shape":"DeploymentStyle",
15401544
"documentation":"<p>Information about the type of deployment, in-place or blue/green, that you want to run and whether to route deployment traffic behind a load balancer.</p>"
@@ -1813,6 +1817,7 @@
18131817
"autoscaling",
18141818
"codeDeployRollback",
18151819
"CodeDeploy",
1820+
"CodeDeployAutoUpdate",
18161821
"CloudFormation",
18171822
"CloudFormationRollback"
18181823
]
@@ -1894,6 +1899,10 @@
18941899
"shape":"DeploymentStyle",
18951900
"documentation":"<p>Information 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.</p>"
18961901
},
1902+
"outdatedInstancesStrategy":{
1903+
"shape":"OutdatedInstancesStrategy",
1904+
"documentation":"<p>Indicates what happens when new EC2 instances are launched mid-deployment and do not receive the deployed application revision.</p> <p>If this option is set to <code>UPDATE</code> or is unspecified, CodeDeploy initiates one or more 'auto-update outdated instances' deployments to apply the deployed application revision to the new EC2 instances.</p> <p>If this option is set to <code>IGNORE</code>, CodeDeploy does not initiate a deployment to update the new EC2 instances. This may result in instances having different revisions.</p>"
1905+
},
18971906
"blueGreenDeploymentConfiguration":{
18981907
"shape":"BlueGreenDeploymentConfiguration",
18991908
"documentation":"<p>Information about blue/green deployment options for a deployment group.</p>"
@@ -2021,7 +2030,7 @@
20212030
},
20222031
"creator":{
20232032
"shape":"DeploymentCreator",
2024-
"documentation":"<p>The means by which the deployment was created:</p> <ul> <li> <p> <code>user</code>: A user created the deployment.</p> </li> <li> <p> <code>autoscaling</code>: Amazon EC2 Auto Scaling created the deployment.</p> </li> <li> <p> <code>codeDeployRollback</code>: A rollback process created the deployment.</p> </li> </ul>"
2033+
"documentation":"<p>The means by which the deployment was created:</p> <ul> <li> <p> <code>user</code>: A user created the deployment.</p> </li> <li> <p> <code>autoscaling</code>: Amazon EC2 Auto Scaling created the deployment.</p> </li> <li> <p> <code>codeDeployRollback</code>: A rollback process created the deployment.</p> </li> <li> <p> <code>CodeDeployAutoUpdate</code>: An auto-update process created the deployment when it detected outdated EC2 instances.</p> </li> </ul>"
20252034
},
20262035
"ignoreApplicationStopFailures":{
20272036
"shape":"Boolean",
@@ -2078,7 +2087,8 @@
20782087
"externalId":{
20792088
"shape":"ExternalId",
20802089
"documentation":"<p>The unique ID for an external resource (for example, a CloudFormation stack ID) that is linked to this deployment.</p>"
2081-
}
2090+
},
2091+
"relatedDeployments":{"shape":"RelatedDeployments"}
20822092
},
20832093
"documentation":"<p>Information about a deployment.</p>"
20842094
},
@@ -3120,13 +3130,6 @@
31203130
"documentation":"<p>The deployed state filter was specified in an invalid format.</p>",
31213131
"exception":true
31223132
},
3123-
"InvalidDeploymentConfigIdException":{
3124-
"type":"structure",
3125-
"members":{
3126-
},
3127-
"documentation":"<p> The ID of the deployment configuration is invalid. </p>",
3128-
"exception":true
3129-
},
31303133
"InvalidDeploymentConfigNameException":{
31313134
"type":"structure",
31323135
"members":{
@@ -3970,13 +3973,13 @@
39703973
"MinimumHealthyHosts":{
39713974
"type":"structure",
39723975
"members":{
3973-
"value":{
3974-
"shape":"MinimumHealthyHostsValue",
3975-
"documentation":"<p>The minimum healthy instance value.</p>"
3976-
},
39773976
"type":{
39783977
"shape":"MinimumHealthyHostsType",
39793978
"documentation":"<p>The minimum healthy instance type:</p> <ul> <li> <p> <code>HOST_COUNT</code>: The minimum number of healthy instances as an absolute value.</p> </li> <li> <p> <code>FLEET_PERCENT</code>: The minimum number of healthy instances as a percentage of the total number of instances in the deployment.</p> </li> </ul> <p>In an example of nine instances, if a HOST_COUNT of six is specified, deploy to up to three instances at a time. The deployment is successful if six or more instances are deployed to successfully. Otherwise, the deployment fails. If a FLEET_PERCENT of 40 is specified, deploy to up to five instances at a time. The deployment is successful if four or more instances are deployed to successfully. Otherwise, the deployment fails.</p> <note> <p>In a call to the <code>GetDeploymentConfig</code>, CodeDeployDefault.OneAtATime returns a minimum healthy instance type of MOST_CONCURRENCY and a value of 1. This means a deployment to only one instance at a time. (You cannot set the type to MOST_CONCURRENCY, only to HOST_COUNT or FLEET_PERCENT.) In addition, with CodeDeployDefault.OneAtATime, AWS CodeDeploy attempts to ensure that all instances but one are kept in a healthy state during the deployment. Although this allows one instance at a time to be taken offline for a new deployment, it also means that if the deployment to the last instance fails, the overall deployment is still successful.</p> </note> <p>For more information, see <a href=\"https://docs.aws.amazon.com/codedeploy/latest/userguide/instances-health.html\">AWS CodeDeploy Instance Health</a> in the <i>AWS CodeDeploy User Guide</i>.</p>"
3979+
},
3980+
"value":{
3981+
"shape":"MinimumHealthyHostsValue",
3982+
"documentation":"<p>The minimum healthy instance value.</p>"
39803983
}
39813984
},
39823985
"documentation":"<p>Information about minimum healthy instance.</p>"
@@ -4019,6 +4022,13 @@
40194022
"documentation":"<p>The API used does not support the deployment.</p>",
40204023
"exception":true
40214024
},
4025+
"OutdatedInstancesStrategy":{
4026+
"type":"string",
4027+
"enum":[
4028+
"UPDATE",
4029+
"IGNORE"
4030+
]
4031+
},
40224032
"Percentage":{"type":"integer"},
40234033
"PutLifecycleEventHookExecutionStatusInput":{
40244034
"type":"structure",
@@ -4033,7 +4043,7 @@
40334043
},
40344044
"status":{
40354045
"shape":"LifecycleEventStatus",
4036-
"documentation":"<p>The result of a Lambda function that validates a deployment lifecycle event (<code>Succeeded</code> or <code>Failed</code>).</p>"
4046+
"documentation":"<p>The result of a Lambda function that validates a deployment lifecycle event. <code>Succeeded</code> and <code>Failed</code> are the only valid values for <code>status</code>.</p>"
40374047
}
40384048
}
40394049
},
@@ -4112,6 +4122,20 @@
41124122
"Deregistered"
41134123
]
41144124
},
4125+
"RelatedDeployments":{
4126+
"type":"structure",
4127+
"members":{
4128+
"autoUpdateOutdatedInstancesRootDeploymentId":{
4129+
"shape":"DeploymentId",
4130+
"documentation":"<p>The deployment ID of the root deployment that triggered this deployment.</p>"
4131+
},
4132+
"autoUpdateOutdatedInstancesDeploymentIds":{
4133+
"shape":"DeploymentsList",
4134+
"documentation":"<p>The deployment IDs of 'auto-update outdated instances' deployments triggered by this deployment.</p>"
4135+
}
4136+
},
4137+
"documentation":"<p>Information about deployments related to the specified deployment.</p>"
4138+
},
41154139
"RemoveTagsFromOnPremisesInstancesInput":{
41164140
"type":"structure",
41174141
"required":[
@@ -4742,6 +4766,10 @@
47424766
"shape":"AutoRollbackConfiguration",
47434767
"documentation":"<p>Information for an automatic rollback configuration that is added or changed when a deployment group is updated.</p>"
47444768
},
4769+
"outdatedInstancesStrategy":{
4770+
"shape":"OutdatedInstancesStrategy",
4771+
"documentation":"<p>Indicates what happens when new EC2 instances are launched mid-deployment and do not receive the deployed application revision.</p> <p>If this option is set to <code>UPDATE</code> or is unspecified, CodeDeploy initiates one or more 'auto-update outdated instances' deployments to apply the deployed application revision to the new EC2 instances.</p> <p>If this option is set to <code>IGNORE</code>, CodeDeploy does not initiate a deployment to update the new EC2 instances. This may result in instances having different revisions.</p>"
4772+
},
47454773
"deploymentStyle":{
47464774
"shape":"DeploymentStyle",
47474775
"documentation":"<p>Information 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.</p>"

0 commit comments

Comments
 (0)