You can configure the resources by programatically using AWS Api.
Elastic Beanstalk provides the ability to deploy and manage the containerized apps.
cat /etc/lsb-release
$curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -