Skip to content

Instantly share code, notes, and snippets.

@ryno75
Created December 3, 2018 15:47
Show Gist options
  • Save ryno75/6b36af3816f08a4f4783a81e6b99ad59 to your computer and use it in GitHub Desktop.
Save ryno75/6b36af3816f08a4f4783a81e6b99ad59 to your computer and use it in GitHub Desktop.
Error received running terragrunt using an AWS assumed role profile
> export AWS_PROFILE=aws.premium.staging
> export AWS_DEFAULT_PROFILE=aws.premium.staging
> aws sts get-caller-identity  SIGINT(2) ↵  11668  07:38:41
{
"UserId": "AROAIYKNPLZYTEIM2JL46:botocore-session-1543851525",
"Account": "##REDACTED##",
"Arn": "arn:aws:sts::##REDACTED##:assumed-role/OrganizationAccountAccessRole/botocore-session-1543851525"
}
> TF_LOG=debug terragrunt plan  1 ↵  11670  07:39:23
[terragrunt] [/Users/<REDACTED>/code/smar/terraform_premium/live/staging/IAM] 2018/12/03 07:40:13 Running command: terraform --version
[terragrunt] 2018/12/03 07:40:13 Reading Terragrunt config file at /Users/<REDACTED>/code/smar/terraform_premium/live/staging/IAM/terraform.tfvars
[terragrunt] 2018/12/03 07:40:13 WARNING: no double-slash (//) found in source URL /CloudOps/tfm_smar_iam.git. Relative paths in downloaded Terraform code may not work.
[terragrunt] 2018/12/03 07:40:13 Terraform files in /Users/<REDACTED>/code/smar/terraform_premium/live/staging/IAM/.terragrunt-cache/35z1Uw8yNAtpa2jho5yiyAsrb_M/KUZWpCLP92GDGc5x4p0Yt0vOivM are up to date. Will not download again.
[terragrunt] 2018/12/03 07:40:13 Copying files from /Users/<REDACTED>/code/smar/terraform_premium/live/staging/IAM into /Users/<REDACTED>/code/smar/terraform_premium/live/staging/IAM/.terragrunt-cache/35z1Uw8yNAtpa2jho5yiyAsrb_M/KUZWpCLP92GDGc5x4p0Yt0vOivM
[terragrunt] 2018/12/03 07:40:13 Setting working directory to /Users/<REDACTED>/code/smar/terraform_premium/live/staging/IAM/.terragrunt-cache/35z1Uw8yNAtpa2jho5yiyAsrb_M/KUZWpCLP92GDGc5x4p0Yt0vOivM
[terragrunt] 2018/12/03 07:40:15 Running command: terraform plan -var-file=/Users/<REDACTED>/code/smar/terraform_premium/live/staging/terraform.tfvars -var-file=/Users/<REDACTED>/code/smar/terraform_premium/live/staging/../common.tfvars
2018/12/03 07:40:15 [INFO] Terraform version: 0.11.10
2018/12/03 07:40:15 [INFO] Go runtime version: go1.11.1
2018/12/03 07:40:15 [INFO] CLI args: []string{"/usr/local/Cellar/terraform/0.11.10/bin/terraform", "plan", "-var-file=/Users/<REDACTED>/code/smar/terraform_premium/live/staging/terraform.tfvars", "-var-file=/Users/<REDACTED>/code/smar/terraform_premium/live/staging/../common.tfvars"}
2018/12/03 07:40:15 [DEBUG] Attempting to open CLI config file: /Users/<REDACTED>/.terraformrc
2018/12/03 07:40:15 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2018/12/03 07:40:15 [INFO] CLI command args: []string{"plan", "-var-file=/Users/<REDACTED>/code/smar/terraform_premium/live/staging/terraform.tfvars", "-var-file=/Users/<REDACTED>/code/smar/terraform_premium/live/staging/../common.tfvars"}
2018/12/03 07:40:15 [INFO] Building AWS region structure
2018/12/03 07:40:15 [INFO] Building AWS auth structure
2018/12/03 07:40:15 [INFO] Setting AWS metadata API timeout to 100ms
2018/12/03 07:40:15 [INFO] Ignoring AWS metadata API endpoint at default location as it doesn't return any instance-id
2018/12/03 07:40:21 [DEBUG] plugin: waiting for all plugin processes to complete...
Failed to load backend:
Error configuring the backend "s3": No valid credential sources found for AWS Provider.
Please see https://terraform.io/docs/providers/aws/index.html for more information on
providing credentials for the AWS Provider
Please update the configuration in your Terraform files to fix this error.
If you'd like to update the configuration interactively without storing
the values in your configuration, run "terraform init".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment