For single AMI with a CloudFormation stack Marketplace offer Can we have a CloudFormation template that creates both ECS Fargate services and a Lambda function?

0

Hi, If I choose to proceed with a single Amazon Machine Image (AMI)-CloudFormation stack to publish the application my application for a Marketplace offer to publish my application on AWS Marketplace, should the CloudFormation template include instructions for launching both an EC2 instance and an ECS Fargate service (using an image stored in my Elastic Container Registry), as well as deploying a Lambda function (using an image stored in my Elastic Container Registry)? Or should the CloudFormation template only focus on launching the EC2 instance?