You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have spin Atlantis as a docker container inside an EC2 instance and it is working fine.
This is the error showing
{"level":"panic","ts":1739965199.8792841,"caller":"atlantis-drift-detection/main.go:148","msg":"failed to drift","error":"failed to find extra workspaces: failed to init workspace /aws/core/prod: \nInitializing the backend...\nInitializing modules...\n- acm_cert in ../../modules/acm-cert\n- alb in ../../modules/alb\n- bemi_instance in ../../modules/ec2\n- dynamodb in ../../modules/dynamodb\n- ecs_cluster in ../../modules/ecs-cluster\n- rds in ../../modules/rds-instance\n- s3 in ../../modules/infra-s3\n- sg in ../../modules/sg\n- vpc in ../../modules/vpc\n:\nError: No valid credential sources found\n\nPlease see [https://www.terraform.io/docs/language/settings/backends/s3.html\nfor](https://www.terraform.io/docs/language/settings/backends/s3.html/nfor) more information about providing credentials.\n\nError: failed to refresh cached credentials, no EC2 IMDS role found,\noperation error ec2imds: GetMetadata, failed to get API token, operation\nerror ec2imds: getToken, http response error StatusCode: 400, request to EC2\nIMDS failed\n\n\n:exit status 1","stacktrace":"main.main\n\t/app/cmd/atlantis-drift-detection/main.go:148\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:271"} panic: failed to drift
The Atlantis is able to plan and apply at its end.
`jobs:
drift:
name: Detect Terraform Drift
runs-on: ubuntu-latest
- name: Detect Drift
uses: cresta/[email protected]
env:
ATLANTIS_HOST: http:/XXXXXX:4141
ATLANTIS_TOKEN: ${{ secrets.ATLANTIS_TOKEN }}
REPO: magnifi-codeverse/platform-engineering-infra # Change this to your repo
GITHUB_TOKEN: ${{ secrets.ATLANTIS_GITHUB_TOKEN }}
`
Only added above part as the action for testing but it is showing the above error.
The text was updated successfully, but these errors were encountered:
I have spin Atlantis as a docker container inside an EC2 instance and it is working fine.
This is the error showing
{"level":"panic","ts":1739965199.8792841,"caller":"atlantis-drift-detection/main.go:148","msg":"failed to drift","error":"failed to find extra workspaces: failed to init workspace /aws/core/prod: \nInitializing the backend...\nInitializing modules...\n- acm_cert in ../../modules/acm-cert\n- alb in ../../modules/alb\n- bemi_instance in ../../modules/ec2\n- dynamodb in ../../modules/dynamodb\n- ecs_cluster in ../../modules/ecs-cluster\n- rds in ../../modules/rds-instance\n- s3 in ../../modules/infra-s3\n- sg in ../../modules/sg\n- vpc in ../../modules/vpc\n:\nError: No valid credential sources found\n\nPlease see [https://www.terraform.io/docs/language/settings/backends/s3.html\nfor](https://www.terraform.io/docs/language/settings/backends/s3.html/nfor) more information about providing credentials.\n\nError: failed to refresh cached credentials, no EC2 IMDS role found,\noperation error ec2imds: GetMetadata, failed to get API token, operation\nerror ec2imds: getToken, http response error StatusCode: 400, request to EC2\nIMDS failed\n\n\n:exit status 1","stacktrace":"main.main\n\t/app/cmd/atlantis-drift-detection/main.go:148\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:271"} panic: failed to drift
The Atlantis is able to plan and apply at its end.
`jobs:
drift:
name: Detect Terraform Drift
runs-on: ubuntu-latest
- name: Detect Drift
uses: cresta/[email protected]
env:
ATLANTIS_HOST: http:/XXXXXX:4141
ATLANTIS_TOKEN: ${{ secrets.ATLANTIS_TOKEN }}
REPO: magnifi-codeverse/platform-engineering-infra # Change this to your repo
GITHUB_TOKEN: ${{ secrets.ATLANTIS_GITHUB_TOKEN }}
`
Only added above part as the action for testing but it is showing the above error.
The text was updated successfully, but these errors were encountered: