Monthly Archives: March 2019

AWS: CLI named profiles
0 (0)

19 March 2019

AWS CLI supports so-called named profiles stored in the configuration file .aws/config and ~/.aws/credentials file with keys which by default contains the… Well – the “default” profile. An additional profile can be added using the aws configure command with the –profile option. Here is an example of such file with already existing two profiles: [simterm]… Read More »

Loading

Jenkins: Scripted Pipeline – Production environment job confirmation step
0 (0)

19 March 2019

We have jobs which have to be executed on a Dev and Production environments via a Scripted Pipeline. In such jobs, there are tasks to execute CloudFormation upgrades on an infrastructure or Ansible playbooks to update servers configuration. To avoid an accidental execution of a Production job I want to have some confirmation step before… Read More »

Loading

Monit: email alerting on an SSH logins
0 (0)

18 March 2019

The task is to send an email alert when SSH-login was made from a not whitelisted IPs. Will use Monit here. Install it: [simterm] root@jenkins-dev:/home/admin# apt update && apt -y install monit [/simterm] Configure email settings: set localhost (we have a local eximhere), email’s format and email’s receiver. Edit the /etc/monit/monitrc file: … set mailserver localhost… Read More »

Loading

Terraform: creating a project with an AWS EC2, VPC, and AWS cross-region VPC peering connection
0 (0)

18 March 2019

One of the disappointing surprises in my AWS CloudFormation experience was the fact that it wasn’t able to automatically create cross-region VPC-peering connections. Note: this post originally was written in Rus on 28 June 2018 but now CloudFormation can do it, check the PeerRegion parameter of the AWS::EC2::VPCPeeringConnection resource. As a result – it tries… Read More »

Loading

Terraform: main commands, state-files, backend storages, and modules in examples on AWS
0 (0)

17 March 2019

Examples of how to use Terraform, work with its backends and modules. Here will set up a simple EC2 instance in AWS and will store Terraform’s state-files in an AWS S3 bucket. In short terms – but with real examples and links to documentation. Installation on Arch Linux: [simterm] $ sudo pacman -S terraform [/simterm]… Read More »

Loading

NextCloud: installing server on Debian behind NGINX with PHP-FPM and client on Arch Linux
0 (0)

17 March 2019

After the news that Dropbox adds a new limitation for users by the three devices only – I’m finally ready to install my own NextCloud to store and synchronize data. The sad thing is not exactly the three devices limit (and it will be applied for a new users only – old user who already… Read More »

Loading

What is: YAML – its overview, basic data types, YAML vs JSON, and PyYAML
0 (0)

14 March 2019

YAML – is one of the most popular formats of the… Well, actually, they don’t know the format of what… Originally it was the «Yet Another Markup Language», later it became «YAML Ain’t Markup Language»: Originally YAML was said to mean Yet Another Markup Language,[12] referencing its purpose as a markup languagewith the yet another construct, but it was then… Read More »

Loading

Jenkins: import a job to another server
0 (0)

13 March 2019

We have an old Jenkins with a bunch of iOS jobs which needs to be copied to a new Jenkins instance. Documentation suggests to: Move a job from one installation of Jenkins to another by simply copying the corresponding job directory. I.e. the first solution is just to copy a whole jobs directory or copy… Read More »

Loading

Linux: telegram-desktop – no systray icon
0 (0)

13 March 2019

Have the telegram-desktop installed via pacman on the Arch Linux. After starting – no systray’s icon present and thus can’t see new messages and even can’t exit in a normal way. This issue is not specific for the Arch Linux and happens on any Linux systems. Go to the Google and make search with “telegram linux… Read More »

Loading