Hi! This morning I've encountered the following er...
# atmos
r
Hi! This morning I've encountered the following error in my Terraform Plan CI on GitHub actions, in the
Determine Affected Stacks
step.
Copy code
✗ Fetching eks_cluster_managed_security_group_id output from eks/cluster in plat-ue1-prod

# Error                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
failed to execute terraform output for the component eks/cluster in the stack plat-ue1-prod. Error: exit status 1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
Error: Failed to install provider                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
Error while installing cloudposse/awsutils v0.19.1: could not query provider registry for registry.terraform.io/cloudposse/awsutils: failed to retrieve cryptographic signature for provider: the request failed after 2 attempts, please try again later: 503 Service Unavailable returned from github.com
The particular PR only changes a component in a different stack. Is there a problem with the terraform registry? Do I need to update the version of awsutils? Or is there something else that could be causing this? Thanks!
✅ 1
Here's the relevant section of my workflow file:
Copy code
permissions:
  id-token: write
  contents: write  # This is required for actions/checkout
  pull-requests: write

jobs:
  atmos-affected:
    if: ${{ !contains( github.event.pull_request.labels.*.name, 'no-plan') }}
    name: Determine Affected Stacks
    runs-on: ubuntu-latest
    steps:
      - id: affected
        uses: cloudposse/github-action-atmos-affected-stacks@v4
        with:
          atmos-version: 1.191.0
          atmos-config-path: .
          base-ref: ${{ github.event.pull_request.base.sha }}
          head-ref: ${{ github.event.pull_request.head.sha }}
    outputs:
      stacks: ${{ steps.affected.outputs.matrix }}
      has-affected-stacks: ${{ steps.affected.outputs.has-affected-stacks }}
Let me know if you need more info. Thanks!
a
looks like GH is having issues now, and the issue might be related to that
👍 1
r
Ah, it was all green back when I checked. It often takes some time before they communicate these things. Thanks
Looks like GitHub is fully operational again, but this job is still failing, albeit with a different error:
Copy code
Error: Failed to install provider                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
Error while installing cloudposse/awsutils v0.19.1: could not query provider registry for <http://registry.terraform.io/cloudposse/awsutils|registry.terraform.io/cloudposse/awsutils>: failed to retrieve cryptographic signature for provider: the request failed after 2 attempts, please try again later: 504 Gateway Timeout returned from <http://github.com|github.com>
This is working now. Just needed both hashicorp and GitHub to be up 🙂
🙌 2
😃 1