hackforla / devops-security

Management of Hack for L.A.'s AWS IAM resources
https://github.com/orgs/hackforla/projects/73/views/4
MIT License
0 stars 12 forks source link

Fix authentication error on the plan GitHub Action #23

Closed chelseybeck closed 6 months ago

chelseybeck commented 7 months ago

Overview

We need to fix an error that is keeping Terraform Plan from running, so that ????

Details

There is an error when the action is run. Run aws-actions/configure-aws-credentials@v4

Error: Credentials could not be loaded, please check your action inputs: Could not load credentials from any providers

Action Items

Resources/Instructions

https://github.com/hackforla/devops-security/actions/runs/8345911119/job/22911603189

chelseybeck commented 7 months ago

It's at version 4, so version isn't the issue https://github.com/aws-actions/configure-aws-credentials

freaky4wrld commented 6 months ago

@chelseybeck I was just taking a look over the issue....

if we are using devops-security-gha then don't you think that in the terraform-plan.yaml file the aws-region should be

        aws-region: us-east-1

instead of us-west-1 as for the above user it is set to us-east-1

Also I was trying to test on my local repo, just want to ask for where I can find these tokens on aws

Do I have to add those two in my local repo secrets, along with the GITHUB_TOKEN

chelseybeck commented 6 months ago

@freaky4wrld apologies for the late response. our aws region should be us-west-2 for everything

chelseybeck commented 6 months ago

Closing this as we found that the issue was w/ branch protections. Thanks @freaky4wrld