Amiga500
Amiga500

Reputation: 6131

Ways to Script creation of AWS resources

What would be the easiest way to script creation of AWS resources.

Currently, I have several SQS'es and Lambdas. Ideally I would like to have it scripted somehow, so we could easily deploy it. I do know about Terraform, but I not sure I would want that.

Upvotes: 1

Views: 492

Answers (3)

Junaid
Junaid

Reputation: 1004

A simpler solution to manage just the Lambdas is to use AWS Chalice. It can create Lambdas, API Gateway, CloudWatch triggers. It can also create triggers for SQS, and SNS for your Lambda functions but can not create SQS queue or SNS topics.

This way you can deploy Lambdas incrementally. CD tools can be set up for automatic deployments as well.

Upvotes: 1

jarmod
jarmod

Reputation: 78793

There are lots of options in the 'infrastructure as code' space: CDK, CloudFormation, Terraform, Troposphere, Chalice, Serverless, and more.

For one opinion, see Forming Serverless Clouds with AWS: CloudFormation, SAM, CDK, Amplify.

Upvotes: 2

Thales Minussi
Thales Minussi

Reputation: 7235

The Serverless Framework may be what you're looking for.

I have used it extensively in both personal and professional projects and it does just what I need. It's much easier than Terraform and AWS SAM.

All you need to do is modify a serverless.yml file. A few lines of .yml code translate into hundreds of lines in a CloudFormation template.

There are a couple of crash courses on The Serverless Framework around the web, including some very good ones on Udemy. However, The Serverless Framework is easy to pick up, so if you create a function every now and then you should get used to it rather quickly. Their documentation is also very good.

Here's an example of how to manage your SQS queues (since you mentioned SQS on the original question)

Upvotes: 1

Related Questions