Cannot match any resource under pipeline

43 views
Skip to first unread message

Shyamala Ngd

unread,
Apr 18, 2022, 9:23:40 AM4/18/22
to go-cd
Hi ,

I am trying to deploy terraform through gocd on AWS.

After successfully running terraform plan gocd is not able to upload the plan.

I am getting the below error.


&1|12:48:29.593 &1|12:48:29.593 This plan was saved to: ../../../terraformout.plan &1|12:48:29.593 &1|12:48:29.593 To perform exactly these actions, run the following command to apply: &1|12:48:29.593 terraform apply "../../../terraformout.plan" &1|12:48:29.594 ?0|12:48:29.689 [go] Task status: passed (9054 ms) j0|12:48:29.699 [go] Current job status: passed ##|12:48:29.711 [go] Start to create properties Argos-PII-Production/17/plan-deployment/1/terraform-plan on ip-10-0-0-170.eu-west-1.compute.internal [/go] ar|12:48:29.711 [go] Start to upload Argos-PII-Production/17/plan-deployment/1/terraform-plan on ip-10-0-0-170.eu-west-1.compute.internal [/go] ae|12:48:29.712 [go] The rule [terraformout.plan] cannot match any resource under [pipelines/Argos-PII-Production] ae|12:48:29.712 [go] [go] Uploading finished. Failed to upload [terraformout.plan]. ex|12:48:29.712 [go] Job completed Argos-PII-Production/17/plan-deployment/1/terraform-plan on ip-10-0-0-170.eu-west-1.compute.internal [/go]

I am new to gocd and not sure where is it going wrong.

Can you please help.

Thanks,
Shymala.


Shyamala Ngd

unread,
Apr 18, 2022, 9:43:36 AM4/18/22
to go-cd
I have attached some more details.
gocd_error.png
VSM.png

Jason Smyth

unread,
Apr 26, 2022, 9:16:04 AM4/26/22
to go-cd
Hi Shymala,

This error is typically caused by a disconnect between the location to which files are created on disk and the location from which GoCD expects to upload them as defined in the Artifacts section.

In this case it looks like the Terraform job is creating the output file outside of the Agent's working directory ("../../../terraformout.plan"), causing GoCD to be unable to find the file to upload.

Hope this helps,
Jason
Reply all
Reply to author
Forward
0 new messages