I have a below yml file samplelambda1.yml
Mappings:
Environments:
dev:
DefaultLambdaConcurrency: '10'
test:
DefaultLambdaConcurrency: '10'
staging:
DefaultLambdaConcurrency: '10'
production:
DefaultLambdaConcurrency: '10'
I have multiple files like samplelambda2,3,4....30
I need to add another mapping to all the yml file with help of python script, how can we do it? I tried string replace but its a complicated operation to open a file and replace multiple lines.
production-new:
DefaultLambdaConcurrency: '10'