Using CloudFormation template to set up a connection with AWS