Create the user "admin_web" with the username "admin_web", password "password1234" and provide the owner permissions to the database "artem_services" Create LOGIN: Use necessary database: Create a USER for the previously created LOGIN: Add a USER to the database owners group:
If a variable is used in Jenkins Pipeline that is created on the basis of a Webhook or etc, then a task will fail with a manual start. To avoid this, you can add a check for the existence of a variable and set its value. In this example, the presence of the …
Continue reading "Jenkins – Check for the existence of a variable"
jenkins.conf
When creating an HTTP/HTTPS subscription in AWS SNS, you can observe that the subscription is hanging in the status: "Pending confirmation" SNS to the specified URL makes a POST request in which it sends data in JSON format and expects to receive a key value in response: "SubscribeURL". But if the application does not …
Continue reading " AWS SNS – HTTP(S) Subscription: manual confirmation"
If you need to execute the FOR loop the N number of times, and this value will be set by a variable, the script will look like this:
For example, there is a file "/home/artem/IP" with IP addresses on which you want to execute a remote command, the FOR loop will look like this:
For example, there is the N number of variables, "var_1", "var_2" and so on, the script takes as arguments only the number of the variable, and its contents should be in the new var variable. If you execute this script, passing it as argument "1": my_script.sh That script will return: var_1 …
Continue reading " BASH – The variable content of which refers to another variable"
Install Java OpenJDK, as it is a dependency for Jenkins. The latest versions of Jenkins are compatible with version 11, so let’s install it. To add the Jenkins repository, you will need the "wget" utility, if it is not installed, then install: Add the repository and import its key: Install Jenkins: …
Continue reading "CentOS 7 – Jenkins install"
In this example, we will create a Terraform module for the AWS provider, which will be launched for 3 different environments using Terragrunt. Requirements: Installed AWS CLI Installed Terraform (version above 12.0) Installed Terragrunt
When trying to make a terraform plan or terraform apply, terraform returns the following error: Error: Unsupported block type Blocks of type "tags" are not expected here. Did you mean to define argument "tags"? If so, use the equals sign to assign it a value. Solution: In terraform versions below the 12, the following …
Continue reading " FIX ERROR – Terraform: Blocks of type "tags" are not expected here."