Posts

Showing posts from April, 2020

Python AWS CDK: Creating a Trail in CloudTrail

CloudTrail is a very useful tool in AWS especially for more sensitive environments where logging is essential. AWS CDK is a great tool that lets you create your stack by writing actual code instead of writing YAML or JSON files. What happens when you combined the two? Well, right now CDK's CloudTrail support is in developer preview so accomplishing some of the things you might want gets a little tricky. Let's run through a few things and see what CDK supports and where you have to fall back to the Cfn* functions. aws_cdk.aws_cloudtrail.Trail The basic construct for creating a Trail in CloudTrail is using the Trail construct. This has some basic support for creating a trail. Here is an example of creating a basic Trail using CDK: from aws_cdk import core, aws_cloudtrail ...     trail = aws_cloudtrail.Trail(       self,  "MyTrail",       management_events=aws_cloudtrail.ReadWriteType.ALL     ) In the above example, we let CDK do a lot of the m

Is AWS CDK Ready?

Image
Short answer: no Not quite as short answer: you can make it work especially for simple use cases Long answer: well... Buckle up... I've recently had the opportunity to use AWS CDK quite a bit at work to help support parts of our data pipeline. This has afforded me the opportunity to use many parts of AWS CDK. While I haven't used all of it and I cannot claim to be an expert with it, I think my experience with it could shed some light on the tool and help you know more about it before diving in yourself. AWS CDK AWS Cloud Development Kit, or CDK, is a toolkit developers can use to define their AWS stack using actual code. Instead of being a YAML file developer, you can be a stack developer in one of the languages they support (as of writing that's JavaScript, TypeScript, Python, Java, and C#). For some, that may be reason enough to switch to CDK, but CDK isn't all rainbows and butterflies. Let's dive in and talk about the good and the bad as it currently

What You Can Do

Image
Do you have any idea how much you're capable of? Wait, me?! Nah, no way man. I can't do that! Do you have any idea what your coworkers are capable of? Wait, you mean HIM?! That's almost laughable. He'd never be able to do that! But really. Do you really know how much you're capable of? Do you ever look around you and consider just how amazingly capable your coworkers are or can be? Growing up, my dad always told me that I could be whatever I wanted to be in life. While I never became the doctor, lawyer, revolutionary scientist, or astronaut my boyhood mind might have imagined at one point or another, the lesson has stuck with me throughout  my life. Through various experiences in my life, I've come to learn that you really can do whatever you put you mind to. You are in-charge of your own destiny. I like what the above quote from Ralph Waldo Emerson teaches. That is that you can learn, you can improve, and you can change. While human