Skip to content

Commit

Permalink
Add Secret
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Oct 22, 2024
1 parent 1e51fb4 commit 33ed2d3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion cloudformation/lib/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default {
Properties: {
Description: cf.join([cf.stackName, ' LDAP SVC Account Password']),
GenerateSecretString: {
SecretStringTemplate: '{"username": "svcaccount"}',
SecretStringTemplate: '{"username": "ldapsvcaccoun"}',
GenerateStringKey: 'password',
ExcludePunctuation: true,
PasswordLength: 32
Expand Down Expand Up @@ -311,6 +311,14 @@ export default {
LDAPAdminPassword: {
Description: 'LDAP Admin Password',
Value: cf.sub('{{resolve:secretsmanager:${AWS::StackName}/admin:SecretString:password:AWSCURRENT}}')
},
LDAPSVCUsername: {
Description: 'LDAP SVC Username',
Value: cf.sub('{{resolve:secretsmanager:${AWS::StackName}/svc:SecretString:username:AWSCURRENT}}')
},
LDAPSVCPassword: {
Description: 'LDAP SVC Password',
Value: cf.sub('{{resolve:secretsmanager:${AWS::StackName}/svc:SecretString:password:AWSCURRENT}}')
}
}
};

0 comments on commit 33ed2d3

Please sign in to comment.