It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do I run terraform apply from Bamboo? Edited

I have tried adding a server capability type executable command defining the path were terraform is install in the Bamboo server. However when running a local agent I get:

/opt/bamboo-home/temp/..611127650554.sh: line 6: /usr/bin/terraform: No such file or directory

1 answer

0 votes

Hi! 

 

@Victor Damian-Chicon have you checked under bamboo user visibility of the /usr/bin/terraform ?

Capability, used like the filter of the your agents. 

Cheers,

Gonchik Tsymzhitov

Thank you. Im a noob of course. It helps if I work on the right server : ( . ....
so

  • installed terraform in /usr/bin/terraform (in the right server this time ¯\_(ツ)_/¯)
  • /usr/bin/ is in the bamboo path (URL..../admin/systemInfo.action or install_dir.../bin/setenv.sh)
  • added Server Capability terraform Executable -> Command -> path /usr/bin/terraform (URL..../admin/agent/configureSharedLocalCapabilities.action)
  • Created Plan -> Job -> task -> script -> shell -> inline -> body .... and

           green logs:

            terraform -v

           Terraform v0.11.10

 

Thank you Gonchik Tsymzhitov

You are welcome! 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bamboo

Unable to add or edit Bitbucket Cloud repository in Bamboo

On 31 May, a GDPR-related change went live in the Bitbucket Cloud API that resulted in users not being able to create or edit Bitbucket Cloud Linked repositories in Bamboo. This API update removed t...

672 views 2 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you