Thanks for the reply...
I have seen the articles already, I am facing still difficulty to setup my job. Let me share my requirement based on that, if someone share me the flow it would be really help me.
My requirement is.
1. I have my script placed in bitbucket repo -
AWS cli commands added in that script with variablised resource name.
No hardcode values in the script, as i will use the script for different account.
So i will pass the resource name via runtime variable while executing the job.
2.Rundeck job configuration
Configured the options to read the aws iam role for the specifiged aws account
Refer attached image: Options-config-for AWS role
3.Workflow configuration
1.script - to pull the code from the repo
Refer image: pull-code from repo
2.call the script from the folder and exec with the runtime paramter.
Refer image: step-exec script
Kindly someone help me, The above approach is not working. Is the configuration is in right place? Or should I follow a different approach?
Note: the rundeck server running in AWS account A. But the script needs to exec in AccountB.
Should I want to create the trust relationship between account? Or is it enough to use the role from the Account B.
Thanks,
Dhamodharan.