My Experience
Terraform example 1: Hetzner DNS via Terraform
How to configure DNS records programmatically - My article is here https://www.exploit.cz/hetzner-dns-via-terraform/
- using advanced TF model - Terraform modules (reusable code) https://www.terraform.io/docs/modules/index.html
- state in S3 bucket (AWS)
- using remote Terraform state for IPv4/IPv6
- using docker-compose (no local Terraform installation needed)
Terraform example 2: Create your own Kubernetes Cluster in Hetzner Cloud
Link to my Github https://github.com/insekticid/docker-terraform-hcloud-example/tree/rancher2-deploy/terraform
Solution is now obsolete (2 years old), but it could be useful for someone as a starting template.
Terraform example 3: Autogenerate LoadBalancer config for Nginx
https://www.exploit.cz/autogenerate-nginx-loadbalancer-config/
----
Gitlab CI
- Customized deployment template for static js app build served from AWS S3 bucket via AWS CloudFlare
https://gist.github.com/insekticid/566cdeb7a87d5cd8c344890e347eb376
Better option for now is Gitlab Autodevops - no more work needed here, if you are using Kubernetes
https://docs.gitlab.com/ee/topics/autodevops/
https://gitlab.com/gitlab-org/gitlab-foss/-/blob/master/lib/gitlab/ci/templates/Auto-DevOps.gitlab-ci.yml - Updated code in Gitlab will be compiled on AWS Code Build and Gitlab pipeline will get current build log from CodeBuild and will finish after CodeBuild is done. (you can build on AWS your .NET Framework apps on Windows Server)
https://gist.github.com/insekticid/d5a499bfe10236a630440db91bd87e00
Elasticsearch
I made a Docker init container with CZ/SK Hunspell for ElasticSearch.
https://github.com/insekticid/elasticsearch-hunspell/blob/master/Dockerfile

Some examples, how I use ElasticSearch - e.g. node.js sitemap generator from ElasticSearch
https://gist.github.com/insekticid/452fc7e5619d3a2dff2d9c6d924c50b9
In my Symfony app I am using forked https://github.com/FriendsOfSymfony/FOSElasticaBundle (official version is not compatible with Symfony 5)
My article how to use multiple ElasticSearch indexes in Symfony App
https://www.exploit.cz/how-to-search-across-multiple-elasticsearch-indexes-with-symfony-fos-elasticabundle/
But in new project I started with https://github.com/jolicode/elastically
Trimmed schema is here https://gist.github.com/insekticid/452fc7e5619d3a2dff2d9c6d924c50b9#gistcomment-3390059
PHP Symfony Search Code example https://gist.github.com/insekticid/452fc7e5619d3a2dff2d9c6d924c50b9#gistcomment-3390088
PHP Symfony Esi Cache debug https://www.exploit.cz/resolve-not-working-symfony-esi-ssi-caching/
Contribution work
Symfony patches
- https://github.com/symfony/symfony/pull/25841/files
- https://github.com/symfony/symfony/pull/22265/files
- https://github.com/api-platform/core/pull/1037/files
Other