Access EC2 By Session Manager Create Cloud formation template to access EC2 Instance through Session Manager Section This code has below sections in yaml. Parameters Resources EC2 Instance IAM Role Instance Profile Security Group outputs User Data Cfn-signal cfn-init