{"slug": "symfony-8-aws-secrets-bundle", "title": "Symfony 8 AWS Secrets Bundle", "summary": "This article introduces a new Symfony 8 bundle that integrates with AWS Secrets Manager, allowing developers to use encrypted secrets as parameter values in the Symfony service container. The bundle supports multiple authentication methods, including AWS profiles, long-term credentials, and temporary STS tokens, and can fetch individual JSON keys from secrets. The author also shares that their previous Symfony 5/6 version received over 210,000 downloads despite minimal feedback, encouraging users to star open-source libraries to show maintainers their work is valued.", "body_md": "My previous bundle that supported Symfony 5 and 6 was downloaded over 210.000 times, so it looks like it was useful. :D I've decided to publish an updated one that follows new Symfony bundle architecture as a separate library. More in the second part of this article.\nAnyway...\nGitHub: https://github.com/constup-foss/symfony8-aws-secrets-bundle\nThis bundle allows you to use secrets stored in AWS Secrets Manager as parameter values in your Symfony 8 service container. If you are using AWS Secrets Manager to store encrypted secrets with access control that limits who (or what application) can see and use them through IAM roles, this bundle is for you.\nIt supports several methods of authentication:\nby loading a profile from your ~/.aws\ndirectory\nby using long-term credentials (AccessKeyId\nand SecretAccessKey\n) from your AWS IAM user\nby using temporary AWS STS tokens\nUsing it is very simple and does not require any additional programming from your part. Just set a value of a desired environment variable to the name of your AWS secret, use the provided env var processor to process that environment variable in your service container and you are ready to use the value. That's it.\nThe bundle supports using an endpoint to connect to AWS. Useful if your AWS connection is behind your corporate infrastructure or if you want to perform integration tests on something like LocalStack. It also supports fetching individual JSON keys from your AWS secret. Just name the key after the name of the secret when assigning a value to your environment variable.\nComplete documentation is available in the repository including:\nA practical step-by-step example how to use the bundle to load database connection credentials in DoctrineORM;\nHow to use the bundle in different environments (bare metal, docker, AWS CodeBuild pipeline)\nMy original AWS Secrets Bundle (https://github.com/constup-foss/aws-secrets-bundle) was published in August 2021 for Symfony 5. It was just something that I needed for my job at the time and decided to publish it. Apart from just a couple of pull requests, mainly to support Symfony 6 and later 7, there wasn't much feedback. Barely any GitHub stars (11 in total, mostly from my friends), barely any issues. I honestly thought that no one uses it, and since I've mostly moved my work to Node and TypeScript, I just forgot about it.\nFast forward 4 and a half years. I've logged in to Packagist to add a new composer library. No one really logs in to Packagist unless they need to publish something. When you do, the statistics are on a page that you don't need to visit. But, I was in a \"cleanup mode\"... cleaning up old and obsolete repositories, separating my GitHub account to my personal one and one for FOSS,... so I needed to see if I need to deprecate or delete some libraries.\nAnd the number of was simply there: 212.549 downloads.\nI have abandoned the project a long time ago simply because there was no indication that anyone was using it.\nSo, if you are using a library, consider sending a star. It's not about vanity, it's not even about showing gratitude. It's about letting library maintainers know that their work is used so that they don't abandon it thinking that no one does... just like I did.\nSymfony made a library to help with this: https://github.com/symfony/thanks\nRequire it in your projects as a dev dependency and do composer thanks\n. It will send stars to libraries that your project is using.\nAnyway... That's it for now. I hope my bundle serves you well. And don't forget to star it ;)", "url": "https://wpnews.pro/news/symfony-8-aws-secrets-bundle", "canonical_source": "https://dev.to/nikolastojilj12/symfony-8-aws-secrets-bundle-2nop", "published_at": "2026-05-23 18:26:31+00:00", "updated_at": "2026-05-23 18:31:50.266303+00:00", "lang": "en", "topics": ["developer-tools", "cloud-computing", "open-source", "enterprise-software"], "entities": ["Symfony", "AWS Secrets Manager", "AWS IAM", "AWS STS", "LocalStack", "GitHub"], "alternates": {"html": "https://wpnews.pro/news/symfony-8-aws-secrets-bundle", "markdown": "https://wpnews.pro/news/symfony-8-aws-secrets-bundle.md", "text": "https://wpnews.pro/news/symfony-8-aws-secrets-bundle.txt", "jsonld": "https://wpnews.pro/news/symfony-8-aws-secrets-bundle.jsonld"}}