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
On Monday, 18 April 2022 at 09:43:36 UTC-4 [email protected] wrote:
> I have attached some more details.
>
>
>
> On Monday, April 18, 2022 at 2:23:40 PM UTC+1 Shyamala Ngd wrote:
>
>> 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.
>>
>>
>>
--
You received this message because you are subscribed to the Google Groups
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/go-cd/21a6097e-2f8a-400c-9e8d-c6d851e270cfn%40googlegroups.com.