<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[cloudaemons - Medium]]></title>
        <description><![CDATA[AWS cloud trainers and architects insights - Medium]]></description>
        <link>https://medium.com/cloudaemons?source=rss----aa7fe3012a3c---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>cloudaemons - Medium</title>
            <link>https://medium.com/cloudaemons?source=rss----aa7fe3012a3c---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 21:33:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/cloudaemons" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[You don’t have to be a trainer]]></title>
            <link>https://medium.com/cloudaemons/you-dont-have-to-be-a-trainer-19db58e37e29?source=rss----aa7fe3012a3c---4</link>
            <guid isPermaLink="false">https://medium.com/p/19db58e37e29</guid>
            <category><![CDATA[mentorship]]></category>
            <category><![CDATA[training]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Piotr Zimoch]]></dc:creator>
            <pubDate>Sun, 24 Jan 2021 18:35:48 GMT</pubDate>
            <atom:updated>2021-01-25T08:25:54.254Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eneEfcT9Dl-LZ09X" /><figcaption>Photo by <a href="https://unsplash.com/@homajob?utm_source=medium&amp;utm_medium=referral">Scott Graham</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>If you are IT specialist, probably one way or the other you are a lifetime learner too. Being a part of our community makes me eligible to state, it is probably one of the most demanding aspects of our work life. There is a part of our community known as <a href="https://www.hanselman.com/blog/dark-matter-developers-the-unseen-99">dark matter developers</a>. But even this group has to get trained from time to time, either learn specification of a new version of their favourite language or learn about new compliance requirements.</p><p>What are the sources that we are learning from? Who is authoring the content? Who it teaching us?</p><h3>Content quality</h3><p>You’re probably learning on a daily basis, by simply googling the problem you have. You might learn from your colleagues or learn from documentation, tutorials, books, podcasts, webinars, other kinds of videos, or on-site (virtual) face to face courses. Most likely there is a couple of other ways that I did not mention. Having such diversity in learning options is an embarrassment of riches. It’s not a surprise that for most of the problems there is more than one solution. However what if there are wrong solutions? Not optimal ones? Overcomplicated?</p><p>Misinformation and content quality is the problem of the information age. Technology is not immune to it. Misinformation is a problem on its own, so complex that I will not even try to reason about it. However, content quality resonates a lot with my profession and my personal interests. I’m an AWS solutions architect at <a href="http://nearform.com/">NearForm</a> and a part-time trainer at C<a href="https://cloudaemons.com/">loudaemons</a>. I’ve run dozens of courses, wrote a couple of blog posts, and even recorded some <a href="https://www.youtube.com/watch?v=SdWZFgi9ktA">webinar</a> recently. The context of this post makes it a bit ironical, but trust me — I know what I’m talking about :) On average, training attendees rank us very high.</p><h4>A good teacher</h4><p>Let’s presume you’ve been given a great slide deck and/or scenario-based practice sessions or anything other that has best in class quality. How easy that would be to conduct training based on those materials? Do you think that everyone with a bit of preparation and domain knowledge could be a successful teacher?</p><p>In the technology space, the challenge with getting the right person in the right place in a teaching role is an even greater problem, than in other spaces. Personally, I think being a techie quite often is not going in pair with great interpersonal skills.</p><h3>Why you could want to become a trainer</h3><p>I can’t talk for others, so let me explain what led me into the training business.</p><h4>Business perspective</h4><p>This is a big one. If you have a bit of entrepreneur spirit you probably wonder from time to time how to start your own business. I have such reflection quite regularly. This is a good thing for me, it motivates me. But having a business does not mean it has to be a full-time job. Although, most people probably will consider scaling up the business once it kicks-off, it might be worth having a second thought and check if you want to be a businessman or a trainer. In Poland, there was a famous case (almost 2 years ago) when a single <a href="https://droganowoczesnegoarchitekta.pl/">training program</a> earned 500.000€ in 8 days. There were many factors to that success, but probably the most important one was that it was marketed and sold not by the training authors, but specialized and experience 3rd party. I can tell you, it was a trigger for hundreds of attempts like that, yet none of those was even close to that success. I wonder if there’s a relationship with the top-notch trainers that authored that training and skills/experience of trainers in the other programs.</p><h4>Career expectations</h4><p>With a couple of years of experience, there are expectations to progress with the career. To grow. The logical step to grow for a technical expert is to share your knowledge, or is it? Quite often, skill matrices in big enterprises have one part in common — a requirement for mentorship and/or being a trainer. This is one of the concepts which I personally dislike and to be honest, I would recommend to remove. It is hard for me to count the number of training sessions I’ve taken part in as an attendee, that was a waste of time. The underlying problem is not with people conducting those courses! Believe me, nobody wants to be bad about what is he or she doing. Quite often trainers have been nominated to that role only because of how good they are in a particular technology. <strong>This is the problem</strong>. Teaching skill is a skill on its own. Very unique and very hard to master. One can say, you have to practice to get better at it. I’d say there is a personality trait, that can be recognized before even starting. Are good line management and mentorship the answer here?</p><h4>Personal brand</h4><p>Once you reach some point in your career it is hard to get promoted. Once you will reach the senior principle position, you can’t go much further unless you’re interested in less technical roles that involve management. As a senior principle in your organization most likely you’ve been recognized as an expert there. What further goals can you set? Of course, become a trainer. How cool is that to put a trainer role into your CV? Even cooler is to share with that your LinkedIn community. I think some people feel more comfortable creating an online training available on youtube than contributing to open source. What do you think, what could give you more points to your personal brand, being an open-source contributor or a trainer?</p><h4>Easy product</h4><p>The fact that it is relatively easy to reach your audience on a global scale, creates a temptation to give it a try and publish your own training on how to build your first <a href="https://aws.amazon.com/getting-started/hands-on/build-serverless-web-app-lambda-apigateway-s3-dynamodb-cognito/module-3/">serverless backend</a> or how to improve your node.js based application throughput. Really, a simple webcam, microphone, and youtube access are “all you need”, to become a public figure. From that point, you’re just one step before publishing your paid training and earn a small fortune!</p><p>I wonder if there is a topic that is not yet covered by random internet guys on youtube. Now, how often that training meet your requirements?</p><h3>Trainer personality traits</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8S8GJlVrmLpDfKAo" /><figcaption>Photo by <a href="https://unsplash.com/@mrthetrain?utm_source=medium&amp;utm_medium=referral">Joshua Hoehne</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Being a trainer is extremely satisfying. Nowadays being a good trainer can be very rewarding. Aside from gratitude from your attendees, good compensation, being a trainer is one of the methods I personally use, to deepen my knowledge. There is no better way to understand technology than trying to explain it. There are <a href="https://teach.com/what/teachers-know/teaching-methods/">different methodologies</a> that can be applied for teaching, some are more suitable for technical training, some are better for young students others can suits well for the online type of learning. No matter which option the trainer selects, there is a couple of personality traits/qualities that will help to be a good trainer.</p><h4>Extraversion</h4><p>If I would have to name one trait, it is being <a href="https://en.wikipedia.org/wiki/Extraversion_and_introversion#Extraversion">extrovert</a>. It groups well many aspects of personality and in the general way of being. Of course, being an introvert is not a blocker — however, it might more challenging for such a person.</p><h4>Confidence</h4><p>It makes a trainer’s life so much easier if your students can trust you. Being confident can sometimes help you to deal with the type of students that <a href="https://unicheck.com/blog/types-of-students">nobody likes</a>. In fact, sometimes it can help to hide your stress or even hide your uncertainty in various situations.</p><h4>Humbleness</h4><p>Something you’ve learned 20 years ago, does not mean it is easy. I’ve met many times this kind of bias when a different type of teachers and trainers assumed something should be obvious. Unfortunately, in those situations, they often forget the effort they had to spent to learn how to solve a given problem. Once you will acknowledge that the fact you can be a teacher now, is not only because of your efforts but the good teachers you had a chance to meet before. Remind yourself of the best teacher you had, and now make all you can, to be remembered the same way by the others.</p><p>This list makes my top 3 of the good trainer qualities. However, no matter how good speaker you are, how entertaining you can be, without deep expertise and understanding of the space you want to teach in, it might be not enough.</p><h3>Side effects</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3z4YVwSqTUIhpUft" /><figcaption>Photo by <a href="https://unsplash.com/@jeshoots?utm_source=medium&amp;utm_medium=referral">JESHOOTS.COM</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>To all I wrote before, in fact — we are all in a great situation. With enough time, you can learn stuff about <a href="https://www.edx.org/learn/quantum-physics-mechanics">quantum physics</a> as well as learn how to <a href="https://www.udemy.com/topic/dog-training/">train your dog</a>. The side effect to this richness is a time lost on reading or listening to the content that has overall poor quality. Frustration coming from this situation quite often is undermining the credibility of others and makes it harder to be noticed by the community for the challengers in the training space.</p><p>It is perfectly fine to try. Frankly speaking without trying you will never know if you will be a good trainer or not. Just be conscious of your decisions and select your career path accordingly to your skills and opinions.</p><p>Now tell me, are you already a trainer or planning to become one? If so, why?</p><h4>Disclaimer</h4><p>This post is not supposed to discourage anyone from anything. All the observations noted in the post are my own.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=19db58e37e29" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cloudaemons/you-dont-have-to-be-a-trainer-19db58e37e29">You don’t have to be a trainer</a> was originally published in <a href="https://medium.com/cloudaemons">cloudaemons</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cloud Architect Fatigue]]></title>
            <link>https://medium.com/cloudaemons/cloud-architect-fatigue-8efa81ef17ba?source=rss----aa7fe3012a3c---4</link>
            <guid isPermaLink="false">https://medium.com/p/8efa81ef17ba</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[thoughts]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[architects]]></category>
            <category><![CDATA[cloud]]></category>
            <dc:creator><![CDATA[Piotr Zimoch]]></dc:creator>
            <pubDate>Sat, 09 Jan 2021 21:37:02 GMT</pubDate>
            <atom:updated>2021-01-09T21:37:02.717Z</atom:updated>
            <content:encoded><![CDATA[<h3>Fatigue</h3><p><a href="https://www.oxfordlearnersdictionaries.com/definition/english/fatigue">fatigue</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*euW7FrtMt4HnOMJJ" /><figcaption>Photo by <a href="https://unsplash.com/@priscilladupreez?utm_source=medium&amp;utm_medium=referral">Priscilla Du Preez</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Backgrund</h3><p>I’m not a retired Information Technology specialist. I cannot tell you I remember the good old time when computers had the <a href="https://simple.wikipedia.org/wiki/ENIAC">size of a room</a>. I can’t tell you also that I loved times when <a href="https://en.wikipedia.org/wiki/C_%28programming_language%29">language C </a>was technological innovation. But what I can tell you is that 15 years ago, the number of technologies on the “market” could fit into a big, but possible to overcome mind map.</p><h4>Before</h4><p>Most of the software engineers that graduated from technical universities had a solid understanding of math, they knew who is <a href="https://pl.wikipedia.org/wiki/Noam_Chomsky">Mr. Chomsky</a>, and most likely created their own compilers for the very basic programming languages. Although I will not say I miss writing C code on the piece of paper, I will tell you it was a nice feeling to have a finite list of skills to possess and a tangible roadmap that lead to the finish.</p><h4>First gig</h4><p>My first gig was very typical — I was asked to create a website. I teamed up, with my friend who was my guru at that time and we have created FlashMX based website with a PHP-baked CMS. You probably know, how hard it is to estimate software. Without providing man-days details, imagine we estimated efforts and agreed on a total price circa 100 euro (divided between two of us). We broke the bank, right? No matter the revenue we’ve got, the value of experience learned in that project is hard to overestimate. It was the time, when I realized, that the software engineering profession will not be piece of cake.</p><h4>Present</h4><p>Being a cloud architect seems to be a sweet spot in IT. The public cloud is a new normal. Infrastructure is abstracted away. Scalability and reliability are managed. You are always close to cutting-edge technologies, and it is up to you to define which technologies you want to work with. <br>Do not forget, compensation is competitive too!</p><p><strong>Dream job!</strong></p><h3>Up to date</h3><p>You can master and be a master in technology. Pick the name of a technology, and you/google will be able to point to a subject matter expert. There are experts in more than one technology too. Can you name a (cloud) architect? Probably you are a great architect, or a friend of yours is one. However, the people which are on your mind will be unconsciously biased into the set of technologies they select for the solutions they design. That is because people are <a href="https://www.psychologytoday.com/intl/basics/bias">biased by design</a>. In this case, it is all about the <a href="http://www.prioritysystem.com/reasons1aa.html">comfort zone bias</a>. It is ok to stay in your comfort zone and develop the software in Java or Node if you are such a software engineer, and you’ve been asked to create software. You might need to read more about <a href="https://nodejs.org/download/release/latest-v15.x/">node v15.15.1</a>, but that is rather expanding your comfort zone than changing it completely.</p><h4>Architectural comfort zone</h4><p>Can you stay in your comfort zone as a solution architect? If you have a hammer everything seems to be a nail. For finite types of workloads, there is the same set of logical blocks that you can put on your high-level architecture diagrams. Is it? If you’re <a href="https://kubernetes.io/">Kubernetes</a> expert with <a href="https://news.ycombinator.com/item?id=23810519">12 years of experience</a>, most likely you will find a way to justify why to deploy your <a href="https://www.jboss.org/">JBoss</a> server, <a href="https://kafka.apache.org/">kafka</a>, <a href="https://cassandra.apache.org/">Cassandra</a>, and <a href="https://www.rabbitmq.com/">RabbitMQ</a> into the cluster. In the end, you can control the infrastructure in one place, right? I presume you know all the tools that I have mentioned. You know also when to use <a href="https://redis.io/">Redis</a> or <a href="https://memcached.org/">Memcachd</a>, why <a href="https://aws.amazon.com/sqs/">AWS SQS</a> is better than *MQ service and which <a href="https://en.wikipedia.org/wiki/Intrusion_detection_system">IPS</a>/<a href="https://en.wikipedia.org/wiki/Intrusion_detection_system">IDS</a> solution to use. <a href="https://aws.amazon.com/certification/certified-solutions-architect-professional/">Want more?</a> <br><strong>You can’t be up-to-date with all the things.</strong></p><h4>Cost</h4><p>You can buy things. Books, training, webinars, articles, podcasts. To learn technology <strong>X</strong>, you will spend $<strong>Y</strong>. To learn <strong>Z</strong> technologies, you will pay <strong>Z</strong> * $<strong>Y</strong>. <br>Most likely, the sum you will have to pay for those things is negligible for you.</p><p>How much worth is your hour? <br>Does the price is the same for you, for your employer, and your family?<br>Is this cost countable?</p><p>The questions above are trivial. Although every one of us has different values and priorities, all of us are connected with time. Unless you are working on the solution to <a href="https://en.wikipedia.org/wiki/Time_dilation">move very fast</a>, at some point in your life you did or you will start thinking about the amount of time you allocate for your profession. I did my math.</p><p><em>As a side not, it is worth to mention there is a second important factor. Your health (which to be fair, can be a game-changer). Burnout can be a serious treat. Do not ignore it.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sxaYqpB67fM3MHQS" /><figcaption>Photo by <a href="https://unsplash.com/@andrewjoegeorge?utm_source=medium&amp;utm_medium=referral">Andrew George</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>10x Architect</h3><p>Someone invented <a href="https://www.7pace.com/blog/10x-engineers">the 10x engineer</a> (harmful?) term. Is there a 10x architect? There are some people that have an aptitude for math, algorithms, and other engineering elements. You can be a fast learner too, but there are limits. The current pace at which software services are being developed makes it impossible to know the names, to not mention understanding them, and have hands-on experience. A few years ago, AWS had a lot of generalist solutions architects. You can imagine that AWS can afford the best in class architects. Best in class architects also fancy working in such brands. <br>And? They (big brands) added a particular type of architecture architects. It is not uncommon to see “containers solutions architects”, “serverless solutions architects”, “big data solutions architects”, etc.</p><p>A couple of years ago I have decided to progress in my career and moved further from a pure development role into an architect role. AWS was already a thing, and AWS Solutions Architect was a way to go for me. Sometime later I’ve managed to get 6 certificates. I was lucky enough to be tasked with appropriate tasks early after my career shift and my theoretical knowledge quickly paid off while on the project.</p><p>I’ve spent <strong>hundreds</strong> of hours learning in the process of certification. <br><strong>Other hundreds </strong>of hours were spent on practicing. <br>Am I done? LOL. Have you seen the <a href="https://aws.amazon.com/blogs/aws/aws-reinvent-announcements-2020/">number of announcements</a> on the re:invent 2020? :)</p><h3>The Plan</h3><p>Am I tired? I think so. Could I be more conscious of how I manage my time? Could I be aware of the traps while learning and avoid a slog just before yet another recertification? I could have been. Why I didn’t? I lacked mentorship.</p><p>Armed with the knowledge and experience, now I can plan it better.</p><ol><li><strong>I can’t stop.</strong><br>As long as I love to architect solutions, I must learn.</li><li><strong>Learn what to learn.</strong><br>I can’t learn all the technologies that someone mention. I can’t learn all the things AWS updates either. Fortunately, cutting edge technologies are in most cases not there yet to recommend, make it a benefit. Select <a href="https://en.wikipedia.org/wiki/Subject-matter_expert">SME</a> in a given space and watch their blog posts, youtube channels, or channels.</li><li><strong>Stay aware.</strong><br>I can read titles. Sometimes it is more than enough.</li><li><strong>Practice the must-haves.</strong><br>Some things must be touched to be understood. Touch the things that are key to your skillset.</li><li><strong>Don’t read/watch all the things.</strong><br>If I got some link once, I will get it again or will find it if needed.</li><li><strong>Trust your teammates.</strong><br>Good teammates cannot be overestimated. Sometimes I can be picky.</li><li><strong>It is my work.</strong><br>Research is a part of my work. I can’t ignore it and I have to be honest with the stakeholders.</li><li><strong>I can know nothing (John Snow).<br></strong>I don’t have to be afraid of not knowing. As long as I accept it and I’m aware of it.</li><li><strong>I will not do it later.</strong><br>I am surprised that bookmarks in my brave browser can handle so much “must-read” links. It is just not working for me and adds frustration seeing such a long list.</li><li><strong>Find a distraction.<br></strong>I can’t circle only between work and family. Meet Dexter below :)</li><li><strong>Experience is my key asset.<br>Full stop.</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*QD8-YVoJJ1gwpKpFOWXdjA.jpeg" /></figure><p>All those points are for me. You might find it helpful, that would be cool, but if this post makes you think, even better. <em>Think for yourself.</em></p><p>Disclaimer:<br>These are my own reflections. Read it with grain of salt. You can disagree, that is fine.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8efa81ef17ba" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cloudaemons/cloud-architect-fatigue-8efa81ef17ba">Cloud Architect Fatigue</a> was originally published in <a href="https://medium.com/cloudaemons">cloudaemons</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why AWS CDK is a thing?]]></title>
            <link>https://medium.com/cloudaemons/why-aws-cdk-is-a-thing-6005832eeb50?source=rss----aa7fe3012a3c---4</link>
            <guid isPermaLink="false">https://medium.com/p/6005832eeb50</guid>
            <category><![CDATA[cloudformation]]></category>
            <category><![CDATA[infrastructure-as-code]]></category>
            <category><![CDATA[aws-cdk]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Piotr Zimoch]]></dc:creator>
            <pubDate>Sat, 02 Jan 2021 16:37:47 GMT</pubDate>
            <atom:updated>2021-01-03T21:05:22.295Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qopD9XCe68YVZrC-" /><figcaption>Photo by <a href="https://unsplash.com/@burntime?utm_source=medium&amp;utm_medium=referral">Alex Kulikov</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In the IaC (Infrastructure as Code) space there are plenty of options. Services like: <a href="https://www.terraform.io/">Terraform</a>, <a href="https://aws.amazon.com/cloudformation/">AWS CloudFormation</a>, <a href="https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/overview">Azure Resource Manager</a>, <a href="https://www.serverless.com/">Serverless Framework</a>, are a daily bread and butter for most <em>(but not limited to)</em> cloud-oriented IT specialist. Those tools are quite often having a different approach and internal design, but the principle is the same — define infrastructure — and let the engine provision it for us.</p><h3>DevOps</h3><p>I hope you agree if I group all of them into a single declarative-like set of tools that are used for infra definition. To be more precise, in this context, “declarative” means that the author defines services, relations, and other properties and let the tool makes the heavy lifting for us and create requested infrastructure. It’s kind of like you would draw your interior design project and ask the builder to create it. In such a case you probably wouldn’t tell him what tools to use, how to paint your wall, and which screw to use for your drawer, right?</p><p>To keep the analogy, now imagine that probably most interior design experts never created a single wall of bricks or suspended ceiling. On the other hand, builders quite often build without having proper design from the designer. Please keep this analogy in your mind for a minute as I will get back to it soon.</p><p>So having defined the declarative nature of the mentioned tools, the other common aspect is the <a href="https://en.wikipedia.org/wiki/Syntax_%28programming_languages%29">syntax</a>. For simplicity, we can limit the available syntaxes to <a href="https://en.wikipedia.org/wiki/YAML">YAML</a>-like syntax and <a href="https://en.wikipedia.org/wiki/JSON">JSON</a>. Having those options available, you can’t be too creative <em>(in comparison to other programming languages)</em>. Fluent <a href="https://en.wikipedia.org/wiki/DevOps">DevOps engineer</a> typically masters YALM/JSON but also knows ins and outs of the given tool. I would not be surprised if the tools’ specification website would be opened more often than Google. In fact, the DevOps profession is <a href="https://medium.com/itrevolution/learning-from-devops-why-complex-systems-necessitate-new-itsm-thinking-4a9aa5c14c18">very complex</a>. As the profession is still relatively new, I don’t know anyone who started his adventure in IT from a DevOps role. What I know is that, quite often if one decided to go that direction, it means all-in from the career perspective.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*6nVsh97lI7PxVhOc" /><figcaption>source: https://acloud.guru</figcaption></figure><p>For the sake of this article, I will ignore the complexity that lays behind the infrastructure being defined and the fact that the DevOps specialist not only codes the IaC part but is one man army. I will also ignore the <a href="https://en.wikipedia.org/wiki/Site_reliability_engineering">SRE movement</a>, where DevOps skills are complementary to development skills and architectural skills.</p><h3>Cloud engineer</h3><p>Now, having said that — businesswise, DevOps could be interpreted as an operational overhead. Having such a role in the team is kind of a must due to the variety of IaC tools, but at the same time, it takes focus away from the business requirements. If we consider market shift into managed services by the cloud providers and the <em>(already)</em> production-grade <a href="https://en.wikipedia.org/wiki/Serverless_computing">serverless</a> services, why can’t we try to focus on what is important in the software industry — and simply deliver functionality. I will not surprise you if I say it is developers, not DevOps engineers who code the functionality in most cases.</p><p>So why not enable developers, to use their skillset to define infrastructure?</p><h3>Stay native, be imperative</h3><p>To do so, first, we have to enable infra creation in the language they use on the daily basis. Well, tools like <a href="https://github.com/cloudtools/troposphere">troposhpere</a> enabled python developers to define infra a couple of years ago already. The challenge is that no matter the tool if it is not supported by the cloud vendor — it will be always lagged — <strong>a lot</strong>. It is a known fact, that new services and features gain IaC coverage from the cloud providers post-factum. Open source or 3rd party tools fall behind even more…</p><p>AWS is customer-centric. In the public cloud space, customers are not only entities like companies. For AWS, Software engineers are the same important <em>(or I wish it would be like that) </em>as executives. It might be an overstatement, but it is engineers and architects that select services that are going to be used. Tools with bad <a href="https://medium.com/swlh/what-is-dx-developer-experience-401a0e44a9d9">DX</a>, will not last on the market too long.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gGJkfJPswJSZcxPt" /><figcaption>Photo by <a href="https://unsplash.com/@sharon_co?utm_source=medium&amp;utm_medium=referral">Sharon Co Images</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>A good developer is a lazy guy. <a href="https://www.forbes.com/sites/forbestechcouncil/2018/01/08/developers-are-lazy-and-thats-usually-a-good-thing/">Lazy in a good way of course</a>. My other observation is that in many cases developers are biased into their comfort zone (well, who isn’t?). In my developers&#39; hat, as a lazy guy that likes to stay in my comfort zone, I would like to treat infrastructure as yet another abstraction that I can create in the programming language I know. I would like to use the same tools that I use for development. So my developer experience should stay at least as it is normally.</p><p>If we connect the dots, it makes perfect sense to satisfy developers and businesses by enabling the development teams to be self-sufficient and have even more “full-stack” responsibility. <a href="https://aws.amazon.com/cdk/">AWS CDK</a> is <em>(or at least is trying to be) </em>the answer.</p><p>Yes, it is an AWS owned project. It is also lagged (escape-hatches available though), it brings its own issues backlog and <a href="https://medium.com/cloudaemons/aws-cloud-development-kit-the-bad-parts-adb0827cbd3b">other</a> problems. But at the same time, it enables developers to define infrastructure, it enables all the features of programming languages including their dynamism, it enables testing of your code, it enables easy abstraction creation. Also if coverage is missing in the CDK and CloudFormation, you can write your own handler for the resource you need.</p><p>Yes, you are vendor locked. But it is <a href="https://aws.amazon.com/blogs/publicsector/busting-the-myth-of-vendor-lock-in/"><em>(sometimes)</em></a><em> a </em>good thing, you know? Having a bug in a terraform module? You fix it or wait for who knows how long for “some good OSS contributor” to fix it. Having a bug in the CDK? Consider opening AWS support ticket. I am pretty sure AWS will fix it asap or will provide you with a workaround.</p><h3>Know your options</h3><p>I’ve told you, that most of the IaC tools are declarative, what about the CDK? Since you use a programming language to define your infrastructure in the CDK, most of the technical community says it is an imperative tool. I would say it is not completely imperative. Keep in mind, in the CDK you instruct the engine on how to generate CloudFormation template which is an intermediate layer between your code and the final infrastructure. <br>Does it matter? I think yes — not the imperative/declarative part, but the fact there is a CloudFormation template that you can always refer to, all fallback to old-school plain CFN development if needed.</p><p>What about that interior design analogy? <br>If it would be possible to give a creative tools belt to builders, it would be so much simpler and faster to build and decor a new house.</p><p>Why? <br>One of the most time-consuming aspects of the project is communication time. No matter if it is a real estate project or IT project. If developers can define the infrastructure they need to handle the logic they are asked to build, the software can be delivered so much faster.</p><p>Is it the end of the DevOps era? Rather not.<br>Is it fit for all solution? Nope.<br>It is worth a shoot? Definitely <strong>yes</strong>.</p><p>For a hello world example, consider reading through <a href="https://cdkworkshop.com/">this workshop.</a> Is it cool? How about <a href="https://github.com/hashicorp/terraform-cdk">Terraform CDK</a> or <a href="https://cdk8s.io/">CDK8s</a>?</p><p>Do you agree that CDK is a thing? Do you have already production grade systems designed with CDK?</p><p><em>Disclaimer:</em></p><blockquote>There are so many over-simplifications in this article that it is hard to count. DevOps engineers are much much more than YAML/JSON experts.<br>Operations are not just overhead. <br>Bugs in your code will not be solved by AWS Support. <br>There might be a synergy effect when you combine DevOps with Developer.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6005832eeb50" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cloudaemons/why-aws-cdk-is-a-thing-6005832eeb50">Why AWS CDK is a thing?</a> was originally published in <a href="https://medium.com/cloudaemons">cloudaemons</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to use the existing S3 bucket for the CDK bootstrap?]]></title>
            <link>https://medium.com/cloudaemons/how-to-use-the-existing-s3-bucket-for-the-cdk-bootstrap-e83504135901?source=rss----aa7fe3012a3c---4</link>
            <guid isPermaLink="false">https://medium.com/p/e83504135901</guid>
            <category><![CDATA[iac]]></category>
            <category><![CDATA[cloud-development-kit]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Piotr Zimoch]]></dc:creator>
            <pubDate>Thu, 04 Jun 2020 15:24:38 GMT</pubDate>
            <atom:updated>2020-06-04T15:24:24.341Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pi3JJrpSz6tmAm4O" /><figcaption>Photo by <a href="https://unsplash.com/@courtneyam98?utm_source=medium&amp;utm_medium=referral">Courtney Moore</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>If you’re reading this post, probably you have been tasked to check how to utilize the existing bucket for the assets that AWS CDK creates?</p><p><strong>TL;DR</strong></p><p>Instead of running cdk bootstrap command, get details of your bucket that you are willing to use, and deploy new stack with the following CloudFormation template in the desired region:</p><pre>Description: &gt;-<br>  The CDK Toolkit Stack. It is mandatory stack, for CDK based apps to work. It<br>  was created by manually and manages resources necessary for managing your<br>  Cloud Applications with AWS CDK.<br>Parameters:<br>  StagingBucketName:<br>    Type: String<br>  StagingBucketDomainName:<br>    Type: String<br>Resources:<br>  CDKMetadata:<br>    Type: &#39;AWS::CDK::Metadata&#39;<br>    Properties:<br>      Modules: aws-cdk=1.42.0<br>Outputs:<br>  BucketName:<br>    Description: The name of the S3 bucket owned by the CDK toolkit stack<br>    Value:<br>      Ref: StagingBucketName<br>  BucketDomainName:<br>    Description: The domain name of the S3 bucket owned by the CDK toolkit stack<br>    Value:<br>      Ref: StagingBucketDomainName</pre><p>Ok, once we know how to do it, let me tell you when you might it.</p><p>In different organizations, there are different rules. CDK is flexible enough to create an infrastructure that will satisfy all the governance rules. BUT, the only not flexible part that I consider problematic, is the cdk bootstrap and the way how it is creating a bucket.</p><blockquote>Bucket created by the bootstrap command is used to store assets generated by the CDK in the cloud, so they are easily accessible by other AWS Services.</blockquote><p>For some reason, <strong>you can’t</strong> import an existing bucket. I imagine that would be a single parameter to add to the CLI, but... it’s not there yet.</p><p><strong>Q</strong>: When would you need to have a predefined bucket?</p><p><strong>A</strong>: When the rules that you’re following requires you:</p><ul><li>To have your bucket named in a predefined way.</li><li>To add custom tags.</li><li>You have simply no access to create S3 buckets.</li></ul><p>To understand how this works, you have to realize, that cdk bootstrap effectively creates a stack named “CDKTookit”, that has two outputs. That’s it. If you need, you can modify provided templated and add whatever resource you might. You have to only follow only 3 rules:</p><ol><li>Keep the stack named CDKToolkit</li></ol><p>2. Output BucketName</p><p>3. Output BucketDomainName</p><p>Thanks for reading, did you find any other limitation in the CDK?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e83504135901" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cloudaemons/how-to-use-the-existing-s3-bucket-for-the-cdk-bootstrap-e83504135901">How to use the existing S3 bucket for the CDK bootstrap?</a> was originally published in <a href="https://medium.com/cloudaemons">cloudaemons</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS Cloud Development Kit — The Bad Parts]]></title>
            <link>https://medium.com/cloudaemons/aws-cloud-development-kit-the-bad-parts-adb0827cbd3b?source=rss----aa7fe3012a3c---4</link>
            <guid isPermaLink="false">https://medium.com/p/adb0827cbd3b</guid>
            <category><![CDATA[cloud-development-kit]]></category>
            <category><![CDATA[infrastructure-as-code]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[aws-cdk]]></category>
            <dc:creator><![CDATA[Piotr Zimoch]]></dc:creator>
            <pubDate>Thu, 28 May 2020 18:57:16 GMT</pubDate>
            <atom:updated>2020-05-28T12:17:48.246Z</atom:updated>
            <content:encoded><![CDATA[<h3>AWS Cloud Development Kit — The Bad Parts</h3><figure><img alt="Street signs, representing wrong way." src="https://cdn-images-1.medium.com/max/1024/0*Ot8VhdYCagLuJqCs" /><figcaption>Photo by <a href="https://unsplash.com/@jamie452?utm_source=medium&amp;utm_medium=referral">Jamie Street</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I’m a big fan of the CDK. It has already simplified the life of many cloud engineers and opened new perspectives on how to define AWS cloud infrastructure.</p><p>If you’re new to the AWS CDK or it’s the first time you read about it, it is an imperative approach to designing infrastructure as code (IaC).</p><p>Simply speaking, you can create your Lambdas, Buckets, CloudFronts, and gazillion other things in one of the available languages, e.g. TypeScript, Python, JavasScript, or .Net.</p><p>The best place to start tinkering with it is the <a href="https://cdkworkshop.com/">https://cdkworkshop.com</a>. If you’re Polish speaker, feel free to read my previous post about AWS CDK: <a href="https://medium.com/cloudaemons/subiektywne-spojrzenie-na-aws-cloud-development-kit-1e5f21f464b8">https://medium.com/cloudaemons/subiektywne-spojrzenie-na-aws-cloud-development-kit-1e5f21f464b8</a></p><p>Well, probably you wonder what are the bad parts, huh?</p><blockquote>Disclaimer: The below points represents my own perspective and are not presented to discourage you from using the CDK, but to share my concerns.</blockquote><h3>First</h3><p>Just go here <a href="https://github.com/aws/aws-cdk/releases">https://github.com/aws/aws-cdk/releases</a>. You see it right? The core team does not follow SemVer, they tend to introduce breaking changes and update only a minor part of the version. Why it’s bad? As it is published on NPM, it is normal to expect correct semantic versioning. If you are creating a module that has CDK as a dependency, you are screwed. Each time there is a new release from the CDK team, you will end up with your own release. I’m not saying it is impossible, it is just a cumbersome process.</p><figure><img alt="Example of breaking changes within the same major version." src="https://cdn-images-1.medium.com/max/1024/1*XM-5ht1gJsxVPQovOu0Z6A.png" /></figure><h3>Second</h3><p>There’s no built-in mechanism to deal with cross-account setups. Of course, there is no OOTB solution for that in plain Cloud Formation either, but with access to higher-level languages, it is definitely feasible. For now, you have to write your own piece of logic to orchestrate cross-account deployments (which is btw. cool to see how powerful and flexible this tool is when you have to create such logic ;)).</p><h3>Third</h3><p>Poor integration with SAM local. Really, logical names in the generated cloud formation templates are kind of random, so it is hard to get the proper name of lambda which we would like to ask SAM local to run for us.</p><p>Next, If you will try to create API Gateway, possibly you will define your API in a form of <a href="https://swagger.io/docs/specification/about/">OpenAPI</a>, which makes your code clean and readable... In that case, you will not be able to run the API locally as that is not supported by SAM.</p><p>Also forget about <a href="https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-apigateway.MockIntegration.html">MockIntegration</a>, as it is another not supported feature.</p><blockquote>Well, this one is not exactly issue of the CDK, but you will have hard times finding the root cause of the issue :)</blockquote><h3>Fourth</h3><p>There’s no public API that you can use to trigger to deploy your app. You must use the <a href="https://docs.aws.amazon.com/cdk/latest/guide/tools.html">CLI</a>. Why it’s a bad part? Think of creating orchestration around it to programmatically deploy your stacks, in Node.js you have to rely on <a href="https://nodejs.org/api/child_process.html#child_process_child_process_execfilesync_file_args_options">process API</a>.</p><h3>Fifth</h3><p>This one is more about the lack of proper standards and guidelines. If you’re going to create sophisticated constructs within other constructs within other constructs, you might be surprised by the implicit CloudFormation limits.</p><p>E.g. It is very easy to reach limits of resources per stack, it is also easy to reach a limit of a resource name, as each resource is prefixed with its parent construct name.</p><p>All the points above are quite subjective, and I will not argue if you say, those are not really bad parts, but missing features or known limitations. Actually, some of those limitations, shows how flexible AWS CDK is. Those issues can be addressed (aside from lack of SemVer, CDK team… really?)!</p><p>Knowing those issues before, would I still use CDK in my projects?</p><p><strong>Definitely, YES!</strong></p><p>What is your experience with CDK? I bet there are other bad parts that you have encountered, If so please, leave the comment below!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=adb0827cbd3b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cloudaemons/aws-cloud-development-kit-the-bad-parts-adb0827cbd3b">AWS Cloud Development Kit — The Bad Parts</a> was originally published in <a href="https://medium.com/cloudaemons">cloudaemons</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Subiektywne spojrzenie na AWS Cloud Development Kit]]></title>
            <link>https://medium.com/cloudaemons/subiektywne-spojrzenie-na-aws-cloud-development-kit-1e5f21f464b8?source=rss----aa7fe3012a3c---4</link>
            <guid isPermaLink="false">https://medium.com/p/1e5f21f464b8</guid>
            <category><![CDATA[infrastructure-as-code]]></category>
            <category><![CDATA[cloud-development-kit]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud-native]]></category>
            <dc:creator><![CDATA[Piotr Zimoch]]></dc:creator>
            <pubDate>Mon, 17 Feb 2020 19:52:00 GMT</pubDate>
            <atom:updated>2020-02-21T07:30:47.412Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Infrastructure" src="https://cdn-images-1.medium.com/max/1024/1*t85ASxOULNceXGZtDC8Lcg.jpeg" /></figure><p>Gdy zaczynałem swoją przygodę z chmurą, jedynym oficjalnym sposobem opisywania infrastruktury w AWS był AWS CloudFormation. <br>Przez kilka lat pracy z chmurą, zdążyłem się z nim nawet zaprzyjaźnić 😍. Teraz przyszedł czas aby dać szansę nowemu, czyli <a href="https://aws.amazon.com/cdk/">AWS Cloud Development Kit</a>. W tym artykule przedstawię wady i zalety nowego narzędzia oraz odpowiem na pytanie czy z CDK też da się polubić.</p><h3>CDK… ale czym właściwie jest CloudFormation?</h3><p>Nie sposób zrozumieć CDK bez choćby podstawowej znajomości usługi AWS CloudFormation. Do końca 2018 roku było to jedyne oficjalne narzędzie służące do zarządzania infrastrukturą jako kod w chmurze AWS. Serwis ten jest kluczowym narzędziem służącym do codziennej pracy programistów i architektów. W deklaratywny sposób umożliwia zdefiniowanie elementów infrastruktury, których potrzebujemy. Taka definicja zapisana jest w postaci szablonu w formacie JSON lub YAML.</p><blockquote>Przykładowy kod oraz jego opis, możesz znaleźć tutaj: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket.html">https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket.html</a></blockquote><p>Następnie, silnik <a href="https://aws.amazon.com/cloudformation/">CloudFormation</a> sam zdecyduje w jaki sposób stworzyć nam pożądaną infrastrukturę. Dzięki podejściu <em>IaC</em> (<em>Infrastructure as Code</em>) w łatwy sposób można powielać istniejące architektury i zapewnić ich reprodukowalność.</p><p>W części projektów AWSowych których miałem okazję pracować, szablony CloudFormation miały poziom skomplikowania podobny do stopnia skomplikowania budowy cepa. Na przykład, na potrzeby umiejętności Alexowej, wystarczy w uproszczeniu (i często jest to wskazane), zdefiniować jedną <a href="https://aws.amazon.com/lambda/">Lambdę</a>, uprawnienia oraz bazę danych <a href="https://aws.amazon.com/dynamodb/">DynamoDB</a>. Całość takiego szablonu to kilkadziesiąt linii kodu.</p><blockquote>Przykład dostępny na platformie github: <a href="https://github.com/deanobalino/alexa-cloudformation-sample/blob/master/cloudformation.json">https://github.com/deanobalino/alexa-cloudformation-sample/blob/master/cloudformation.json</a></blockquote><p>Większość projektów z którymi miałęm do czynienia, była jednak o wiele bardziej zaawansowa i skomplikowana. W rozwiązaniach tego typu, często dobijamy do twardych limitów CloudFormation, a czytelność kodu drastycznie spada, pomimo usilnych starań architektów i programisów.</p><p>AWS CloudFormation nie jest prostym narzędziem. Każdy klocek naszej układanki potrzebuje być jasno i bezpośrednio zadeklarowany. Chcąc wystawić 10 serwerów <a href="https://aws.amazon.com/ec2/">EC2</a> w każdej strefie dostępności, musimy opisać każdy z nich. Serwery wymagają sieci, uprawnień, skalowania…</p><p>Nasza architektura często przewiduje kilka wariacji np. dla środowiska testowego i produkcyjnego. Poleganie na wbudowanych warunkach często <br>nie wystarcza i musimy powielać nasze szablony. Do całości obrazu dochodzą takie koncepty jak makra, niestandardowe zasoby (<em>custom resources</em>) czy zagnieżdżanie stosów.</p><h3>Alternatywy dla CloudFormation</h3><p>Między innymi z powyższych względów, powstały narzędzia open source, które adresują niektóre wspomniane trudności. Dla osób chcących pozostać przy deklaratywnym podejściu do definiowania infrastruktury przykładem może być popularny Terraform. Dla fanów programowania przykładem może być ciekawe narzędzie, którym jest <a href="https://github.com/cloudtools/troposphere">Troposphere</a>.</p><p>Troposphere pozwala na użycie języka wysokiego poziomu jakim jest Python. Pisząc kod w Pythonie definiujemy nasz stos. Jego silnik sam zajmie się wygenerowaniem ostatecznego szablonu CloudFormation.</p><p>Podejście imperatywne w rozwiązaniach typu <em>IaaC</em> ma wiele zalet. Między innymi pozwala testować naszą architekturę w sposób jednostkowy, a także dodaje pewnej dynamiki i wszystkich zalet (i wad) związanych ze składnią danego języka.</p><p>Podążając za trendem i dostrzegając możliwe zalety, AWS stworzył Cloud Development Kit (AWS CDK). Podczas konferencji <a href="https://www.youtube.com/watch?v=Lh-kVC2r2AU">re:Invent 2018</a>, projekt został ogłoszony, natomiast już kilka miesięcy później doczekał się swojej pierwszej stabilnej wersji.</p><h3>Czym jest AWS CDK?</h3><p>AWS CDK jest narzędziem służącym definiowaniu infrastruktury w jednym z dostępnych języków programowania, a następnie po syntezie kodu wynikowego zgodnego z CloudFormation, tworzy nam pożądaną infrastukturę.</p><p>CDK wspiera wiele języków programowania, m.in. TypeScript, Python, Java oraz C#.</p><blockquote>Główną zaletą CDK jest możliwa zwięzłość kodu opisującego rozbudowane architektury.</blockquote><p>Na <a href="https://docs.aws.amazon.com/cdk/latest/guide/home.html">stronie głównej dokumentacji</a>, przytoczony jest przykład, gdzie 20 linii kodu CDK odpowiada ponad 500 linią natywnego szablonu CloudFormation.</p><p>Inne oficjalne CDK zalety to:</p><ul><li>Składnia oraz logika danego języka programowania</li><li>Możliwość użycia paradygmatu programowania zorientowanego obiektowo</li><li>Grupowanie projektu w logiczne moduły</li><li>Udostępnianie i re-używanie kodu w postaci własnej biblioteki</li><li>Testowalność kodu, przy użyciu popularnych narzędzi</li><li>Uzupełnianie składni przez popularne środowiska programistyczne</li></ul><p>Osobiście dodałbym jeszcze dwie zalety:</p><ul><li>Wbudowane wsparcie dla <a href="https://docs.aws.amazon.com/cdk/latest/guide/aspects.html">aspektów</a></li><li>Ułatwione tworzenie własnych <em>custom resources</em></li></ul><p>Aspekty w AWS CDK pozwalają na weryfikację naszej infrastruktury podczas syntezy wynikowego szablonu CloudFormation. Przykładem może być weryfikacja, czy przypadkiem nie próbujemy stworzyć polityki IAM, która będzie zbyt otwarta.</p><p>Pisząc natywny kod CloudFormation konieczność tworzenia <em>custom resources</em>, wiąże się z wyborem języka programowania, w którym go stworzymy. Istotne jest dostarczenie często całej otoczki programistycznej w postaci linterów kodu, bibliotek testowych czy innych zależności. Startując z projektem CDK to wszystko już jest dane, a dodanie takiego <em>custom resource</em> wygląda całkiem podobnie do innych konstruktów.</p><h3>Czym są CDK constructs?</h3><p>Twórcy AWS CDK zdefiniowali podstawowy byt jakim jest konstrukt, aby stworzyć abstrakcję nad każdym elementem budowanej architektury. Konstruktem może być zarówno bucket S3 czy gotowy statyczny serwer webowy z pre-definiowanymi elementami składowymi jak i bucket S3, dystrybucja CloudFront oraz certyfikat SSL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/1*WmGIMtsWiZ1BEYa21sHBYg.png" /><figcaption>Schemat procesu tworzenia infrastruktury. Źródło: <a href="https://docs.aws.amazon.com/cdk/latest/guide/home.html">https://docs.aws.amazon.com/cdk/latest/guide/home.html</a></figcaption></figure><p>Poza możliwością użycia wbudowanych konstruktów, które w większej mierze umożliwiają już odwzorowanie 1 do 1 elementów CloudFormation, możemy tworzyć własne. Przykład z serwerem powyżej to tylko wierzchołek góry lodowej. Dzięki modularyzacji o enkapsulacji naszej logiki, można zdefiniować konstrukty odpowiadające naszym potrzebom biznesowym.</p><h3>Command Line Interface</h3><p>Skoro mamy już wyobrażenie czym AWS CDK jest, warto by wiedzieć jak z nim wystartować. Twórcy zdecydowali się pójść dobrze sprawdzoną drogą i udostępnili interfejs linii poleceń. Każdy programista jest w stanie w kilka chwil zainstalować AWS CDK CLI i wygenerować prosty projekt bazowy. Czy wspomniałem już, że mam nieodparte wrażenie że autorzy są przynajmniej z pochodzenia front-endowcami?</p><p>Do instalacji wystarczy uruchomić polecenie <em>npm</em>:</p><pre>npm install -g aws-cdk</pre><p>Następnie:</p><pre>cdk init — language typescript</pre><p>W rezultacie powstanie nam zestaw katalogów i plików. Główny plik opisujący nasz stos będzie wyglądał mniej więcej tak:</p><pre>import core = require(&#39;<a href="http://twitter.com/aws">@aws</a>-cdk/core&#39;);<br>import s3 = require(&#39;<a href="http://twitter.com/aws">@aws</a>-cdk/aws-s3&#39;);</pre><pre>export class HelloCdkStack extends core.Stack {<br>  constructor(scope: core.App, id: string, props? :core.StackProps){<br>    super(scope, id, props);</pre><pre>    new s3.Bucket(this, &#39;MyFirstBucket&#39;, {<br>      versioned: true<br>    });<br>  }<br>}</pre><p>Wygenerowany kod jest gotowy do zbudowania (inaczej mówiąc — syntezy wyjściowego kodu CloudFormation) i uruchomienia jego w środowisku AWS. Dla uproszczenia pomijam podstawową konfigurację <em>AWS CLI</em> oraz <em>npm</em>.</p><p>Ostatnia komenda potrzebna do stworzenia naszego stosu i wszystkich podległych mu elementów to:</p><pre>cdk deploy</pre><p>Łyk herbaty i nasza pierwsze aplikacja oparta o CDK gotowa do użycia w chmurze. Jak dla mnie proces jest łatwy w zrozumieniu, a Ty jak sądzisz?</p><h3>Czy AWS CDK ma wady?</h3><p>Wprowadzając warstwę abstrakcji, zawsze pojawiają się pewne wyzwania.</p><p>Pierwszym z nich jest potrzeba nauki i poznania kolejnego narzędzia. Pomimo możliwości pisania w znanym nam języku programowania, dalej musimy poznać podstawowe koncepty, architekturę samego rozwiązania czy choćby jakie są dobre i złe wzorce zastosowań.</p><h4>Lista wad AWS CDK:</h4><ul><li>Aktualna architektura, nie pozwala na łatwe uruchamianie naszej infrastruktury na wielu kontach.</li><li>Brak przemyślanego wsparcia dla Continuous Integration, co wymaga od nas sporo pracy aby nasza architektura była zgodna z podstawowymi założeniami AWS Well Architected Framework.</li><li>Pisanie kodu w języku wysokiego poziomu, pociąga za sobą prawdopodobieństwo powstawania typowych <em>bugów</em>. Bez odpowiedniego pokrycia testami jednostkowymi, nasze zmiany mogą być bardziej nieprzewidywalne niż dotychczas.</li><li>W dość łatwy sposób można wpaść w twarde limity dotyczące np. rozmiaru paczki z naszym kodem dla AWS Lambda czy ilości elementów w jednym stosie AWS CloudFormation</li><li>Skoro produkt ten jest wersjonowany, zawsze pozostaje ryzyko utrzymywania odpowiednio wysokiej wersji i radzenia sobie ze zmianami w kolejnych wersjach.</li><li>Łatwość mieszania infrastruktury z logiką biznesową naszej aplikacji.</li></ul><h3>Czy warto dać szansę i zaprzyjaźnić się z CDK?</h3><p><strong>Krótko: Tak.</strong></p><p>Już teraz można z powodzeniem próbować jego sił w prawdziwych projektach. Warto zacząć od zbudowania prostego prototypu, aby upewnić się że podstawowe koncepty są nam znane.</p><p>Kluczowym warunkiem sukcesu w pracy z CDK, jest trzymanie się wszystkich podstawowych <a href="https://aws.amazon.com/architecture/well-architected/">zasad dobrej architektury w chmurze</a> oraz pamięć o jego wadach i ograniczeniach.</p><p>Od momentu gdy wejdziemy w świat definiowania infrastruktury kodem wysokiego poziomu, wszystkie nasze wyzwania możemy odpowiednio zaadresować jeszcze jednym warunkiem, jeszcze jedną funkcją, …a problemy wynieść na wyższy poziom 😎</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e5f21f464b8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cloudaemons/subiektywne-spojrzenie-na-aws-cloud-development-kit-1e5f21f464b8">Subiektywne spojrzenie na AWS Cloud Development Kit</a> was originally published in <a href="https://medium.com/cloudaemons">cloudaemons</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>