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

Commit e126c45

Browse files
bashtonijoelbrandenburg
authored andcommitted
Correct invalid values in AWS::ECS::TaskDefinition
The examples for AWS::ECS::TaskDefinition used invalid values of invalid types, and therefore did not work. Values replaced with valid values.
1 parent b933f12 commit e126c45

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

doc_source/aws-resource-ecs-taskdefinition.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ The following example defines an Amazon ECS task definition, which includes two
236236
}
237237
],
238238
"Image":"amazon/amazon-ecs-sample",
239-
"Cpu": "10",
239+
"Cpu": 256,
240240
"PortMappings":[
241241
{
242242
"ContainerPort": {"Ref":"AppContainerPort"},
@@ -248,22 +248,22 @@ The following example defines an Amazon ECS task definition, which includes two
248248
"-D",
249249
"FOREGROUND"
250250
],
251-
"Memory":"0.5GB",
252-
"Essential": "true"
251+
"Memory": 512,
252+
"Essential": true
253253
},
254254
{
255255
"Name": "busybox",
256256
"Image": "busybox",
257-
"Cpu": "10",
257+
"Cpu": 256,
258258
"EntryPoint": [
259259
"sh",
260260
"-c"
261261
],
262-
"Memory": "0.5GB",
262+
"Memory": 512,
263263
"Command": [
264264
"/bin/sh -c \"while true; do /bin/date > /var/www/my-vol/date; sleep 1; done\""
265265
],
266-
"Essential" : "false",
266+
"Essential" : false,
267267
"VolumesFrom": [
268268
{
269269
"SourceContainer": {"Ref":"AppName"}
@@ -296,7 +296,7 @@ taskdefinition:
296296
SourceVolume: "my-vol"
297297
ContainerPath: "/var/www/my-vol"
298298
Image: "amazon/amazon-ecs-sample"
299-
Cpu: "10"
299+
Cpu: 256
300300
PortMappings:
301301
-
302302
ContainerPort:
@@ -307,16 +307,16 @@ taskdefinition:
307307
- "/usr/sbin/apache2"
308308
- "-D"
309309
- "FOREGROUND"
310-
Memory: "0.5GB"
310+
Memory: 512
311311
Essential: true
312312
-
313313
Name: "busybox"
314314
Image: "busybox"
315-
Cpu: "10"
315+
Cpu: 256
316316
EntryPoint:
317317
- "sh"
318318
- "-c"
319-
Memory: "0.5GB"
319+
Memory: 512
320320
Command:
321321
- "/bin/sh -c \"while true; do /bin/date > /var/www/my-vol/date; sleep 1; done\""
322322
Essential: false
@@ -358,28 +358,28 @@ The following example defines an Amazon ECS task definition that specifies EC2 a
358358
}
359359
],
360360
"Image": "amazon/amazon-ecs-sample",
361-
"Cpu": "10",
361+
"Cpu": 256,
362362
"EntryPoint": [
363363
"/usr/sbin/apache2",
364364
"-D",
365365
"FOREGROUND"
366366
],
367-
"Memory": "0.5GB",
368-
"Essential": "true"
367+
"Memory": 512,
368+
"Essential": true
369369
},
370370
{
371371
"Name": "busybox",
372372
"Image": "busybox",
373-
"Cpu": "10",
373+
"Cpu": 256,
374374
"EntryPoint": [
375375
"sh",
376376
"-c"
377377
],
378-
"Memory": "0.5GB",
378+
"Memory": 512,
379379
"Command": [
380380
"/bin/sh -c \"while true; do /bin/date > /var/www/my-vol/date; sleep 1; done\""
381381
],
382-
"Essential": "false",
382+
"Essential": false,
383383
"DependsOn": [
384384
"ContainerName": "my-app",
385385
"Condition": "START"
@@ -453,4 +453,4 @@ Resources:
453453
Host:
454454
SourcePath: "/var/lib/docker/vfs/dir/"
455455
Name: "my-vol"
456-
```
456+
```

0 commit comments

Comments
 (0)