Stop multiple untagged AWS EC2 instances with a Bash script
List all EC2 instances without a specific tag One day we have found 499 instances running in our account without any tags. Most likely someone accidentally started a process to launch those, so we needed a way to find them and stop them. Later we will…
“incompatible-network” error when launching an AWS RDS instance
When the AWS subnet has no enough IP addresses Terraform displays the following error message: * aws_db_instance.default: unexpected state ‘incompatible-network’, wanted target ‘available, storage-optimization’. last error:…
Docker commands to run popular images
Maven Navigate to the Maven project directory on your workstation and launch the Maven container. To run a Maven project by using the Maven Docker image directly, passing a Maven command to docker run. docker run -it --rm --name my-maven-project -v…
Set up a user to connect to a Linux server with a private-public key pair
To secure a Linux server, disable password authentication on it. This way only those users can connect to it, who have access to an authorized private key. To enable users to connect to a Linux server with a private-public key pair Generate an RSA key…
Install a ZIP web application package with Octopus Deploy
Install the Octopus Tentacle on the application server. Automated Tentacle installation instructions are at https://octopus.com/docs/infrastructure/windows-targets/automating-tentacle-installation (Note for our DevOps team: execute…
Trigger an Octopus Deploy application package installation from TeamCity
Push the package to Octopus Deploy from TeamCity Create project level parameters In TeamCity create the parameters to centralize the configuration of reused values On the project level create a system parameter for the Octopus package name including the…
The user account does not have permission to run this task
When a Scheduled task is created by another user (or SYSTEM) most of the time only that user can manually trigger the task execution. When you try to execute the scheduled task from the user interface you can get the error message: The user account does…
Error loading table definition of a PostgreSQL table
When a PostgreSQL table name contains uppercase letters there is no known way to get the table definition SQL script. When we right-click a table name in SQLPro for Postgres, and the column name has an uppercase letter and select Script as, CREATE to,…
Use two GitHub accounts on the same computer
Many developers have multiple GitHub accounts. One for personal projects, and another one for their work or business. There is a way to access multiple accounts simultaneously from the same computer. Only one account at a time can be configured using the…
Change the AWS account to launch instances with Chef Test Kitchen
The Chef SDK contains Test Kitchen, that can launch server instances to test your Chef cookbooks. Test Kitchen uses the “chef_zero” provisioner to use your workstation as the virtual Chef server. To switch Test Kitchen to launch instances in…