This is just a tiny and basic helper package to work with Secrets in AWS.
Download the package or use composer:
composer require jonlink/laravel-aws-secrets
To use this you will need to have AWS credentials. Typically a secret would be created manually and then rotated via a Laravel schedule.
Secrets can created from the AwsSecrets class programmatically, or through the console command:
aws-secret:create {your-secret-name} {optional-secret-value}
Secrets can retrieved from the AwsSecrets class programmatically, or through the console command:
aws-secret:get {your-secret-name}
Secrets can be rotated via a console command:
aws-secret:rotate {your-secret-name} {optional-secret-value}
- In all cases if you do not choose a secret value, one will be generated automatically.