CodeDeploy agents run on EC2 instances in a private subnet without internet access; S3 revision downloads work, and a codedeploy interface VPC endpoint handles deployment API requests. The agents cannot poll for deployment commands. Which change provides the missing private connectivity?
Show the answer
Correct answerC. Add a codedeploy-commands-secure interface endpoint with private DNS enabled.
AWhy not this: The agent initiates outbound communication; CodeDeploy does not deliver commands through inbound instance HTTPS connections.
BWhy not this: STS provides temporary credentials, not the CodeDeploy agent command service.
CWhy this is right: The agent command endpoint supplies private connectivity for polling; its security group must permit HTTPS from the instances.
DWhy not this: The CodeArtifact repository endpoint serves package traffic, not CodeDeploy agent command polling.
CodeDeploy agents use the codedeploy-commands-secure endpoint to receive commands through AWS PrivateLink. The codedeploy endpoint serves deployment API operations and does not replace the agent command endpoint.