DEV Community

Cover image for AWS Digest nr 3
Davide de Paolis for AWS Community Builders

Posted on

AWS Digest nr 3

Amazon States Language

If you have ever worked with StepFunctions you have definitely realised how ASL ( a JSON-based, structured language used to define your state machine ) is not such a pleasant experience.

You can use Workflow Studio of course, but I generally don't like clicking around in the AWS UI Console that much.

Last week I found out this interesting project on github that allows you write your state machines in Typescript.
Haven't tried it yet, but if you are already using TS to describe your Stack with AWS CDK it might provide an easier learning curve in the adoption of StepFunctions for your processes.

You can try out the TS2ASL in this playground app.

In the meantime you can use Visual Studio Code AWS Toolkit to write ASL ( with snippets and templates) and visualise the Graphs. Eagerly waiting for such functionality in IntelliJ.

ASL graph

Sustainability, Energy prices and Polar Bears

I was reading a discussion in the AWS Community Builders Slack that caught my attention

In the context of higher energy costs (at least in Europe) do you think AWS will increase prices in any regions?
I’m asking because there are some companies that already said that they will increase their prices.

Then found out about the plans from AWS to switch entirely to 100% renewable energy by 2025 and that you can even [determine your carbon footprint]((https://aws.amazon.com/aws-cost-management/aws-customer-carbon-footprint-tool/) (in relation of AWS Services use from your applications, of course).

Later on this week my selective attention brought me to an interesting article by Jeremy Daly about the possible (good) impact that a serverless approach in architecting our applications could have on the environment!

State of AWS Security

Did you know that 75 percent of IAM users have an active access key that’s older than 90 days.?

and that 2 percent of all S3 buckets are publicly exposed?

I didn't, until I read this report from DataDog who
took a closer look at various types of misconfigurations that
unintentionally expose sensitive resources publicly and
contribute to the most common causes of security breaches
.

Very interesting, and somehow scary, read. Highly recommended.

CDK Best practices

Useful tips and best practices list about AWS CDK,
https://www.ranthebuilder.cloud/post/aws-cdk-best-practices-from-the-trenches

I have been using CDK in last couple of years, but I must say that never really explored custom construct that much, found very interesting the approach mentioned in the article

I also share the same sentiment about CDK tests:

Use AWS CDK tests to ensure vital resources are not deleted, and meaningful resource connections remain intact.

This is definetely something I need to remember :
Avoid changing the logical id of stateful resources.

Top comments (0)