You can pass wanted steps to cloud-init from the consumer information fields when launching an instance. This suggests You need to use popular AMIs For lots of use instances and configure them dynamically at startup. Amazon Linux also works by using cloud-init to perform initial configuration of your ec2-person account. https://aws-linux-support88776.bloguetechno.com/top-guidelines-of-magento-2-install-61545152