https://github.com/sashee/terraform-change-rds-password
Example code for using local-exec to automatically change the RDS cluster password
https://github.com/sashee/terraform-change-rds-password
aws rds terraform
Last synced: 4 months ago
JSON representation
Example code for using local-exec to automatically change the RDS cluster password
- Host: GitHub
- URL: https://github.com/sashee/terraform-change-rds-password
- Owner: sashee
- Created: 2022-06-04T17:32:44.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-04T17:35:14.000Z (about 4 years ago)
- Last Synced: 2025-07-25T22:43:52.952Z (11 months ago)
- Topics: aws, rds, terraform
- Language: HCL
- Homepage: https://advancedweb.hu/how-to-remove-the-rds-master-user-password-from-the-terraform-state/
- Size: 2.93 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Example code for using local-exec to automatically change the RDS cluster password
## Deploy
* ```terraform init```
* ```terraform apply```
## Test
```
aws rds-data begin-transaction --resource-arn "$(terraform output --raw rds_cluster_arn)" --database "mydb" --secret-arn "$(terraform output --raw secret_arn)"
```
## Cleanup
* ```terraform destroy```