{"id":11,"date":"2022-01-26T02:16:37","date_gmt":"2022-01-26T02:16:37","guid":{"rendered":"https:\/\/blogs.oregonstate.edu\/teeterglass\/?p=11"},"modified":"2022-01-26T02:16:37","modified_gmt":"2022-01-26T02:16:37","slug":"week-4-standing-on-the-gas","status":"publish","type":"post","link":"https:\/\/blogs.oregonstate.edu\/teeterglass\/2022\/01\/26\/week-4-standing-on-the-gas\/","title":{"rendered":"Week 4.  Standing on the gas"},"content":{"rendered":"\n<p>We&#8217;re into Week 4 and the project and the conversations are really starting to click.  <\/p>\n\n\n\n<p>I&#8217;ve been focused on the last week on getting the landing page sorted out and dealing with getting images loaded into S3.  <\/p>\n\n\n\n<p>I am constantly amazed at how deep and dark the AWS hole can be and how long it takes to learn everything.  I have setup S3 before in web app and thought it would be no sweat, but then I decided to update to the V3 of the SDK.  Of course that brought a whole new level of confusion about what to import and how the specific functions worked.  Plus, I split the &#8220;service&#8221; out as a separate class so that my team could use the S3 image uploader where ever they would like.<\/p>\n\n\n\n<p>It all worked great.  But then came the deployment to the real world.  And of course it doesn&#8217;t work because I had setup the S3 bucket to host the pictures as a static website and created an alias in route 53 so I could display the images using &#8220;http:\/\/siteimages.farmwork.us\/imageid.jpg.&#8221;  However, I set the rest of the site up as https.  So.  Chrome auto corrects those http links to https and then they don&#8217;t find a home.<\/p>\n\n\n\n<p>I ended up setting up a Cloudfront distribution in the mean time for siteimages.farmwork.us and pointed it to the S3 bucket.  So it is happy now.  But its kinda dumb to have a Cloudfront bucket only point there.  So later in the project, I will update it so the Cloudfront points to our EC2 instances for anything other than farmwork.us\/images and have that routing point to the S3 bucket.  I can then make the S3 bucket only &#8220;accessible&#8221; by the Cloudfront distribution so it is a little more locked down as well.  <\/p>\n\n\n\n<p>Onwards and upwards!<\/p>\n\n\n\n<p>Till next time devoted readers.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;re into Week 4 and the project and the conversations are really starting to click. I&#8217;ve been focused on the last week on getting the landing page sorted out and dealing with getting images loaded into S3. I am constantly amazed at how deep and dark the AWS hole can be and how long it [&hellip;]<\/p>\n","protected":false},"author":11914,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-11","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.oregonstate.edu\/teeterglass\/wp-json\/wp\/v2\/posts\/11","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.oregonstate.edu\/teeterglass\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.oregonstate.edu\/teeterglass\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/teeterglass\/wp-json\/wp\/v2\/users\/11914"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/teeterglass\/wp-json\/wp\/v2\/comments?post=11"}],"version-history":[{"count":1,"href":"https:\/\/blogs.oregonstate.edu\/teeterglass\/wp-json\/wp\/v2\/posts\/11\/revisions"}],"predecessor-version":[{"id":12,"href":"https:\/\/blogs.oregonstate.edu\/teeterglass\/wp-json\/wp\/v2\/posts\/11\/revisions\/12"}],"wp:attachment":[{"href":"https:\/\/blogs.oregonstate.edu\/teeterglass\/wp-json\/wp\/v2\/media?parent=11"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/teeterglass\/wp-json\/wp\/v2\/categories?post=11"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/teeterglass\/wp-json\/wp\/v2\/tags?post=11"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}