-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Didn't get DefaultAccountPasswordPolicy When Calling "GetAccountPasswordPolicy" API. #7265
Comments
Hi @tirthrajsinh-fens, thanks for reaching out. Which CLI command did you run and receive the Password Policy error? I assumed that you ran Here's docs on for your reference: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_passwords_account-policy.html#PasswordPolicy_CLI If you're still having trouble, please share the debugs logs by adding Best, |
Hi, @aBurmeseDev Thanks for your response.
Thanks, |
@tirthrajsinh-fens Thanks for sharing this additional info. Could you try running update-account command As mentioned in the docs from previous comment, you might have to run update-account-policy command to retrieve the default password policy after removing the custom password policy. Please let me know if that helps! |
Hi @aBurmeseDev,
But it's not a default AWS account password policy, right? , I think when account password policy is not set or updated then, by default AWS account password policy should be set.
|
Could you check your current password policy by going to AWS IAM console and then click on Account settings on the left navigation menu. You'll see your password policy first thing on the page. That's where the default password policy is pulled from when you run |
Hi @aBurmeseDev,
@aBurmeseDev Can u please check with the above password policy? Thanks, |
Hi @tirthrajsinh-fens - apologies for the delay. I heard back from the team that this error is likely be resolved by doing these steps:
Also I would check on your CLI version and update to recent version if you haven't already. If you the issue persists, please share the full debug logs by appending |
Greetings! It looks like this issue hasn’t been active in longer than five days. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one. |
@aBurmeseDev thanks for your reply, I will surely check in short and Revert Back. |
Hi @aBurmeseDev , I have checked with latest version 2.9.16 but still getting same error. and I have setup default account-password-policy to the account.
|
Apologies for the long silence here. I've reached out to IAM team to get their insight on this and will report back. (ref: V1439088932) |
Describe the bug
Hi Team, In my AWS Account after creating a custom password policy, called GetAccountPasswordPolicy API, it returns a proper response But when I delete the custom password policy and then hit the GetAccountPasswordPolicy API, the response shows
The Password Policy with domain name 12345678912 cannot be found.
Expected Behavior
default password policy
Default Policy
![DefaultPasswordPolicy](https://user-images.githubusercontent.com/99860808/189674068-d3225a59-1ea6-4af6-a3c8-1f51d76db9e4.png)
Expected Response
Current Behavior
Default Policy
![DefaultPasswordPolicy](https://user-images.githubusercontent.com/99860808/189675728-8a54db84-be77-47b6-9c6f-4bbd2f68a7f0.png)
Current Response
Reproduction Steps
Possible Solution
Additional Information/Context
This is not specific to the aws-cli bug, it's problem with the AWS API. I just didn't know where else to report the bug.
CLI version used
NA
Environment details (OS name and version, etc.)
Windows 10, Postman
The text was updated successfully, but these errors were encountered: