aws-samples / connected-drink-dispenser-workshop

Code and walk-through to assemble, program and build a multi-user Amazon FreeRTOS and AWS IoT enabled drink dispenser.
MIT No Attribution
40 stars 20 forks source link

Cannot create user resources is IAM account password policy does not exist #13

Closed gadams999 closed 4 years ago

gadams999 commented 4 years ago

Attempting to create user resources errors out with the following:

[WARNING] ... Error calling iam.get_account_password_policy() (will retry) for user cdduser, error: An error occurred (NoSuchEntity) when calling the GetAccountPasswordPolicy operation: The Password Policy with domain name ACCOUNT_ID cannot be found.

Need to add test for NoSuchEntity when getting the accounts password policy and if triggered, create a policy that aligns with the workshop policy.

reference to #11

gadams999 commented 4 years ago

Commit tested on AWS account that did not have password policy set. Properly created user and applied the workshop policy to the account.