The Custom::PostgresSQLUser
resource creates a postgres database user with or without a database.
To declare this entity in your AWS CloudFormation template, use the following syntax:
Type: Custom::PostgreSQLUser
Properties:
Name: String
Password: String
PasswordParameterName: String
WithDatabase: true/false
DeletionPolicy: Retain/Drop
Database:
Host: STRING
Port: INTEGER
Database: STRING
User: STRING
Password: STRING
PasswordParameterName: STRING
ServiceToken: !Sub 'arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:binxio-cfn-dbuser-provider-vpc-${AppVPC}'
You can specify the following properties:
Name
- of the user to createPassword
- of the userPasswordParameterName
- name of the parameter in the store containing the password of the userWithDatabase
- if a database is to be created with the same name, defaults to trueDeletionPolicy
- when the resource is deletedDatabase
- connection information of the database ownerHost
- the database server is listening on.Port
- port the database server is listening on.Database
- name to connect to.User
- name of the database owner.Password
- to identify the user with.PasswordParameterName
- name of the parameter in the store containing the password of the user
Either Password
or PasswordParameterName
is required.
There are no return values from this resources.