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

Commit c3161c1

Browse files
Add content
1 parent e5ba131 commit c3161c1

File tree

1 file changed

+124
-8
lines changed
  • content/en/user-guide/aws/codedeploy

1 file changed

+124
-8
lines changed

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

Lines changed: 124 additions & 8 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.
@@ -88,7 +83,6 @@ $ awslocal deploy create-deployment-config --deployment-config-name hello-conf \
8883
</disable-copy>
8984
{{< /command >}}
9085

91-
9286
[ListDeploymentConfigs](https://docs.aws.amazon.com/codedeploy/latest/APIReference/API_ListDeploymentConfigs.html) can be used to list all available configs:
9387

9488
{{< command >}}
@@ -124,12 +118,134 @@ $ awslocal deploy get-deployment-config --deployment-config-name hello-conf
124118

125119
### Deployment groups
126120

121+
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).
122+
123+
{{< command >}}
124+
$ awslocal deploy create-deployment-group \
125+
--application-name hello \
126+
--service-role-arn arn:aws:iam::000000000000:role/role \
127+
--deployment-group-name hello-group
128+
<disable-copy>
129+
{
130+
"deploymentGroupId": "09506586-9ba9-4005-a1be-840407abb39d"
131+
}
132+
</disable-copy>
133+
{{< /command >}}
134+
135+
{{< command >}}
136+
$ awslocal deploy list-deployment-groups --application-name hello
137+
<disable-copy>
138+
{
139+
"deploymentGroups": [
140+
"hello-group"
141+
]
142+
}
143+
</disable-copy>
144+
{{< /command >}}
145+
146+
{{< command >}}
147+
$ awslocal deploy get-deployment-group --application-name hello \
148+
--deployment-group-name hello-group
149+
<disable-copy>
150+
{
151+
"deploymentGroupInfo": {
152+
"applicationName": "hello",
153+
"deploymentGroupId": "09506586-9ba9-4005-a1be-840407abb39d",
154+
"deploymentGroupName": "hello-group",
155+
"deploymentConfigName": "CodeDeployDefault.OneAtATime",
156+
"autoScalingGroups": [],
157+
"serviceRoleArn": "arn:aws:iam::000000000000:role/role",
158+
"triggerConfigurations": [],
159+
"deploymentStyle": {
160+
"deploymentType": "IN_PLACE",
161+
"deploymentOption": "WITHOUT_TRAFFIC_CONTROL"
162+
},
163+
"outdatedInstancesStrategy": "UPDATE",
164+
"computePlatform": "Server",
165+
"terminationHookEnabled": false
166+
}
167+
}
168+
</disable-copy>
169+
{{< /command >}}
170+
127171
### Deployments
128172

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

233+
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.
131234

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

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

135249
## Limitations
250+
251+
All CodeDeploy operations are currently mocked.

0 commit comments

Comments
 (0)