-
-
Notifications
You must be signed in to change notification settings - Fork 979
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem: Config profile could not be found. I need help using semaphore ui and AWS profiles from the ~/.aws/credentials. #2024
Comments
Hi @kdjomeda does it work by using |
@kdjomeda in your setup description you use AWS profile |
@fiftin I did run it directly on the device and it run but not on the semaphoreui |
Hm, it is really strange. @tboerger, @andreas-marschke do you have any idea? |
I don't have an idea really... I never used profiles. |
@kdjomeda Looks like I understood why it can't find your profile. Because Semaphore override HOME environment variable. - name: Launch EC2 instance
hosts: localhost
gather_facts: no
environment:
AWS_PROFILE: your-custom-profile-name
AWS_CONFIG_FILE: /path/to/your/custom/config
AWS_SHARED_CREDENTIALS_FILE: /path/to/your/custom/credentials
tasks:
- name: Create an EC2 instance
ec2:
key_name: my-key
instance_type: t2.micro
image: ami-12345678
region: us-east-1
wait: yes
register: ec2
- debug:
var: ec2 |
Hello Community,
I have run into issues trying to execute ansible-semaphoreui with AWS profiles. There are 2 issues in one:
Setup used
ubuntu 22.04 LTS on AWS EC2
with the CLI args
["-e","global_var_environment=prod","-e", "global_var_profile=prod-uat-example","-vvvv"]
I had to pass the aws profile as a extra argument passed to ansible playbook shown below:
The default value is to pick it from the command line environment variable if I am able to set one
When I execute a task on it in debug mode the output is this
Grateful if anyone can share their wisdom on this. Been blocked at this since 24th April 2024. I think I have run out of options and wanted to check with the community if there is something I needed to change or some understanding I don't have yet. Thanks in advance
The text was updated successfully, but these errors were encountered: