AWS Lightsail Deployment - Invalid Provider Credentials Despite Valid AWS API Access

jordanchisholm

Gold Partner
Joined
Aug 5, 2022
Messages
4
Reaction score
1
Hi Team,

We are currently experiencing an issue deploying a new 3CX instance to Amazon Lightsail through the 3CX deployment wizard.

We have been deploying 3CX instances to AWS Lightsail for several years without issue. However, after creating a new AWS account yesterday, we noticed that AWS has significantly changed its account registration and onboarding process.

When selecting Amazon - Lightsail as the hosted platform and entering the AWS Access Key ID and Secret Access Key, the deployment wizard immediately returns the following error:

"Invalid provider credentials"
1796167963507.png

Troubleshooting completed:

  • Created a dedicated IAM user for 3CX.
  • Created and attached a custom IAM policy granting full Lightsail access.
  • Granted additional IAM GetUser and STS permissions.
  • Temporarily assigned the AWS-managed AdministratorAccess policy to eliminate missing IAM permissions as a potential cause.
  • Generated multiple new access keys.
  • Successfully authenticated using AWS CLI.
  • Successfully queried Lightsail instances in both Sydney and US East (Virginia).
  • Successfully retrieved available regions, availability zones, instance bundles, OS blueprints and SSH key pairs.
  • Created and successfully queried a custom Lightsail SSH key pair in the original account.
  • Reviewed AWS CloudTrail logs, which confirmed successful API requests originating from AWS CLI.
  • Upgraded the AWS account from the free plan to a paid plan.
  • Configured a separate AWS account following the changes to the AWS account structure and repeated the IAM configuration.
Despite the above, the 3CX deployment wizard continues to return the same error, even when using an IAM user with full AdministratorAccess permissions.

The error occurs before we are presented with the options to select an AWS region, SSH key or instance size.

We have also reviewed the official 3CX Amazon Lightsail deployment documentation:
https://www.3cx.com/docs/amazon-lightsail/

Could you please investigate the following:

  • Are there any known issues with the 3CX deployment wizard following the recent changes to AWS account registration and onboarding?
  • Are there any known issues with Amazon Lightsail credential validation?
  • Which specific AWS API operations are performed by 3CX when validating the provider credentials?
  • Are there any additional AWS account prerequisites or IAM permissions that are not currently documented?
  • Can you review the server-side deployment logs to determine why the credentials are being rejected?
We have confirmed that the AWS credentials are functional for the tested API operations, but we are unable to progress beyond the initial credential validation stage within 3CX.

Regards,
Jordan
 
We have received the support ticket and we will proceed from there.