hashicorp / hashicorp/setup-terraform

Need some help

Open
#396 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.6k
Forks
288
Avg merge
23h 21m
Merged PRs (30d)
3

Description

i am trying to create a new workflow to do a fmt and a plan but the init is failing
this is my code
name: Terraform plan

on:
pull_request:
# Sequence of patterns matched against refs/heads
branches:
- main

jobs:
terraform_pr:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v4

- name: Set up AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }}
aws-region: eu-west-2
- uses: hashicorp/setup-terraform@v3

- name: Terraform fmt
id: fmt
run: terraform fmt -check
working-directory: terraform/
continue-on-error: true

- name: Terraform Init
id: init
run: terraform init
working-directory: terraform/

- name: Terraform Validate
id: validate
run: terraform validate -no-color
working-directory: terraform/

- name: Terraform Plan
id: plan
run: terraform plan -no-color
working-directory: terraform/
continue-on-error: true

this is the error
https://github.com/mk1micros/awsbuild/actions/runs/7932809272/job/21660109945?pr=44

where am i going wrong?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.