Which AWS service lets you define and provision your infrastructure from templates, as code?
AWS CloudFormation is infrastructure as code: you describe resources in a template and it provisions them consistently. Why not the others: EC2 is a compute service you provision, not the tool that defines infrastructure from a template. Config records how resources are configured over time. S3 is object storage. 'Infrastructure from templates, as code' is the CloudFormation signal.