I want to delete S3 files from the bucket by creating a bamboo plan/script which when run will delete the file.
I tried creating a plan and then creating a task. But in the task i can see no option for Amazon S3 Object in the list. I have refered to the below url and followed the steps:https://utoolity.atlassian.net/wiki/spaces/TAWS/pages/19464196/Using+the+Amazon+S3+Object+task+in+Bamboo
Is there any other way i can create a bamboo plan and delete files from S3???
Hi Steffen,
Thanks for your revert.
I have tried the steps which you had provided.
I have created a plan, then i created a task wherein i have added task by selecting type as Script. And then followed the steps given in https://confluence.atlassian.com/bamboo/script-289277046.html?_ga=2.206651157.703612990.1564645603-979275457.1562814553
In the script i have written command as attached in screenshot "Bamboo_Task.PNG".
But when i run the plan i get error as below:
(line 2: $: command not found).
Also i have set the variables under the variables tab and also i have added a local agent under requirement tab but it gives an error when clicked on the Defalut Job as "No agents meet this job's requirements."
Can you please check and correct me where i am wrong?
There seem to be two different issues eventually:
1. Missing AWS CLI
But when i run the plan i get error as below:
(line 2: $: command not found).
The missing command here is 'aws', which is the AWS Command Line Interface (AWS CLI) and may need to be installed on your agent first.
I think all Bamboo stock images for Elastic Bamboo have it installed by default meanwhile, but if you are using a custom image, or a remote or local agent, you may need to install it yourself - please refer to Installing the AWS CLI for instructions.
2. Missing job requirements
The "No agents meet this job's requirements" error usually needs to be taken literally. What do you mean exact when you say that you have "added a local agent under requirement tab", and can you show me the "Required capability" list from the requirements tab so that we can analyze which requirement is not met?
Hi Steffen,
Thank you so much for your help :-)
I managed to run the plan successfully.
There were some minor mistakes which i had made after correcting it worked.