thirdmadman / rsschool-devops-course-tasks

GNU General Public License v3.0
1 stars 0 forks source link

Task 1 Deploy PR #2

Closed thirdmadman closed 1 month ago

thirdmadman commented 2 months ago

Evaluation Criteria (100 points for covering all criteria)

  1. MFA User configured (10 points)

    • Provide a screenshot of the non-root account secured by MFA (ensure sensitive information is not shared).

image

  1. Bucket and GithubActionsRole IAM role configured (30 points)

    • Terraform code is created and includes:

      • A bucket for Terraform states
      • IAM role with correct Identity-based and Trust policies

      You cand find code for creatig bucket and role in subdirectories: task_1/github-role and task_1/s3-bucket-backend

  2. Github Actions workflow is created (30 points)

    • Workflow includes all jobs

    You can find workflow in .github/workflows/terraform-chek-plan-apply.yaml

  3. Code Organization (10 points)

    • Variables are defined in a separate variables file.
    • Resources are separated into different files for better organization.

    Across repo I tried to separate Terraform files to separate resources such as provider.tf, variabels.tf, terraform.tfvars

  4. Verification (10 points)

    • Terraform plan is executed successfully for GithubActionsRole
    • Terraform plan is executed successfully for a terraform state bucket
  5. Additional Tasks (10 points)

    • Documentation (5 points)
      • Document the infrastructure setup and usage in a README file.
    • Submission (5 points)
    • A GitHub Actions (GHA) pipeline is passing

    To check fact that GHA pipeline is passing, you can look at 1e1d03d or in Actions of this repo.

image