What are the MINIMUM properties required in the ‘resources’ section of the AppSpec file for CodeDeploy to deploy the ECS service successfully?
name, alias currentversion, and targetversion
TaskDefinition, ContainerName, and PlatformVersion
TaskDefimtion, ContainerName, and ContainerPort
name, currentversion, NetworkConfiguration, and PlatformVersion
Explanations:
The properties “name”, “alias currentversion”, and “targetversion” are not valid in the ‘resources’ section for ECS service deployments. These properties are used in other deployment scenarios like Lambda or EC2.
“TaskDefinition”, “ContainerName”, and “PlatformVersion” are not the minimum required properties for ECS service deployment in the AppSpec file. “PlatformVersion” is generally used in ECS for Fargate tasks but is not mandatory for the AppSpec file.
“TaskDefinition”, “ContainerName”, and “ContainerPort” are the correct properties required in the ‘resources’ section for ECS service deployment. These define the task definition, the container name to deploy, and the port for the container.
“name”, “currentversion”, “NetworkConfiguration”, and “PlatformVersion” are not the required properties. The “name” and “currentversion” are not applicable for ECS, and “NetworkConfiguration” and “PlatformVersion” are not minimum requirements for the ECS AppSpec file.