Skip to content

Could not request ResolveCustomer API with access, secret key

0

Background:

  • Used to put access key, secret key to the boto client for AWS marketplace ResolveCustomer API
  • It was successfull so I decided to manage the system that way

Issue:

  • I tested the function today but ResolveCustomer is not working with access denied
  • configuration, access/secret key, accounts are the same nothing changed

Question:

  • Is there anything changed in AWS marketplace metering process?
  • How can I solve it?

Account role and status:

  • AdministratorAccess, AWSMarketplaceFullAccess, ResolveCustomer Allow
  • Access key is not changed, healthy state

asked 2 years ago192 views

1 Answer
0

Based on the information provided, it seems that you're experiencing an issue with the AWS Marketplace ResolveCustomer API despite having previously working credentials. While there haven't been any significant changes to the AWS Marketplace metering process that would directly cause this issue, there are a few potential reasons for the access denied error you're encountering:

  1. Key Status: Even though you mentioned the access key is in a healthy state, it's possible that the key has been deactivated or its status has changed. You can verify the status of your access key using the AWS IAM console or the AWS CLI.

  2. Policy Changes: Although you've stated that the account roles and permissions haven't changed, it's worth double-checking the IAM policies associated with your user or role to ensure that the necessary permissions for the ResolveCustomer API are still in place.

  3. Temporary Issue: Sometimes, AWS services may experience temporary issues that can cause unexpected access denied errors.

To resolve this issue, you can try the following steps:

  1. Verify Access Key: Check the status of your access key using the AWS IAM console or the AWS CLI. If it's inactive, you may need to activate it or create a new one.

  2. Rotate Access Keys: As a best practice, consider creating a new access key and secret key pair, and use these new credentials in your boto client configuration.

  3. Check IAM Permissions: Review the IAM policies attached to your user or role to ensure they still include the necessary permissions for the ResolveCustomer API.

  4. Use AWS CLI: Try using the AWS CLI to make the same API call. This can help determine if the issue is specific to your application or if it's a broader access problem.

  5. Contact AWS Support: If the issue persists after trying these steps, it may be worth contacting AWS Support for further assistance, as they can provide more detailed information about any potential account-specific issues.

Remember to always handle and store your AWS credentials securely, and avoid using root account credentials for API access when possible.
Sources
update-access-key — AWS CLI 2.23.11 Command Reference
AWS GovCloud (US) account root user - AWS GovCloud (US)

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.