Open gregory-lecomte opened 1 year ago
@coopengo-glecomte You appear to be using the legacy non-refreshable configuration in which case you will have to run aws sso login
to get a token. You can also try using the newer automatic refreshing config.
@coopengo-glecomte You appear to be using the legacy non-refreshable configuration in which case you will have to run
aws sso login
to get a token. You can also try using the newer automatic refreshing config.
Hi @gravesm, I'm using the new authentication configuration, and that's what I'm having the problem with :
[profile company]
sso_session = sso-company
sso_account_id = 19xxxxxxxxxx
region = eu-west-3
sso_role_name = AWSAdministratorAccess
[profile company0]
sso_session = sso-company
sso_account_id = 36xxxxxxxxxx
region = eu-west-3
sso_role_name = AWSAdministratorAccess
[profile company1]
sso_session = sso-company
sso_account_id = 46xxxxxxxxxx
region = eu-west-3
sso_role_name = AWSAdministratorAccess
[sso-session sso-company]
sso_start_url = https://test.awsapps.com/start
sso_region = eu-west-3
sso_registration_scopes = sso:account:access
Hi,
Any news about it ?
Summary
When I try to execute a Playbook on my EC2 instance, I get the following error
Issue Type
Bug Report
Component Name
Plugin : amazon.aws.aws_ec2
Ansible Version
Collection Versions
AWS SDK versions
Configuration
OS / Environment
Ubuntu 22.04
Steps to Reproduce
inventories/company-interne.aws_ec2.yml
~/.aws/config
Command to run :
Expected Results
I expected to get my dynamic inventory using an AWS Identity Center account
Actual Results
Code of Conduct