3 ms·
Terraform modules? In particular, https://github.com/terraform-aws-modules/ https://github.com/terraform-aws-modules/ is a better solution for anyone looking fo
by OJFord 4y ago
Terraform modules? In particular, https://github.com/terraform-aws-modules/ https://github.com/terraform-aws-modules/ is a better solution for anyone looking for this IMO.
(Yes there is a comparison to 'terraform' in the Readme - I'm not convinced it's considering modules, versus just using the AWS provider directly. Another bonus of using tf modules over this: you can eventually realise you need to graduate to using the AWS provider directly, and do so quite easily (cf. `terraform state mv`).)
- mountainriver 4y agoOr better yet Pulumi AWS https://www.pulumi.com/docs/get-started/aws/ https://www.pulumi.com/docs/get-started/aws/
- emptysongglass 4y agoOr even better, Crossplane for auto-reconciling infra: https://aws.amazon.com/blogs/opensource/introducing-aws-blueprints-for-crossplane/ https://aws.amazon.com/blogs/opensource/introducing-aws-blue...
- freeqaz 4y agoWe've had a lot of success using the AWS CDK (our code[0]). We wrote a tonnn of stuff with Terraform back we were building a low-code platform, but it was a ton of work to manage. The AWS CDK has higher level "constructs"[1] that are really nice to use. How does that compare to the state of the world for things like Pulumi or Terraform these days? 0: https://github.com/lunasec-io/lunasec/tree/master/lunatrace/bsl/backend-cdk/lib https://github.com/lunasec-io/lunasec/tree/master/lunatrace/... Any of these files represents the infrastructure. The "bin" folder is the actual entry point. 1: https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecs_patterns.ApplicationLoadBalancedFargateService.html https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_... We're using this as well as the Fargate SQS worker one to scale up backend job processing. Lambda is a pain and this works quite magically.
- happymellon 4y agoWhy change language when you can do the same with Cloudformation? https://github.com/cfn-modules/docs https://github.com/cfn-modules/docs I would personally switch to CDK, but of you wanted to add predefined templates you don't need to switch your existing languages.
- OJFord 4y agoSure, if you're already using it. Greenfield personally I'd prefer Terraform, but each to their own.