Skip to content

adding challenge5 solution #1

adding challenge5 solution

adding challenge5 solution #1

Workflow file for this run

Check failure on line 1 in .github/workflows/challenge5.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/challenge5.yaml

Invalid workflow file

(Line: 28, Col: 15): Expected format {org}/{repo}[/path]@ref. Actual 'aws-actions/configure-aws-credentials', (Line: 47, Col: 15): Expected format {org}/{repo}[/path]@ref. Actual 'aws-actions/amazon-eks-action'
on:
push:
branches:
- main
paths:
- challenge5/**
permissions:
id-token: write
contents: read
jobs:
terraform:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./challenge5
steps:
- name: " Github checkout"
uses: actions/checkout@v3
with:
sparse-checkout: challenge4
- name: "configure aws"
uses: aws-actions/configure-aws-credentials
with:
role-to-assume: ${{ secrets.challenge5_arn }}
aws-region: "us-east-1"
- name: "Terraform setup"
uses: hashicorp/setup-terraform@v3
with:
terraform_version: 1.4.1
- name: "terraform init"
run: terraform init
- name: "Terraform format"
run: terraform fmt -check
- name: "Terraform validate"
run: terrafomrm validate
- name: "Terraform plan"
run: terraform plan
- name: "terraform apply"
run: terraform apply --auto-approve
- name: "applying config"
uses: aws-actions/amazon-eks-action
with:
cluster-name: mycluster
command: kubectl apply -f kubernetes/