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: AWS ECR Images tag (AWS Cli)"
Example using AWS Cli only, without third-party utilities Example using "jq" utility
When trying to get a value from AWS SSM, Ansible Playbook using Python3 as an interpreter generates the following error: fatal: [localhost-py3]: FAILED! => {"changed": false, "msg": "AnsibleError: An unhandled exception occurred while templating '{{ lookup('aws_ssm', 'server_listeners', decrypt=false, region=’eu-west-1′) }}'. Error was a <class 'ansible.errors.AnsibleError'>, original message: An unhandled exception occurred while running the lookup …
Continue reading "FIX ERROR – Ansible AWS SSM: AnsibleError: An unhandled exception occurred while templating"
HTTPS In order to be able to work with the Git repository in CodeCommit using the AIM role, AWS Cli must be installed on the instance. You will also need "credential-helper", for this we create a configuration file for Git: And copy the following into it: Now you can work with CodeCommit over …
Continue reading "CodeCommit – Git"
To get the IP addresses of all instances with the "Application" tag and its value "Frontend", and also filter by state to display information about only those instances that are in the "running" state: To display the name of instance along with the IP address:
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"
See the list of AMI Linux add-ons: Install from php7.2 extensions:
As it turned out, CodeBuild does not have a built-in incremental variable for the build number, as in Jenkins, for example. The solution was found on medium.com To add the build number you will need the following services: AWS SSM (Systems Manager Parameter Store) AWS Lambda AWS CloudWatch AWS IAM Create Parameter Store Go …
Continue reading "AWS – CodeBuild: Add an incremental build number"
In this example, we will consider creating a repository in CodeCommit and building a simple Docker image using CodeBuild and launching it in ECR. Create a repository in CodeCommit. My repository name is "artem-test" In order to work with the repository, make sure that your user has an SSH key loaded. If it is already …
Continue reading "AWS – CodeCommit and CodeBuild build Docker image and push it into ECR"
All actions will also be relevant for CentOS systems. In this example, a user will be added for access via SFTP using an SSH key to the web directory under Apache management. There is a default for Apache group "apache", if necessary, replace the desired one. All sites are on the dir: Add the …
Continue reading "Amazon Linux 2 AMI – SFTP access"