AWS Elastic Beanstalk is the correct service for this requirement because:
- AWS Elastic Beanstalk is a Platform as a Service (PaaS) offering that allows developers to quickly deploy and manage applications in the AWS Cloud
- It automatically handles the deployment details including capacity provisioning, load balancing, auto-scaling, and application health monitoring
- Developers simply upload their code, and Elastic Beanstalk automatically builds the required infrastructure
- It supports multiple programming languages and platforms including Java, .NET, PHP, Node.js, Python, Ruby, Go, and Docker
- Unlike the other options:
- AWS AppSync: A managed service for developing GraphQL APIs
- AWS Config: A service for assessing, auditing, and evaluating AWS resource configurations
- AWS Outposts: Extends AWS infrastructure to on-premises locations
The key requirement is "upload code to automatically create the application infrastructure," which perfectly describes AWS Elastic Beanstalk's core functionality.