aws-samples / aws-samples/ecs-blue-green-deployment-with-codedeploy

An action in this pipeline failed because one or more variables could not be resolved: Action name=BuildCodeDeployArtifacts

Open
#4 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
12
Forks
9
PR merge metrics
No merged PRs in 30d

Description

The BuildCodeDeployArtifacts action in the pipeline fails due to unresolved variables (TASKDEF_ARN and HOOKS_LAMBDA_ARN). These variables are supposed to be dynamically resolved from the DeployInfraVariables namespace, populated by the DeployAppInfrastructure stage.

Observed Behavior:
The pipeline fails with the error:
"An action in this pipeline failed because one or more variables could not be resolved: Action name=BuildCodeDeployArtifacts."

![Image](https://github.com/user-attachments/assets/852f026b-f5f4-4214-a708-75e8769203a7)

TASKDEF_ARN and HOOKS_LAMBDA_ARN are not set during execution.
Expected Behavior:
Variables TASKDEF_ARN and HOOKS_LAMBDA_ARN should resolve from the DeployInfraVariables namespace and be passed as environment variables to the BuildCodeDeployArtifacts action.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.