I'm attempting to use AWS CodePipeline to deploy an app to an EC2 instance using CodeDeploy agent, but it's failing with this frustratingly vague "InternalError":
I can't find any other meaningful error.
I'm using terraform to define the CodePipeline. This is the "Deploy" section:
stage {
name = "Deploy"
action {
name = "Deploy"
category = "Deploy"
owner = "AWS"
provider = "CodeDeploy"
input_artifacts = ["buildOut"]
run_order = 1
version = "1"
configuration = {
ApplicationName = aws_codedeploy_app.my-codedeploy-app.id
DeploymentGroupName = aws_codedeploy_deployment_group.my-codedeploy-group.id
}
}
}
What am I doing wrong?

appspec.yml?