Cohesity Cloud Scale Technology Deployment Guide Using Terraform for AWS
- Introduction
- Getting started with deployment
- Prerequisities for setting up AWS environment
- Prerequisites for Terraform
- Deploying Cloud Scale Technology using Terraform script
- Accessing the Cloud Scale Technology environment
- Troubleshooting and cleanup environment steps
Changing database server password in PostgreSQL (AWS)
Using the LAMBDA_ARN function, you can change the database password. This can be obtained from the lambda function on the AWS console. The ARN stands for Amazon Resource Name.
Note:
When setting the PostgreSQL password in DBaaS, ensure that the password does not contain the following special characters: equal (=), double quote ("), single quote ('), percentage (%), at sign (@), ampersand (&), question mark (?), underscore (_), and hash (#)
To change the database server password
- To change the database server password, use the lambda function LAMBDA_ARN.
$ aws lambda invoke --function-name $LAMBDA_ARN \ --cli-binary-format raw-in-base64-out --payload '{"password":"$NEW_PASSWORD"}' \ response_file
Note:
NEW_PASSWORD is the new password to be used.
- To obtain the POSTGRESQL_ID (database identifier) of your RDS Postgres database from the RDS database page of the AWS console, use the following command and wait for the database to be available.
$ aws rds wait db-instance-available --db-instance-identifier $POSTGRESQL_ID
- Restart the primary pod using the command:
$ kubectl get --namespace "${NAMESPACE}" primaryserver -o jsonpath='{.items[0].status.attributes.resourceName}'
$ kubectl rollout restart "statefulset/${PRIMARY}" --namespace "${NAMESPACE}"
In the above command:
NAMESPACE is the namespace containing your NetBackup deployment.
PRIMARY is the name of primary pod's stateful set.
For resetting the password for containerized PostgreSQL database, refer to the section Changing database server password in DBaaS
from the guide NetBackup™ Deployment Guide for Kubernetes Clusters