I'm trying to create the APP_KEY via AWS CDK but I don't think there is a relevant Construct to do this.
I tried this:
APP_KEY: ECSSecret.fromSecretsManager(
new Secret(appRepoStack, 'APP_KEY', {
generateSecretString: {
secretStringTemplate: JSON.stringify({}),
excludePunctuation: true,
includeSpace: false,
passwordLength: 32,
generateStringKey: 'APP_KEY',
},
})
),
But it ends up look like: tBvUtRxsDVjvAHf9AB1OmMsS but needs to look like: base64:AHia+ZdPQAZH91dERYGJqgFAWJfRDWe40KIEaFPjNrI=.
Note these are just test creds and are not used anywhere.
base64:however it should still work with a 32 character random string but that would be less secure than what Laravel typically generates