What are the MINIMUM properties required in the ‘resources’ section of the AppSpec file for CodeDeploy to deploy the function successfully?
name, alias, currentversion, and targetversion
TaskDefinition, ContainerName, and PlatformVersion
TaskDefinition, ContainerName, and ContainerPort
name, currentversion, NetworkConfiguration, and PlatformVersion
Explanations:
The ‘resources’ section in the AppSpec file for Lambda deployment requires a ‘name’ (the Lambda function name), ‘currentversion’ (the version of the Lambda function to be deployed), and ‘targetversion’ (the new version of the Lambda function).
This option refers to ECS task properties (‘TaskDefinition’, ‘ContainerName’, ‘PlatformVersion’), which are used for container-based deployments, not Lambda functions.
Similar to B, this option involves container properties (‘TaskDefinition’, ‘ContainerName’, ‘ContainerPort’), which are not relevant for Lambda deployments.
‘NetworkConfiguration’ and ‘PlatformVersion’ are not required for Lambda deployments. These are more relevant to ECS deployments. Lambda requires only the function name and versions in the ‘resources’ section.