Business news

Methods To Create Resources In AWS

AWS

We will go over how to create new AWS resources and the options you have available as a DevOps engineer. 

AWS Python Boto3

This is by far the best method in my opinion to manage your AWS resources. Boto3 is a Python library that lets you write code to automate your AWS workflows. A good example of this would be managing an S3 resource which you can find linked below.

Complete Guide To Automatically Manage Your AWS S3 Using Python Boto3

If you are looking to manage another resource you can find more about it in the blog above as it has a great resource set for all AWS services.

AWS Python CDK

Another new approach made by AWS is the Python CDK. Basically, this is very similar to Boto3 but it lets you group and manages all your resources together. The advantage of this is that it lets you set up associations unlike Boto3 which is a single resource based managed manually by you. There’s a good example of a step-by-step guide on how to do this for S3 in the link below.

Complete Guide To Using Python CDK With AWS S3

Terraform Code

Terraform code allows you to create resources using a specially crafted source called Terraform. Terraform scripts let you describe resources similar to the CDK and execute them via a pipeline to create an AWS resource. The files have the extension .tf and can be included in a GIT repository for revisioning.

AWS Web Interface

The web interface while not scriptable lets you create resources using the website. This is straightforward and just lets you have a UI to perform actions. The biggest disadvantage of this is that it cannot be scripted.

AWS Command Line Client

The AWS command line essentially lets you do what the web interface does but from the command line. The difference is that it’s a little harder as you need to pass the right command line arguments for this to execute. Once this is done you can run it in batch mode and script it.

To Top

Pin It on Pinterest

Share This