limnh / journey

Notes and learnings along the way of becoming an engineer
0 stars 1 forks source link

2019-04-01 #25

Open limnh opened 5 years ago

limnh commented 5 years ago

Where I left off on Friday:

Daily To-Dos:

Issues/Questions:

  1. I accidentally added the iso file to git add, which github did not like.
  2. 1st pomodoro (11:15a-11:45a)
    • how do I set a policy for AWS to ensure the created user only has access to the specified s3 bucket?
    • how do I print aws ls s3 to the CircleCI console?
  3. how do I make sure that my first run isn't an outlier?
  4. There are some wild inconsistencies when it comes to build time, build on friday took ~20 minutes and the one from today took ~2 hours. Is there any way to make this more consistent?

Solutions:

  1. I spent some time during my earlier meeting to sort through getting the commit reverted and fixed.
  2. 1st pomodoro (11:15a-11:45a)
    • I originally looked through the AWS documentation about how to grant access to an s3 bucket. however, I found just creating a policy from scratch was pretty straightforward, so I created the tbw-kvm-guest-s3-access policy and added the tbw-kvm-guest-images-s3 user to it.
    • ~added an "inline": "echo 'aws s3 ls s3://$S3_BUCKET --human-readable --recursive --summarize'" to the packer.json file.~
    • decided it was better to let packer solely build the image, so moved this command to the shell script.
  3. I currently have two successful builds, one from Friday and one from earlier today. I am currently readying my third successful run with updated AWS credentials for the specifically-created user in AWS & policy for the s3 bucket.
    • 2pm PDT: currently have six successful builds with one building currently
  4. Unfortunately, I feel like we're at the mercy of the components needed to build this image (circle, packet, etc.) for now.
    • looking at build times from today, we've seen between 35m to 1.5h
    • 3:30p Packet is having a time right now, so all attempts to spin up a server are timing out
limnh commented 5 years ago

I would like to learn more efficient practices of testing locally.

limnh commented 5 years ago

Questions to continue to mull over: