Hi@akhtar,
To configure the Puppet master in your EC2 instance, you can follow the below steps.
$ vim /etc/sysconfig/puppetserver
And reduce the amount of allocated RAM for the Puppet server (for example, I specified 512m instead of 2g):
JAVA_ARGS="-Xms512m -Xmx512m"
$ vim /etc/puppetlabs/puppet/puppet.conf
dns_alt_names= private dns of master(same m/c)
$ vim /etc/hosts
DNS name
$ sudo systemctl start puppetserver