Topics

Cli

Setup postgreSQL RDS using Ansible

Setting up PostgreSQL on RDS using ansible is a bit tricky because the main user on RDS is not a SUPERUSER and roles membership is not automatically granted for ex: “ERROR: must be member of role ..” is quite common. Here is a working solution:

AWS PHP Modify Security Groups Command

Modify Security Groups Command is an easy to use command that you can add to your DevOps to allow adding/Removing IPs or CIDRs to AWS security groups for all protocol and ports. The command is part of AWS PHP Commands.

Usage:

  1. > php console.php aws:security-groups:modify -h
  2. Usage:
  3. aws:security-groups:modify [options]
  4.  
  5. Options:
  6. -c, --cidr=CIDR CIDR ex: 64.18.0.0/20 [default: false]
  7. -o, --operation=OPERATION Operation to perform, one of add or remove [default: "add"]
  8. -e, --env[=ENV] Which security groups this should run on. One of prod, dev [default: "dev"]
  9. -h, --help Display this help message
  10. -q, --quiet Do not output any message
  11. -V, --version Display this application version
  12. --ansi Force ANSI output
  13. --no-ansi Disable ANSI output
  14. -n, --no-interaction Do not ask any interactive question
  15. -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  16.  
  17. Help:
  18. Adds/removes CIDRs to security groups.

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close