[Chapter 3] Memory and CPU parameter

Hi,

I found a problem in chapter 3 of the final pdf.
On page 52 you are suggesting to change the parameters for AppService to 1.0 and 2.0.

Cpu: ‘1.0’ # Increasing CPU to 1.0 vCPU
Memory: ‘2.0’ # Increasing Memory to 2.0 GB

If I do this in the template.yml file (line 227 and 228) the deployment fails as these values cannot be mapped.
The correct values are 1 and 2 instead of 1.0 and 2.0.
Then the mapping from
/Users/heitlm/dev/rapiddocker/docker-on-aws-code/php-basic/aws/node_modules/@cfn-modules/fargate-service/module.yml
works correctly.

Mappings:
CpuMap:
‘0.25’:
Cpu: 256
‘0.5’:
Cpu: 512
‘1’:
Cpu: 1024
‘2’:
Cpu: 2048
‘4’:
Cpu: 4096
MemoryMap:
‘0.5’:
Memory: 512
‘1’:
Memory: 1024
‘2’:
Memory: 2048

Cheers,
Michael

1 Like

Thanks @mjheitland I corrected the values. The changes will be included in the next update of the ebook.