Terraform provider.aws: no suitable version installed

The new versions of Terraform do not contain all plugins after the application installation. When you try to access a provider the first time, Terraform may not be able to communicate with it. * provider.aws: no suitable version installed version requirements: “(any version)” versions installed: none To download the necessary plugins, initialize the Terraform script …

Display all teams you belong to in GitHub

To get the information on all teams you are part of in Github Open a Terminal window Execute this command with your Personal Access Token curl -H “Authorization: token YOUR_PERSONAL_ACCESS_TOKEN” https://api.github.com/user/teams The returned JSON will display all information on the teams you belong to. To generate a personal access token See Create a Personal Access Token …

Chef NoMethodError, undefined method

When you try to bootstrap a node to a Chef server, you may get the error message Compiling Cookbooks… ============================================================== Recipe Compile Error in c:/chef/cache/cookbooks/…/attributes/default.rb ============================================================== NoMethodError ————- undefined method `…=’ for #<Chef::Node::VividMash:0x0000000004ca3268> … Relevant File Content: >> default. … In my case, the cookbook compiler could not interpret the dot notation in the recipes. …

Package dependent Java JAR files into the project JAR file

When you execute your Java JAR file, you need to include all dependent JAR files in the “fat jar” file, so the Java virtual machine can find them at runtime. Set up NetBeans to include the JAR files from the library In NetBeans you need to add the list of dependent libraries to the build.xml file. On the …

Restore Windows Server 2012 R2 from backup

Windows Server contains the Windows Backup functionality. It can create full backups of your server that contain all volumes. With the bare metal recovery, you are able to fully restore the server even if the hard disks fail, after a virus attack, or security breach. Depending on the size of the server drives and the backup media, …

Tomcat web server installation

Tomcat is one of the most popular free web servers. Tomcat runs on the Linux, Macintosh, and Windows operating systems. To install Tomcat Install the Java Runtime Environment (JRE) Download the Java JRE from http://www.oracle.com/technetwork/java/javase/downloads/index.html Install the Java JRE On Windows Execute the downloaded .exe file Create an environment variable to point to the installed Java If you installed …

Enable Single Sign-On (SSO) in TeamCity

Enable Single Sign-On (SSO) in TeamCity TeamCity can use the Windows Active Directory to authenticate users. To configure TeamCity to automatically log in users who are already logged into the Windows domain enable the Single Sign-On (SSO) functionality. In the upper right corner of the TeamCity web interface select Administration, On the left side in the Server …

Upgrade TeamCity to a new version

Create a backup of the database and the server before the upgrade Place an instance with a maintenance screen in the load balancer, Remove the TeamCity server from the load balancer, Disable the Chef-Client scheduled task and Chef-Client service to make sure Chef does not alter the server during the upgrade. Disable the authorized agents …

`pwd’: No such file or directory – getcwd (Errno::ENOENT)

When you rename a subdirectory under the directory where your Linux or MacOS terminal is open you may get the error message /opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/chef-13.4.19/lib/chef/knife/cookbook_download.rb:45:in `pwd’: No such file or directory – getcwd (Errno::ENOENT) You need to refresh the directory cache of the terminal. Go one level higher cd .. Go back to the directory cd MY_DIRECTORY …

Switching to a new Chef server

The administrator of the Chef organization Download the validation key Do this only once for the organization. This step resets the validation key, so the existing server images will not be able to connect to the Chef organization. On the Administration tab on the left select Organizations > Reset validation Key Click the Reset Key …