- Newest
- Most votes
- Most comments
Hello ,
greeting for the day .
I would like to inform you that this issue generally occurs when any input Artifacts defined in an action of a code pipeline is not declared in the preceding action of the same pipeline .
Example for reference :
{
"pipeline": {
"roleArn": "arn:aws:iam::111111111111:role/AWS-CodePipeline-Service",
"stages": [
{
"name": "Source",
"actions": [
{
"inputArtifacts": [],
"name": "Source",
"actionTypeId": {
"category": "Source",
"owner": "AWS",
"version": "1",
"provider": "S3"
},
"outputArtifacts": [
{
"name": "MyApp”. <<=====Output artifacts is defined with the name MyApp in source action here .
}
],
"configuration": {
"S3Bucket": "awscodepipeline-demo-bucket2",
"S3ObjectKey": "aws-codepipeline-s3-aws-codedeploy_linux.zip"
},
"runOrder": 1
}
]
},
{
"name": "Beta",
"actions": [
{
"inputArtifacts": [
{
"name": "MyApp”. <============ the same output artifacts MyApp is used as input artifacts here .
}
],
"name": "CodePipelineDemoFleet",
"actionTypeId": {
"category": "Deploy",
"owner": "AWS",
"version": "1",
"provider": "CodeDeploy"
},
"outputArtifacts": [],
"configuration": {
"ApplicationName": "CodePipelineDemoApplication",
"DeploymentGroupName": "CodePipelineDemoFleet"
},
"runOrder": 1
}
]
}
],
Please note that in this example the input Artifacts called "MyApp" defined in action name “CodePipelineDemoFleet” is already declared to be available to the output Artifacts of action source .
Now in your example you have shared with us , I can observe that you have defined the input Artifacts : "MyAppBuild" as mentioned below
{
"name": "PROD_Deploy",
"actions": [
{
"inputArtifacts": [
{
"name": "MyAppBuild”.
}
],
Can you please confirm if this input Artifacts:”MyAppBuild” is passed as output Artifacts in any other action of your pipeline . In order to troubleshoot this issue I would suggest to pass the output Artifacts :””MyAppBuild” from the preceding action of your code pipeline which will help you to resolve this issue
Lastly I hope the above mentioned information sounds good to you and address your query raised . In case you have any further questions then please feel free to reach out to us , we will be always happy to assist you further .
Have a great day ahead .
Relevant content
- Accepted Answerasked 2 years ago
- Accepted Answerasked 2 years ago
- asked 4 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 3 years ago