The SSM Parameter Store contains the following JSON: It is necessary to extract the login and password, and use their values in the Terraform code. To do this, you can use the following construction: And use variables:
In order to exclude a specific range or IP address, you need to add the parameter "net_gateway". For example, it is necessary that the network "10.0.0.0/8" is routed through the VPN, but at the same time the network "10.0.1.0/24" is excluded from the route, the entry in the configuration file will look like this: … Continue reading " OpenVPN – Exclude specific IPs or networks from routes"
In order to convert an existing private key to PEM format, just do the following:
When trying to upgrade "Jenkins" on CentOS 7, the following error may occur: Public key for jenkins-2.289.3-1.1.noarch.rpm is not installed To fix it, just import the repository key:
Similar error: /etc/resolvconf/update.d/libc: Warning: /etc/resolv.conf is not a symbolic link to /run/resolvconf/resolv.conf It may indicate that the symbolic link "/etc/resolv.conf" is missing, in order to fix this, you can create it manually: Alternatively, run a "resolvconf" reconfiguration using the following command:
To select a Python version in the pipeline, you need to have the required versions installed on the system. Further actions were performed on CentOS 7 and the installation of binaries took place in the "/usr/bin/" directory for convenience, since the system already has versions "2.7" and "3.6" installed from the repository along this … Continue reading " Jenkins – Python VirtualEnv with version selection"
Goal: Allow public read access for all objects in the S3 bucket only using a VPN connection, objects must be non-public to connect from the world. OpenVPN is used as a VPN service, which can be deployed anywhere, so we will build an allow a rule to check the IP address. First you need … Continue reading " AWS – S3: Allow public access to objects over VPN"
This script looks for an EBS in the region "eu-west-1" with a tag whose key is "Application" and the value is passed as an argument, creating a snapshot of this EBS. In the same way, it searches for a snapshot by tag and deletes everything except the last one. An example of running to create … Continue reading " Python – AWS EBS creating snapshots based on a tag and keeping only one latest version"
For a parameterized assembly with an image tag selection, you will need the Active Choices plugin Go to "Manage Jenkins" Section "Manage Plugins" Go to the "Available" tab and select "Active Choices" in the search. Install it. Create a "New Item" – "Pipeline", indicate that it will be a parameterized assembly, and … Continue reading " Jenkins – Active Choice: SSH – Return remote command values"
For a parameterized assembly with an image tag selection, you will need the Active Choices plugin Go to "Manage Jenkins" Section "Manage Plugins" Go to the "Available" tab and select "Active Choices" in the search. Install it. Create a "New Item" – "Pipeline", indicate that it will be a parameterized assembly, and … Continue reading " Jenkins – Active Choice: S3 – Return necessary key value from JSON file"