question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[bug] Unable to Deploy to AWS

See original GitHub issue

Describe the bug

I’m getting the following error:

error configuring Terraform AWS Provider: error validating provider credentials: error calling sts:GetCallerIdentity: InvalidClientTokenId: The security token included in the request is invalid.

Reproducible Example:

export GITHUB_USERNAME=“”
export GITHUB_TOKEN=“”
export AWS_ACCESS_KEY_ID=“”
export AWS_SECRET_ACCESS_KEY=“”
export CLOUDFLARE_TOKEN=“”

qhub init aws

qhub deploy -c qhub-config.yaml --dns-provider cloudflare --dns-auto-provision

Full Error:

INFO:qhub.provider.terraform:terraform init took 21.004 [s]
INFO:qhub.provider.terraform:rm local state file terraform.tfstate directory=terraform-state
INFO:qhub.provider.terraform:terraform import directory=terraform-state addr=module.terraform-state.aws_s3_bucket.terraform-state id=daskhub-dev-terraform-state
INFO:qhub.provider.terraform: terraform at /var/folders/wf/_b6z5_fx7gb71f96vy026vrr0000gn/T/terraform/0.14.9/terraform
[terraform]: 
[terraform]: Error: error configuring Terraform AWS Provider: error validating provider credentials: error calling sts:GetCallerIdentity: InvalidClientTokenId: The security token included in the request is invalid.
[terraform]: 	status code: 403, request id: a28c0f32-1283-4e05-a0a1-0da3df0fa985
[terraform]: 
[terraform]:   on /Users/rhun/PycharmProjects/qhub-test/terraform-state/main.tf line 1, in provider "aws":
[terraform]:    1: provider "aws" {
[terraform]: 
[terraform]: 
INFO:qhub.provider.terraform:terraform apply directory=terraform-state targets=[]
INFO:qhub.provider.terraform: terraform at /var/folders/wf/_b6z5_fx7gb71f96vy026vrr0000gn/T/terraform/0.14.9/terraform
[terraform]: 
[terraform]: Error: error configuring Terraform AWS Provider: error validating provider credentials: error calling sts:GetCallerIdentity: InvalidClientTokenId: The security token included in the request is invalid.
[terraform]: 	status code: 403, request id: 29ddaf82-5d11-42dc-b967-574896af8b7b
[terraform]: 
[terraform]:   on main.tf line 1, in provider "aws":
[terraform]:    1: provider "aws" {
[terraform]: 
[terraform]: 

Problem encountered: Terraform error

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:16 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
rileyhuncommented, Oct 13, 2021

Hi @iameskild - I think it worked.

[terraform]: Apply complete! Resources: 13 added, 0 changed, 0 destroyed.
[terraform]: 
[terraform]: Outputs:
[terraform]: 
[terraform]: ingress_jupyter = {
[terraform]:   "hostname" = "ae31d3aa0eb8c47e39c32ef11b930409-822851141.us-west-2.elb.amazonaws.com"
[terraform]:   "ip" = ""
[terraform]: }
INFO:qhub.provider.terraform:terraform apply took 42.044 [s]
INFO:qhub.provider.terraform:terraform=/var/folders/wf/_b6z5_fx7gb71f96vy026vrr0000gn/T/terraform/0.14.9/terraform output directory=infrastructure
INFO:qhub.provider.terraform:terraform output took 3.648 [s]
Take IP Address ae31d3aa0eb8c47e39c32ef11b930409-822851141.us-west-2.elb.amazonaws.com and update DNS to point to "rhun.ca"
1reaction
pierrotsmnrdcommented, Oct 13, 2021

I have just deployed a Qhub 0.3.12 on AWS and didn’t encounter this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot EC2/On-Premises deployment issues
Troubleshoot deployment issues you might encounter when you use CodeDeploy to deploy to an EC2/On-Premises compute platform.
Read more >
BUG: Unable to deploy new version once PIDs go over 2^ ...
Bug report: when PIDs go over 2^16 (~65k) and don't fit on a uint16 , deployments of new versions of my Docker image...
Read more >
General Issues - AWS .NET deployment tool
Why this is happening: This error could happen for a variety of reasons, such as the application failing its initial health check or...
Read more >
Bug #1860083 “failed to deploy bundle with “suitable ...
It looks like when the order of machines list is not in order for zones, it fails to deploy the machines with an...
Read more >
Unable to Deploy AWS Lambda Service - Backendless Support
Unable to Deploy AWS Lambda Service · Bug · Giridhar_Duggirala (Giridhar Duggirala) September 1, 2020, 2:04am #1. Application ID: 56B058BD-D883-FCDC-FF12- ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found