Firmex interview question

Describe Infrastructure as a Code and how its used in AWS.