Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit 361c3db

Browse files
Add content
1 parent e5ba131 commit 361c3db

File tree

1 file changed

+125
-7
lines changed
  • content/en/user-guide/aws/codedeploy

1 file changed

+125
-7
lines changed

content/en/user-guide/aws/codedeploy/index.md

Lines changed: 125 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,6 @@ $ awslocal deploy list-applications
6666
</disable-copy>
6767
{{< /command >}}
6868

69-
{{< command >}}
70-
<disable-copy>
71-
</disable-copy>
72-
{{< /command >}}
73-
7469
### Deployment configuration
7570

7671
A deployment configuration consists of rules for deployment along with success and failure criteria.
@@ -124,12 +119,135 @@ $ awslocal deploy get-deployment-config --deployment-config-name hello-conf
124119

125120
### Deployment groups
126121

122+
Deployment groups can be managed with [CreateDeploymentGroup](https://docs.aws.amazon.com/codedeploy/latest/APIReference/API_CreateDeploymentGroup.html), [ListDeploymentGroups](https://docs.aws.amazon.com/codedeploy/latest/APIReference/API_ListDeploymentGroups.html), [UpdateDeploymentGroup](https://docs.aws.amazon.com/codedeploy/latest/APIReference/API_UpdateDeploymentGroup.html), [GetDeploymentGroup](https://docs.aws.amazon.com/codedeploy/latest/APIReference/API_GetDeploymentGroup.html) and [DeleteDeploymentGroup](https://docs.aws.amazon.com/codedeploy/latest/APIReference/API_DeleteDeploymentGroup.html).
123+
124+
{{< command >}}
125+
$ awslocal deploy create-deployment-group \
126+
--application-name hello \
127+
--service-role-arn arn:aws:iam::000000000000:role/role \
128+
--deployment-group-name hello-group
129+
<disable-copy>
130+
{
131+
"deploymentGroupId": "09506586-9ba9-4005-a1be-840407abb39d"
132+
}
133+
</disable-copy>
134+
{{< /command >}}
135+
136+
{{< command >}}
137+
$ awslocal deploy list-deployment-groups --application-name hello
138+
<disable-copy>
139+
{
140+
"deploymentGroups": [
141+
"hello-group"
142+
]
143+
}
144+
</disable-copy>
145+
{{< /command >}}
146+
147+
{{< command >}}
148+
$ awslocal deploy get-deployment-group --application-name hello \
149+
--deployment-group-name hello-group
150+
<disable-copy>
151+
{
152+
"deploymentGroupInfo": {
153+
"applicationName": "hello",
154+
"deploymentGroupId": "09506586-9ba9-4005-a1be-840407abb39d",
155+
"deploymentGroupName": "hello-group",
156+
"deploymentConfigName": "CodeDeployDefault.OneAtATime",
157+
"autoScalingGroups": [],
158+
"serviceRoleArn": "arn:aws:iam::000000000000:role/role",
159+
"triggerConfigurations": [],
160+
"deploymentStyle": {
161+
"deploymentType": "IN_PLACE",
162+
"deploymentOption": "WITHOUT_TRAFFIC_CONTROL"
163+
},
164+
"outdatedInstancesStrategy": "UPDATE",
165+
"computePlatform": "Server",
166+
"terminationHookEnabled": false
167+
}
168+
}
169+
</disable-copy>
170+
{{< /command >}}
171+
127172
### Deployments
128173

129-
Operations related to deployment management are: CreateDeployment, GetDeployment, ListDeployments
174+
Operations related to deployment management are: [CreateDeployment](https://docs.aws.amazon.com/codedeploy/latest/APIReference/API_CreateDeployment.html), [GetDeployment](https://docs.aws.amazon.com/codedeploy/latest/APIReference/API_GetDeployment.html), [ListDeployments](https://docs.aws.amazon.com/codedeploy/latest/APIReference/API_ListDeployments.html).
175+
176+
{{< command >}}
177+
$ awslocal deploy create-deployment \
178+
--application-name hello \
179+
--deployment-group-name hello-group \
180+
--revision '{"revisionType": "S3", "s3Location": {"bucket": "placeholder", "key": "placeholder", "bundleType": "tar"}}'
181+
<disable-copy>
182+
{
183+
"deploymentId": "d-TU3TNCSTO"
184+
}
185+
</disable-copy>
186+
{{< /command >}}
187+
188+
{{< command >}}
189+
$ awslocal deploy list-deployments
190+
<disable-copy>
191+
{
192+
"deployments": [
193+
"d-TU3TNCSTO"
194+
]
195+
}
196+
</disable-copy>
197+
{{< /command >}}
198+
199+
200+
{{< command >}}
201+
$ awslocal deploy get-deployment --deployment-id d-TU3TNCSTO
202+
<disable-copy>
203+
{
204+
"deploymentInfo": {
205+
"applicationName": "hello",
206+
"deploymentGroupName": "hello-group",
207+
"deploymentConfigName": "CodeDeployDefault.OneAtATime",
208+
"deploymentId": "d-TU3TNCSTO",
209+
"revision": {
210+
"revisionType": "S3",
211+
"s3Location": {
212+
"bucket": "placeholder",
213+
"key": "placeholder",
214+
"bundleType": "tar"
215+
}
216+
},
217+
"status": "Created",
218+
"createTime": 1747750522.133381,
219+
"creator": "user",
220+
"ignoreApplicationStopFailures": false,
221+
"updateOutdatedInstancesOnly": false,
222+
"deploymentStyle": {
223+
"deploymentType": "IN_PLACE",
224+
"deploymentOption": "WITHOUT_TRAFFIC_CONTROL"
225+
},
226+
"instanceTerminationWaitTimeStarted": false,
227+
"fileExistsBehavior": "DISALLOW",
228+
"deploymentStatusMessages": [],
229+
"computePlatform": "Server"
230+
}
231+
}
232+
</disable-copy>
233+
{{< /command >}}
130234

235+
Furthermore, [ContinueDeployment](https://docs.aws.amazon.com/codedeploy/latest/APIReference/API_StopDeployment.html) and [StopDeployment](https://docs.aws.amazon.com/codedeploy/latest/APIReference/API_StopDeployment.html) can be used to control the deployment flows.
131236

132-
Furthermore, ContinueDeployment and StopDeployment can be used to control the deployment flows.
237+
{{< command >}}
238+
$ awslocal deploy continue-deployment --deployment-id d-TU3TNCSTO
239+
{{< /command >}}
133240

241+
{{< command >}}
242+
$ awslocal deploy stop-deployment --deployment-id d-TU3TNCSTO
243+
<disable-copy>
244+
{
245+
"status": "Succeeded",
246+
"statusMessage": "Mock deployment stopped"
247+
}
248+
</disable-copy>
249+
{{< /command >}}
134250

135251
## Limitations
252+
253+
All CodeDeploy operations are currently mocked.

0 commit comments

Comments
 (0)