In #26, we added a script to get AWS creds from an AWS_PROFILE setting for use with ansible roles that still use boto:
caktus/ansible-role-django-k8s#29 (comment)
Another, cleaner, approach might be to do that same process as an Ansible task using sts_assume_role as Colin described
The task in this issue would be to get that task working in django-k8s and then remove the get_boto_env function here.
In #26, we added a script to get AWS creds from an AWS_PROFILE setting for use with ansible roles that still use boto:
caktus/ansible-role-django-k8s#29 (comment)
Another, cleaner, approach might be to do that same process as an Ansible task using
sts_assume_roleas Colin describedThe task in this issue would be to get that task working in django-k8s and then remove the
get_boto_envfunction here.