Pre-work Checklist: DevOps-Security-Member: Marco Calderon
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 40/100
Línea de trabajo
This is an onboarding checklist for the devops-security team. Follow the linked CONTRIBUTING.md file and AWS documentation to set up an AWS account, configure IAM, install AWS CLI and Terraform, and clone the repository. The final task is to edit the aws-user.tf file in the terraform directory to add your IAM user module, then run terraform commands to apply the changes. 'Done' means all checklist items are completed and a pull request is submitted with your user addition.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Prerequisite
We are looking forward to having you on our team. Please ensure you have prior experience with the HfLA website team before contributing to our repository.
Overview
As a new member on the HfLA devops-security team, fill in the following fields as you complete each onboarding item.
Special Notes
- Keep this issue open until you've completed all steps, including learning to provide updates for longer tasks.
- Normally, handle one issue at a time, but this one is an exception as it teaches how to manage multiple tasks.
- Work on action items sequentially, but proceed if possible. For example, set up your dev environment without waiting for the weekly meeting.
Action Items
-
Before starting to work on the below instructions, make sure to join the #ops Slack Channel. And are a member of
devops-securityrepository. -
Self-assign this issue (gear in right side panel).
-
Select a role label (gear in label section on the right). They begin with "role:". This should be what you want to do in the DevOps CoP
-
Change the issue status to 'in progress' (right side panel).
-
Add this issue to the Project Board CoP: DevOps: Project Board - under the Projects section (gear in right side panel).
-
Attend the weekly DevOps CoP team meeting. See CoP Meetings on the wiki for the time, which weeks we skip, and how to get onto the calendar invite.
-
Complete the steps in Creating a personal AWS account and Login as root user & setup MFA.
-
Read and follow the instructions in Setting up IAM and AWS CLI for:
- Creating an IAM User
- Creating an IAM Group
- Attaching IAM user to IAM Group
- Providing
AdministratorAccesspolicy to IAM group - Log in as the newly created user instead of continuing to log in as the root user (it is not recommended to login with root access).
- Generating user access keys
-
Complete the instructions in AWS Documentation and choose your operating system to install AWS CLI.
-
Complete the instruction in AWS Documentation to setup the AWS CLI.
-
Follow the instructions in Creating a backend state to create the S3 bucket and DynamoDB table.
- Create the S3 bucket
- Create the DynamoDB table
-
Install Terraform locally by following the instructions of the installation guide mentioned in Installing Terraform
-
Install Terraform Docs locally by following the instructions of the installation guide mentioned in Installing Terraform docs
-
Complete the instructions in Clone the repository
-
Submit a new request to create new AWS user account and then self-assign this issue.
-
Create a new branch from main by executing the command
git checkout -b issue-number-add-new-iam-user -
Navigate to the
aws-user.tffile and add your user information to the end of the file following the below template.# Replace USERNAME with your GitHub handle module "iam_user_USERNAME" { source = "./modules/aws-users" user_name = "USERNAME" # Replace with GitHub handle user_tags = { "Project" = "devops-security" "Access Level" = "1" } user_groups = ["read-only-group"] } -
In your code editor navigate to
terraformdirectory.cd terraform
Note: You must be authenticated to your AWS account via the CLI for the next commands to work. The above instructions for setting up the CLI will guide you through this process. To check to see if you are authenticated, run aws sts get-caller-identity. You should get a response like:
{
"UserId": "ABCDEFGHIJKLMNOPQRSTU",
"Account": "012345678910",
"Arn": "arn:aws:iam::012345678910:user/USERNAME"
}
If you are unable to authenticate from your local machine using the CLI, post in the #ops channel in Slack so that the team can help you get unblocked.
- Execute the command
terraform initto initialize terraform in the directory. Address any failures that arise (if any). - Execute the command
terraform planthis will output a plan replicating the same IAM resources as the devops security account. Address any failures that arise (if any). - Then execute the command
terraform applythis will create all of the resources that are currently managed by Devops Security. All of the resources created here incur zero cost except for the Dynamo DB installation, which should remain in the free tier. **- If you have cost concerns, Run a Terraform Destroy to take down all of the resources you created (don't worry, you can recreate them just as quickly). If you create resources outside of what's described in this issue, you may incur charges.
- Update the README using Terraform Docs to document changes
-
terraform-docs -c .terraform.docs.yml .
-
- Once you have tested your changes, stage them in git with
-
git statuscommand. - then
git add path/to/file(you can copy from above output for the file path).
-
- Commit the changes by executing
git commit -m "brief description of changes". - Push the changes with
git push --set-upstream origin name-of-branch
- Lenguaje dominante
- HCL
- Estrellas
- 1
- Forks
- 14
- Merge medio
- 1 h 3 min
- PR fusionados (30 d)
- 23
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de hackforla/devops-security
-
complexity: small feature: security role: DevOps Engineer size: 2pt
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
hackforla/devops-security#203 ·
-
complexity: small feature: security good first issue role: DevOps Engineer size: 0.5pt
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
hackforla/devops-security#202 ·
-
Bump configure-aws-credentials to v6 and dflook/terraform-* to v3 in the Terraform workflows Abiertocomplexity: medium feature: maintenance role: DevOps Engineer size: 2pt
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
hackforla/devops-security#170 ·
-
Create new AWS User Account Abiertocomplexity: small feature: AWS user request role: DevOps Engineer size: 1pt
hackforla/devops-security#198 · 1 asignado ·
-
complexity: prework Feature: Onboarding/Contributing.md role: DevOps Engineer role: missing size: 1pt
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
hackforla/devops-security#195 · 1 asignado ·
Todos los issues de hackforla/devops-security
Issues similares
-
core dependencies
Dificultad 1/5 Menos de una hora Aptitud para principiantes 80/100
-
bug github_actions
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
registrystack/registry-stack#1393 ·
-
module: core
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
bigbluebutton/bigbluebutton#25849 ·
-
bug engine
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
rocky-data/rocky#2181 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100