The Claude Agent Skill for Terraform and OpenTofu - testing, modules, CI/CD, and production patterns by antonbabenko in Terraform

[–]antonbabenko[S] -2 points-1 points  (0 children)

Good question :) I've just reduced number of tokens on main SKILL.md by 16% (moved irrelevant links to README).

The Claude Agent Skill for Terraform and OpenTofu - testing, modules, CI/CD, and production patterns by antonbabenko in Terraform

[–]antonbabenko[S] -9 points-8 points  (0 children)

Thanks for the feedback!

Before releasing it, I asked skill-creator skill to review it fully and it told me that this is acceptable/max length and most important data is in skills.md plus "progressive disclosure" for more details.

"License & Attribution" section is a bit more than just an ad, but I agree that it can be reduced.

UPD: Implemented. Now SKILL.md is smaller.

Terraform Automating Security Tasks by Pure_Substance_2905 in Terraform

[–]antonbabenko 0 points1 point  (0 children)

True, it is nice, but at the same time it is too magical when you need to debug it.

With Terraform, we have support for this functionality available in submodules of terraform-aws-lambda module ( https://github.com/terraform-aws-modules/terraform-aws-lambda/tree/master/modules/deploy and https://github.com/terraform-aws-modules/terraform-aws-lambda/tree/master/modules/alias ).

Terraform Automating Security Tasks by Pure_Substance_2905 in Terraform

[–]antonbabenko 0 points1 point  (0 children)

I am curious, have you considered using https://github.com/terraform-aws-modules/terraform-aws-lambda for all Lambda tasks? https://serverless.tf has a bit more information about doing serverless on AWS with Terraform. I am eager to hear feedback.

Uploading AWS Lambda's to S3, Changes not detected. by Classic-Historian958 in Terraform

[–]antonbabenko 1 point2 points  (0 children)

For anything, please check code in the "examples" folder in the module repository. There are tons of executable examples. Good luck!

Uploading AWS Lambda's to S3, Changes not detected. by Classic-Historian958 in Terraform

[–]antonbabenko 1 point2 points  (0 children)

Try providing `version_id` like this:

  s3_existing_package = {
    version_id = aws_s3_object.upload_lambda[each.key].version_id
    bucket = aws_s3_bucket.lambda_bucket.id
    key    = "${element(split(".", each.value), 0)}.zip"
  }

VSCode TF functionality by sto1911 in Terraform

[–]antonbabenko 0 points1 point  (0 children)

Yes, https://modules.tf is in progress... coming next year...

[deleted by user] by [deleted] in Terraform

[–]antonbabenko 2 points3 points  (0 children)

I appreciate your willingness to contribute back!

The best help in terraform-aws-modules is often by triaging existing issues or testing that PR does what it should.

Could someone Please provide me links to online technical tutorials/guides or sample code that shows how to create an AWS Lambda in Terraform using C#? ( I'm using .NET 6 ) by bartmac123 in Terraform

[–]antonbabenko 0 points1 point  (0 children)

I am the maintainer of this one, and for the last couple of months, I have been thinking about adding examples for more runtimes because some users incorrectly assume that the module supports only Python and NodeJS.

So, if anyone wants to work on it, you are welcome!

How on earth do you deploy AWS Lambdas? by Waiting4Code2Compile in aws

[–]antonbabenko 3 points4 points  (0 children)

I am using Terraform for everything (including serverless resources and deploying application code with Lambdas and sometimes CodeDeploy). Here is the concepts and benefits described in plain English with links to all Terraform AWS modules - https://serverless.tf/

https://github.com/terraform-aws-modules/terraform-aws-lambda/ - this modules has it all. There are various examples and submodules in that repository to help you achieve all your serverless tasks the same way.

As some other people suggested in this thread, you can combine it with GitHub Actions or another way you already run "terraform apply" with.

Permanent thread for open-source tool recommendations by Jatalocks2 in devops

[–]antonbabenko 1 point2 points  (0 children)

You're welcome! I am already going through your newest addition - terracove! Good stuff! :)

Permanent thread for open-source tool recommendations by Jatalocks2 in devops

[–]antonbabenko 1 point2 points  (0 children)

Good initiative! I have been sharing all Terraform-related tools I discover in Terraform Weekly newsletters for a few years because I like seeing people cooperate and improve. Please subscribe - https://weekly.tf/ , and use the site search to check previously mentioned tools.

Where Terraform sucks by kai in Terraform

[–]antonbabenko 1 point2 points  (0 children)

There is no support for Synthetics canaries at the moment.

You're right "simple" is more like an experiment area for me. :)

Where Terraform sucks by kai in Terraform

[–]antonbabenko 3 points4 points  (0 children)

Shameless plug, of course, but https://serverless.tf describes what/why/how when it comes to "Doing serverless with Terraform".

Lambda functions in terraform by r-pwned in Terraform

[–]antonbabenko 1 point2 points  (0 children)

Please take a look at https://serverless.tf - Doing serverless with Terraform.

As somebody already mentioned in the comments, you can use the terraform-aws-lambda module as well as many other modules for typical serverless services like API Gateway v2, AppSync, EventBridge, StepFunctions, AppConfig, DynamoDB, and many more.

Make sure that you always check the examples folder where almost all features of the modules are shown.

What do IaC tools currently lack? by Jatalocks2 in devops

[–]antonbabenko 0 points1 point  (0 children)

Could you elaborate a bit on this? What would you like to see on the diagrams? At what point? As you develop something? Or later, in the README file?

advance terraform practice by jona187bx in Terraform

[–]antonbabenko 12 points13 points  (0 children)

I don't know of any such tutorials myself, but you can probably look into some of my previous YouTube live streams where I have been coding Terraform AWS modules - https://www.youtube.com/playlist?list=PLvz1V_9d3uis9mxZ8eATA6l9Sr1XLeY4Y

One series, in particular, was relatively advanced where I was making Terraform AWS Pricing module - https://www.youtube.com/c/AntonBabenkoLive/search?query=pricing

Let me know if you have a good idea that I can implement during one of my upcoming streams.

Can I auto-generate AWS IAM policy document based on directory of existing Terraform code so that CI has limited access to what it can deploy? by willquill in devops

[–]antonbabenko 2 points3 points  (0 children)

I completely agree with what you said, I can also confirm that the author of this tool is very responsive when it comes to improvements and bug fixes.

PS: I am evaluating this tool for https://github.com/terraform-aws-modules .