<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://public-wiki.iucc.ac.il/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Eyales</id>
	<title>PUBLIC-WIKI - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://public-wiki.iucc.ac.il/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Eyales"/>
	<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php/Special:Contributions/Eyales"/>
	<updated>2026-04-18T14:30:58Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=PUBLIC-WIKI:Privacy_policy&amp;diff=990</id>
		<title>PUBLIC-WIKI:Privacy policy</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=PUBLIC-WIKI:Privacy_policy&amp;diff=990"/>
		<updated>2021-01-07T12:39:25Z</updated>

		<summary type="html">&lt;p&gt;Eyales: Created page with &amp;quot;== Website Privacy Policy and Cookies Policy == This policy describes how we collect and use your personal data during your use of the IUCC Wiki website (https://public-wiki.i...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Website Privacy Policy and Cookies Policy ==&lt;br /&gt;
This policy describes how we collect and use your personal data during your use of the IUCC Wiki website (https://public-wiki.iucc.ac.il/) (the ‘website’) in accordance with the General Data Protection Regulation (GDPR) and related Israel data protection legislation. For further information about the structure of the IUCC Wiki‘s web presence, please see in the Website.&lt;br /&gt;
&lt;br /&gt;
Inter-University Computation Center (IUCC) do not collect any information about customers of the IUCC Wiki website.&lt;br /&gt;
&lt;br /&gt;
If you are still looking for more information than you can contact us through one of our preferred contact methods:&lt;br /&gt;
* Email: dpo@iucc.ac.il&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=How_to_run_MATLAB_Parallel_Server_on_Azure&amp;diff=989</id>
		<title>How to run MATLAB Parallel Server on Azure</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=How_to_run_MATLAB_Parallel_Server_on_Azure&amp;diff=989"/>
		<updated>2020-11-16T06:30:45Z</updated>

		<summary type="html">&lt;p&gt;Eyales: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Pre-Requirements ==&lt;br /&gt;
* Azure subscription&lt;br /&gt;
* Subscription owner privilege&lt;br /&gt;
&lt;br /&gt;
== MATLAB License ==&lt;br /&gt;
* Locate the institution MATLAB License Administrator, through the License Centre:&lt;br /&gt;
: https://www.mathworks.com/licensecenter/licenses&lt;br /&gt;
* Log into your account (if prompted)&lt;br /&gt;
* Click on license number&lt;br /&gt;
* Click on &amp;quot;Contact Administrators&amp;quot; tab&lt;br /&gt;
* Send an email to the MATLAB License Administrator, and ask the license administrator to add the researcher&#039;s institution email address, a license for &amp;quot;MATLAB Parallel Server&amp;quot;&lt;br /&gt;
* To verify that &amp;quot;MATLAB Parallel Server&amp;quot; license was assigned, go to the link below:&lt;br /&gt;
: https://www.mathworks.com/licensecenter/&lt;br /&gt;
&lt;br /&gt;
== Deploy MATLAB Parallel Server on Azure ==&lt;br /&gt;
* Open a web browser&lt;br /&gt;
* Follow the deployment instructions in the link below:&lt;br /&gt;
: https://github.com/mathworks-ref-arch/matlab-parallel-server-on-azure/blob/master/releases/R2020b/README.md&lt;br /&gt;
&lt;br /&gt;
== Delete an existing MATLAB Parallel Server ==&lt;br /&gt;
* Open a web browser&lt;br /&gt;
* Follow the instructions in the link below:&lt;br /&gt;
: https://github.com/mathworks-ref-arch/matlab-parallel-server-on-azure/blob/master/releases/R2020b/README.md#delete-your-cloud-resources&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=How_to_run_MATLAB_Parallel_Server_on_AWS&amp;diff=988</id>
		<title>How to run MATLAB Parallel Server on AWS</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=How_to_run_MATLAB_Parallel_Server_on_AWS&amp;diff=988"/>
		<updated>2020-11-16T06:29:51Z</updated>

		<summary type="html">&lt;p&gt;Eyales: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Pre-Requirements ==&lt;br /&gt;
* AWS Account&lt;br /&gt;
* AWS Full Administrator IAM Role&lt;br /&gt;
&lt;br /&gt;
== MATLAB License ==&lt;br /&gt;
* Locate the institution MATLAB License Administrator, through the License Centre:&lt;br /&gt;
: https://www.mathworks.com/licensecenter/licenses&lt;br /&gt;
* Log into your account (if prompted)&lt;br /&gt;
* Click on license number&lt;br /&gt;
* Click on &amp;quot;Contact Administrators&amp;quot; tab&lt;br /&gt;
* Send an email to the MATLAB License Administrator, and ask the license administrator to add the researcher&#039;s institution email address, a license for &amp;quot;MATLAB Parallel Server&amp;quot;&lt;br /&gt;
* To verify that &amp;quot;MATLAB Parallel Server&amp;quot; license was assigned, go to the link below:&lt;br /&gt;
: https://www.mathworks.com/licensecenter/&lt;br /&gt;
&lt;br /&gt;
== Deploy MATLAB Parallel Server on AWS ==&lt;br /&gt;
* Open a web browser&lt;br /&gt;
* Follow the deployment instructions in the link below:&lt;br /&gt;
: https://github.com/mathworks-ref-arch/matlab-parallel-server-on-aws/blob/master/releases/R2020b/README.md&lt;br /&gt;
&lt;br /&gt;
== Delete an existing MATLAB Parallel Server ==&lt;br /&gt;
* Open a web browser&lt;br /&gt;
* Follow the instructions in the link below:&lt;br /&gt;
: https://github.com/mathworks-ref-arch/matlab-parallel-server-on-aws/blob/master/releases/R2020b/README.md#delete-your-cloud-resources&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=How_to_run_MATLAB_Parallel_Server_on_Azure&amp;diff=987</id>
		<title>How to run MATLAB Parallel Server on Azure</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=How_to_run_MATLAB_Parallel_Server_on_Azure&amp;diff=987"/>
		<updated>2020-08-31T13:14:49Z</updated>

		<summary type="html">&lt;p&gt;Eyales: Created page with &amp;quot;== Pre-Requirements == * Azure subscription * Subscription owner privilege  == MATLAB License == * Locate the institution MATLAB License Administrator, through the License Cen...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Pre-Requirements ==&lt;br /&gt;
* Azure subscription&lt;br /&gt;
* Subscription owner privilege&lt;br /&gt;
&lt;br /&gt;
== MATLAB License ==&lt;br /&gt;
* Locate the institution MATLAB License Administrator, through the License Centre:&lt;br /&gt;
: https://www.mathworks.com/licensecenter/licenses&lt;br /&gt;
* Log into your account (if prompted)&lt;br /&gt;
* Click on license number&lt;br /&gt;
* Click on &amp;quot;Contact Administrators&amp;quot; tab&lt;br /&gt;
* Send an email to the MATLAB License Administrator, and ask the license administrator to add the researcher&#039;s institution email address, a license for &amp;quot;MATLAB Parallel Server&amp;quot;&lt;br /&gt;
* To verify that &amp;quot;MATLAB Parallel Server&amp;quot; license was assigned, go to the link below:&lt;br /&gt;
: https://www.mathworks.com/licensecenter/&lt;br /&gt;
&lt;br /&gt;
== Deploy MATLAB Parallel Server on Azure ==&lt;br /&gt;
* Open a web browser&lt;br /&gt;
* Follow the deployment instructions in the link below:&lt;br /&gt;
: https://github.com/mathworks-ref-arch/matlab-parallel-server-on-azure/blob/master/releases/R2019b/README.md&lt;br /&gt;
&lt;br /&gt;
== Delete an existing MATLAB Parallel Server ==&lt;br /&gt;
* Open a web browser&lt;br /&gt;
* Follow the instructions in the link below:&lt;br /&gt;
: https://github.com/mathworks-ref-arch/matlab-parallel-server-on-azure/blob/master/releases/R2019b/README.md#delete-your-cloud-resources&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=Azure_-_How_To&amp;diff=986</id>
		<title>Azure - How To</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=Azure_-_How_To&amp;diff=986"/>
		<updated>2020-08-31T13:11:54Z</updated>

		<summary type="html">&lt;p&gt;Eyales: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[Best practices for Azure cost optimization]]&lt;br /&gt;
*[[Best practices for securing Azure subscriptions]]&lt;br /&gt;
*[[How to configure MFA (Multi-Factor Authentication) for AD Azure account]]&lt;br /&gt;
*[[How to create a file share in Azure Files]]&lt;br /&gt;
*[[How to create Azure Virtual Machine and perform login using SSH]]&lt;br /&gt;
*[[How to create Azure Network Security Group]]&lt;br /&gt;
*[[How to create Azure Network Interface]]&lt;br /&gt;
*[[How to create Azure Resource Group]]&lt;br /&gt;
*[[How to create Azure Route Table]]&lt;br /&gt;
*[[How to create Azure Storage Account]]&lt;br /&gt;
*[[How to create Azure Virtual Network (VNet)]]&lt;br /&gt;
*[[How to create HPC Cluster based on Azure CycleCloud]]&lt;br /&gt;
*[[How to create Windows Virtual Machine and perform login using RDP]]&lt;br /&gt;
*[[How to install Wordpress server based on Azure Container Instances]]&lt;br /&gt;
*[[How to install Wordpress server based on Azure Web App]]&lt;br /&gt;
*[[How to mount Azure Blob Storage inside a Linux machine]]&lt;br /&gt;
*[[How to run MATLAB Parallel Server on Azure]]&lt;br /&gt;
*[[Using Azure CLI for managing Azure resources]]&lt;br /&gt;
*[[Using PowerShell for managing Azure resources]]&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=How_to_run_MATLAB_Parallel_Server_on_AWS&amp;diff=985</id>
		<title>How to run MATLAB Parallel Server on AWS</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=How_to_run_MATLAB_Parallel_Server_on_AWS&amp;diff=985"/>
		<updated>2020-08-31T13:04:48Z</updated>

		<summary type="html">&lt;p&gt;Eyales: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Pre-Requirements ==&lt;br /&gt;
* AWS Account&lt;br /&gt;
* AWS Full Administrator IAM Role&lt;br /&gt;
&lt;br /&gt;
== MATLAB License ==&lt;br /&gt;
* Locate the institution MATLAB License Administrator, through the License Centre:&lt;br /&gt;
: https://www.mathworks.com/licensecenter/licenses&lt;br /&gt;
* Log into your account (if prompted)&lt;br /&gt;
* Click on license number&lt;br /&gt;
* Click on &amp;quot;Contact Administrators&amp;quot; tab&lt;br /&gt;
* Send an email to the MATLAB License Administrator, and ask the license administrator to add the researcher&#039;s institution email address, a license for &amp;quot;MATLAB Parallel Server&amp;quot;&lt;br /&gt;
* To verify that &amp;quot;MATLAB Parallel Server&amp;quot; license was assigned, go to the link below:&lt;br /&gt;
: https://www.mathworks.com/licensecenter/&lt;br /&gt;
&lt;br /&gt;
== Deploy MATLAB Parallel Server on AWS ==&lt;br /&gt;
* Open a web browser&lt;br /&gt;
* Follow the deployment instructions in the link below:&lt;br /&gt;
: https://github.com/mathworks-ref-arch/matlab-parallel-server-on-aws/blob/master/releases/R2019b/README.md&lt;br /&gt;
&lt;br /&gt;
== Delete an existing MATLAB Parallel Server ==&lt;br /&gt;
* Open a web browser&lt;br /&gt;
* Follow the instructions in the link below:&lt;br /&gt;
: https://github.com/mathworks-ref-arch/matlab-parallel-server-on-aws/blob/master/releases/R2019b/README.md#delete-your-cloud-resources&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=How_to_run_MATLAB_Parallel_Server_on_AWS&amp;diff=984</id>
		<title>How to run MATLAB Parallel Server on AWS</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=How_to_run_MATLAB_Parallel_Server_on_AWS&amp;diff=984"/>
		<updated>2020-08-31T13:03:07Z</updated>

		<summary type="html">&lt;p&gt;Eyales: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Pre-Requirement ==&lt;br /&gt;
* AWS Account&lt;br /&gt;
* AWS Full Administrator IAM Role&lt;br /&gt;
&lt;br /&gt;
== MATLAB License ==&lt;br /&gt;
* Locate the institution MATLAB License Administrator, through the License Centre:&lt;br /&gt;
: https://www.mathworks.com/licensecenter/licenses&lt;br /&gt;
* Log into your account (if prompted)&lt;br /&gt;
* Click on license number&lt;br /&gt;
* Click on &amp;quot;Contact Administrators&amp;quot; tab&lt;br /&gt;
* Send an email to the MATLAB License Administrator, and ask the license administrator to add the researcher&#039;s institution email address, a license for &amp;quot;MATLAB Parallel Server&amp;quot;&lt;br /&gt;
* To verify that &amp;quot;MATLAB Parallel Server&amp;quot; license was assigned, go to the link below:&lt;br /&gt;
: https://www.mathworks.com/licensecenter/&lt;br /&gt;
&lt;br /&gt;
== Deploy MATLAB Parallel Server on AWS ==&lt;br /&gt;
* Open a web browser&lt;br /&gt;
* Follow the deployment instructions in the link below:&lt;br /&gt;
: https://github.com/mathworks-ref-arch/matlab-parallel-server-on-aws/blob/master/releases/R2019b/README.md&lt;br /&gt;
&lt;br /&gt;
== Delete an existing MATLAB Parallel Server ==&lt;br /&gt;
* Open a web browser&lt;br /&gt;
* Follow the instructions in the link below:&lt;br /&gt;
: https://github.com/mathworks-ref-arch/matlab-parallel-server-on-aws/blob/master/releases/R2019b/README.md#delete-your-cloud-resources&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=How_to_run_MATLAB_Parallel_Server_on_AWS&amp;diff=983</id>
		<title>How to run MATLAB Parallel Server on AWS</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=How_to_run_MATLAB_Parallel_Server_on_AWS&amp;diff=983"/>
		<updated>2020-08-31T13:02:50Z</updated>

		<summary type="html">&lt;p&gt;Eyales: Created page with &amp;quot;== How to run MATLAB Parallel Server on AWS ==  == Pre-Requirement == * AWS Account * AWS Full Administrator IAM Role  == MATLAB License == * Locate the institution MATLAB Lic...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== How to run MATLAB Parallel Server on AWS ==&lt;br /&gt;
&lt;br /&gt;
== Pre-Requirement ==&lt;br /&gt;
* AWS Account&lt;br /&gt;
* AWS Full Administrator IAM Role&lt;br /&gt;
&lt;br /&gt;
== MATLAB License ==&lt;br /&gt;
* Locate the institution MATLAB License Administrator, through the License Centre:&lt;br /&gt;
: https://www.mathworks.com/licensecenter/licenses&lt;br /&gt;
* Log into your account (if prompted)&lt;br /&gt;
* Click on license number&lt;br /&gt;
* Click on &amp;quot;Contact Administrators&amp;quot; tab&lt;br /&gt;
* Send an email to the MATLAB License Administrator, and ask the license administrator to add the researcher&#039;s institution email address, a license for &amp;quot;MATLAB Parallel Server&amp;quot;&lt;br /&gt;
* To verify that &amp;quot;MATLAB Parallel Server&amp;quot; license was assigned, go to the link below:&lt;br /&gt;
: https://www.mathworks.com/licensecenter/&lt;br /&gt;
&lt;br /&gt;
== Deploy MATLAB Parallel Server on AWS ==&lt;br /&gt;
* Open a web browser&lt;br /&gt;
* Follow the deployment instructions in the link below:&lt;br /&gt;
: https://github.com/mathworks-ref-arch/matlab-parallel-server-on-aws/blob/master/releases/R2019b/README.md&lt;br /&gt;
&lt;br /&gt;
== Delete an existing MATLAB Parallel Server ==&lt;br /&gt;
* Open a web browser&lt;br /&gt;
* Follow the instructions in the link below:&lt;br /&gt;
: https://github.com/mathworks-ref-arch/matlab-parallel-server-on-aws/blob/master/releases/R2019b/README.md#delete-your-cloud-resources&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=How_To&amp;diff=982</id>
		<title>How To</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=How_To&amp;diff=982"/>
		<updated>2020-08-31T13:00:47Z</updated>

		<summary type="html">&lt;p&gt;Eyales: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[Best practices for AWS cost optimization]]&lt;br /&gt;
*[[Best practices for managing AWS account]]&lt;br /&gt;
*[[Best practices for securing AWS account]]&lt;br /&gt;
*[[How to add permissions to AWS resources using AWS CLI on Windows client]]&lt;br /&gt;
*[[How to configure MFA (Multi-Factor Authentication) for AWS IAM User]]&lt;br /&gt;
*[[How to configure S3 bucket]]&lt;br /&gt;
*[[How to connect to S3 bucket using Windows client]]&lt;br /&gt;
*[[How to create a new security group]]&lt;br /&gt;
*[[How to create a route table]]&lt;br /&gt;
*[[How to create a subnet]]&lt;br /&gt;
*[[How to create a user account in AWS IAM]]&lt;br /&gt;
*[[How to create an EBS volume]]&lt;br /&gt;
*[[How to create an AWS Managed Microsoft AD directory]]&lt;br /&gt;
*[[How to create Amazon EC2 instance and perform login using SSH]]&lt;br /&gt;
*[[How to create Amazon Virtual Private Cloud (VPC)]]&lt;br /&gt;
*[[How to create AWS ParallelCluster with Slurm scheduler]]&lt;br /&gt;
*[[How to create budget and billing alerts]]&lt;br /&gt;
*[[How to create Windows based Amazon EC2 instance from the AWS Marketplace]]&lt;br /&gt;
*[[How to mount Amazon S3 Storage inside a Linux machine]]&lt;br /&gt;
*[[How to register for the AWSome Day]]&lt;br /&gt;
*[[How to run MATLAB Parallel Server on AWS]]&lt;br /&gt;
*[[How to set up Amazon FSx for Windows File Server]]&lt;br /&gt;
*[[How to sync files to Amazon Glacier]]&lt;br /&gt;
*[[Recommendations for configuring an AWS linked account]]&lt;br /&gt;
*[[Using AWS CLI for managing AWS Resources]]&lt;br /&gt;
*[[Using PowerShell for managing AWS resources]]&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=Using_AWS_CLI_for_managing_AWS_Resources&amp;diff=981</id>
		<title>Using AWS CLI for managing AWS Resources</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=Using_AWS_CLI_for_managing_AWS_Resources&amp;diff=981"/>
		<updated>2020-06-24T05:14:47Z</updated>

		<summary type="html">&lt;p&gt;Eyales: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Installing AWS CLI ==&lt;br /&gt;
* Login to the machine using privileged account.&lt;br /&gt;
* Download the latest build of AWS CLI.&lt;br /&gt;
:* Windows download instruction and location:&lt;br /&gt;
:: https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-windows.html&lt;br /&gt;
:* Linux download instruction and location:&lt;br /&gt;
:: https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-linux.html&lt;br /&gt;
&lt;br /&gt;
== How to configure AWS Account and Access Keys ==&lt;br /&gt;
* Login to the IAM Console:&lt;br /&gt;
: https://console.aws.amazon.com/iam/&lt;br /&gt;
* From the left pane, click on Users -&amp;gt; click on “Add user” -&amp;gt; specify the user name -&amp;gt; access type: “Programmatic access” -&amp;gt; do not select “AWS Management Console access” -&amp;gt; click “Next: Permissions”&lt;br /&gt;
* From the “add user to group”, either select existing group or click on “Create group” -&amp;gt; click “Next: Review” -&amp;gt; click on “Create user”&lt;br /&gt;
* Download the CSV file with the “Access key ID” and “Secret access key” and save the CSV file in a secure location&lt;br /&gt;
* Click Close&lt;br /&gt;
&lt;br /&gt;
== Configuring the AWS CLI ==&lt;br /&gt;
* Run the command below in-order to configure AWS CLI:&lt;br /&gt;
: &#039;&#039;&#039;aws configure –profile &amp;lt;profile_name&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
:* &#039;&#039;&#039;Profile name&#039;&#039;&#039; – set relevant target profile name&lt;br /&gt;
:* &#039;&#039;&#039;AWS Access Key ID&#039;&#039;&#039; - Specify the value from the CSV of the previously created IAM user&lt;br /&gt;
:* &#039;&#039;&#039;AWS Secret Access Key&#039;&#039;&#039; - Specify the value from the CSV of the previously created IAM user&lt;br /&gt;
:* &#039;&#039;&#039;Default region name&#039;&#039;&#039; - Specify a region such as &#039;&#039;&#039;eu-west-1&#039;&#039;&#039;&lt;br /&gt;
:: Full list: https://docs.aws.amazon.com/general/latest/gr/rande.html&lt;br /&gt;
:* &#039;&#039;&#039;Default output format&#039;&#039;&#039; - JSON&lt;br /&gt;
:: Note 1: By default, the credentials file is stored here:&lt;br /&gt;
::* On Windows: &#039;&#039;&#039;C:\Users\username\.aws\credentials&#039;&#039;&#039;&lt;br /&gt;
::* On Linux: &#039;&#039;&#039;~/.aws/credentials&#039;&#039;&#039;&lt;br /&gt;
:: Note 2: Reference about configuration and credential file settings can be found at:&lt;br /&gt;
:: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html&lt;br /&gt;
&lt;br /&gt;
== Storage related commands ==&lt;br /&gt;
* Create a new S3 bucket:&lt;br /&gt;
: &#039;&#039;&#039;aws s3 mb &amp;lt;BucketName&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
* Remove S3 bucket:&lt;br /&gt;
: &#039;&#039;&#039;aws s3 rb s3://&amp;lt;BucketName&amp;gt; --force&#039;&#039;&#039;&lt;br /&gt;
* List all S3 buckets:&lt;br /&gt;
: &#039;&#039;&#039;aws s3 ls&#039;&#039;&#039;&lt;br /&gt;
* List of S3 buckets using additional AWS IAM account:&lt;br /&gt;
: &#039;&#039;&#039;aws s3 ls --profile [profile_name]&#039;&#039;&#039;&lt;br /&gt;
* List the content of specific S3 bucket:&lt;br /&gt;
: &#039;&#039;&#039;aws s3 ls s3://&amp;lt;BucketName&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
* Copy file from S3 bucket to local directory:&lt;br /&gt;
: &#039;&#039;&#039;aws s3 cp s3://&amp;lt;BucketName&amp;gt;/&amp;lt;FileName&amp;gt; /&amp;lt;LocalFolderName&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* Installing the AWS Command Line Interface&lt;br /&gt;
: https://linuxacademy.com/blog/tutorials/installing-the-aws-command-line-interface/&lt;br /&gt;
* 28 Essential AWS S3 CLI Command Examples to Manage Buckets and Objects&lt;br /&gt;
: https://www.thegeekstuff.com/2019/04/aws-s3-cli-examples/&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=How_To&amp;diff=980</id>
		<title>How To</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=How_To&amp;diff=980"/>
		<updated>2020-06-08T12:04:28Z</updated>

		<summary type="html">&lt;p&gt;Eyales: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[Best practices for AWS cost optimization]]&lt;br /&gt;
*[[Best practices for managing AWS account]]&lt;br /&gt;
*[[Best practices for securing AWS account]]&lt;br /&gt;
*[[How to add permissions to AWS resources using AWS CLI on Windows client]]&lt;br /&gt;
*[[How to configure MFA (Multi-Factor Authentication) for AWS IAM User]]&lt;br /&gt;
*[[How to configure S3 bucket]]&lt;br /&gt;
*[[How to connect to S3 bucket using Windows client]]&lt;br /&gt;
*[[How to create a new security group]]&lt;br /&gt;
*[[How to create a route table]]&lt;br /&gt;
*[[How to create a subnet]]&lt;br /&gt;
*[[How to create a user account in AWS IAM]]&lt;br /&gt;
*[[How to create an EBS volume]]&lt;br /&gt;
*[[How to create an AWS Managed Microsoft AD directory]]&lt;br /&gt;
*[[How to create Amazon EC2 instance and perform login using SSH]]&lt;br /&gt;
*[[How to create Amazon Virtual Private Cloud (VPC)]]&lt;br /&gt;
*[[How to create AWS ParallelCluster with Slurm scheduler]]&lt;br /&gt;
*[[How to create budget and billing alerts]]&lt;br /&gt;
*[[How to create Windows based Amazon EC2 instance from the AWS Marketplace]]&lt;br /&gt;
*[[How to mount Amazon S3 Storage inside a Linux machine]]&lt;br /&gt;
*[[How to register for the AWSome Day]]&lt;br /&gt;
*[[How to set up Amazon FSx for Windows File Server]]&lt;br /&gt;
*[[How to sync files to Amazon Glacier]]&lt;br /&gt;
*[[Recommendations for configuring an AWS linked account]]&lt;br /&gt;
*[[Using AWS CLI for managing AWS Resources]]&lt;br /&gt;
*[[Using PowerShell for managing AWS resources]]&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=Using_AWS_CLI_for_managing_AWS_Resources&amp;diff=979</id>
		<title>Using AWS CLI for managing AWS Resources</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=Using_AWS_CLI_for_managing_AWS_Resources&amp;diff=979"/>
		<updated>2020-06-08T11:57:36Z</updated>

		<summary type="html">&lt;p&gt;Eyales: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Installing AWS CLI ==&lt;br /&gt;
* Login to the machine using privileged account.&lt;br /&gt;
* Download the latest build of AWS CLI.&lt;br /&gt;
:* Windows download instruction and location:&lt;br /&gt;
:: https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-windows.html&lt;br /&gt;
:* Linux download instruction and location:&lt;br /&gt;
:: https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-linux.html&lt;br /&gt;
&lt;br /&gt;
== How to configure AWS Account and Access Keys ==&lt;br /&gt;
* Login to the IAM Console:&lt;br /&gt;
: https://console.aws.amazon.com/iam/&lt;br /&gt;
* From the left pane, click on Users -&amp;gt; click on “Add user” -&amp;gt; specify the user name -&amp;gt; access type: “Programmatic access” -&amp;gt; do not select “AWS Management Console access” -&amp;gt; click “Next: Permissions”&lt;br /&gt;
* From the “add user to group”, either select existing group or click on “Create group” -&amp;gt; click “Next: Review” -&amp;gt; click on “Create user”&lt;br /&gt;
* Download the CSV file with the “Access key ID” and “Secret access key” and save the CSV file in a secure location&lt;br /&gt;
* Click Close&lt;br /&gt;
&lt;br /&gt;
== Configuring the AWS CLI ==&lt;br /&gt;
* Run the command below in-order to configure AWS CLI:&lt;br /&gt;
: &#039;&#039;&#039;aws configure –profile &amp;lt;profile_name&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
:* &#039;&#039;&#039;Profile name&#039;&#039;&#039; – set relevant target profile name&lt;br /&gt;
:* &#039;&#039;&#039;AWS Access Key ID&#039;&#039;&#039; - Specify the value from the CSV of the previously created IAM user&lt;br /&gt;
:* &#039;&#039;&#039;AWS Secret Access Key&#039;&#039;&#039; - Specify the value from the CSV of the previously created IAM user&lt;br /&gt;
:* &#039;&#039;&#039;Default region name&#039;&#039;&#039; - Specify a region such as &#039;&#039;&#039;eu-west-1&#039;&#039;&#039;&lt;br /&gt;
:: Full list: https://docs.aws.amazon.com/general/latest/gr/rande.html&lt;br /&gt;
:* &#039;&#039;&#039;Default output format&#039;&#039;&#039; - JSON&lt;br /&gt;
:: Note 1: By default, the credentials file is stored here:&lt;br /&gt;
::* On Windows: &#039;&#039;&#039;C:\Users\username.aws\credentials&#039;&#039;&#039;&lt;br /&gt;
::* On Linux: &#039;&#039;&#039;~/.aws/credentials&#039;&#039;&#039;&lt;br /&gt;
:: Note 2: Reference about configuration and credential file settings can be found at:&lt;br /&gt;
:: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html&lt;br /&gt;
&lt;br /&gt;
== Storage related commands ==&lt;br /&gt;
* Create a new S3 bucket:&lt;br /&gt;
: &#039;&#039;&#039;aws s3 mb &amp;lt;BucketName&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
* Remove S3 bucket:&lt;br /&gt;
: &#039;&#039;&#039;aws s3 rb s3://&amp;lt;BucketName&amp;gt; --force&#039;&#039;&#039;&lt;br /&gt;
* List all S3 buckets:&lt;br /&gt;
: &#039;&#039;&#039;aws s3 ls&#039;&#039;&#039;&lt;br /&gt;
* List of S3 buckets using additional AWS IAM account:&lt;br /&gt;
: &#039;&#039;&#039;aws s3 ls --profile [profile_name]&#039;&#039;&#039;&lt;br /&gt;
* List the content of specific S3 bucket:&lt;br /&gt;
: &#039;&#039;&#039;aws s3 ls s3://&amp;lt;BucketName&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
* Copy file from S3 bucket to local directory:&lt;br /&gt;
: &#039;&#039;&#039;aws s3 cp s3://&amp;lt;BucketName&amp;gt;/&amp;lt;FileName&amp;gt; /&amp;lt;LocalFolderName&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* Installing the AWS Command Line Interface&lt;br /&gt;
: https://linuxacademy.com/blog/tutorials/installing-the-aws-command-line-interface/&lt;br /&gt;
* 28 Essential AWS S3 CLI Command Examples to Manage Buckets and Objects&lt;br /&gt;
: https://www.thegeekstuff.com/2019/04/aws-s3-cli-examples/&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=Using_AWS_CLI_for_managing_AWS_Resources&amp;diff=978</id>
		<title>Using AWS CLI for managing AWS Resources</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=Using_AWS_CLI_for_managing_AWS_Resources&amp;diff=978"/>
		<updated>2020-06-08T11:54:48Z</updated>

		<summary type="html">&lt;p&gt;Eyales: Created page with &amp;quot;== Installing AWS CLI == * Login to the machine using privileged account. * Download the latest build of AWS CLI. :* Windows download instruction and location: :: https://docs...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Installing AWS CLI ==&lt;br /&gt;
* Login to the machine using privileged account.&lt;br /&gt;
* Download the latest build of AWS CLI.&lt;br /&gt;
:* Windows download instruction and location:&lt;br /&gt;
:: https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-windows.html&lt;br /&gt;
:* Linux download instruction and location:&lt;br /&gt;
:: https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-linux.html&lt;br /&gt;
&lt;br /&gt;
== How to configure AWS Account and Access Keys ==&lt;br /&gt;
* Login to the IAM Console:&lt;br /&gt;
: https://console.aws.amazon.com/iam/&lt;br /&gt;
* From the left pane, click on Users -&amp;gt; click on “Add user” -&amp;gt; specify the user name -&amp;gt; access type: “Programmatic access” -&amp;gt; do not select “AWS Management Console access” -&amp;gt; click “Next: Permissions”&lt;br /&gt;
* From the “add user to group”, either select existing group or click on “Create group” -&amp;gt; click “Next: Review” -&amp;gt; click on “Create user”&lt;br /&gt;
* Download the CSV file with the “Access key ID” and “Secret access key” and save the CSV file in a secure location&lt;br /&gt;
* Click Close&lt;br /&gt;
&lt;br /&gt;
== Configuring the AWS CLI ==&lt;br /&gt;
* Run the command below in-order to configure AWS CLI:&lt;br /&gt;
: &#039;&#039;&#039;aws configure –profile &amp;lt;profile_name&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
:* &#039;&#039;&#039;Profile name&#039;&#039;&#039; – set relevant target profile name&lt;br /&gt;
:* &#039;&#039;&#039;AWS Access Key ID&#039;&#039;&#039; - Specify the value from the CSV of the previously created IAM user&lt;br /&gt;
:* &#039;&#039;&#039;AWS Secret Access Key&#039;&#039;&#039; - Specify the value from the CSV of the previously created IAM user&lt;br /&gt;
:* &#039;&#039;&#039;Default region name&#039;&#039;&#039; - Specify a region such as &#039;&#039;&#039;eu-west-1&#039;&#039;&#039;&lt;br /&gt;
:: Full list: https://docs.aws.amazon.com/general/latest/gr/rande.html&lt;br /&gt;
:* &#039;&#039;&#039;Default output format&#039;&#039;&#039; - JSON&lt;br /&gt;
:: Note 1: By default, the credentials file is stored here:&lt;br /&gt;
::* On Windows: &#039;&#039;&#039;C:\Users\username.aws\credentials&#039;&#039;&#039;&lt;br /&gt;
::* On Linux: &#039;&#039;&#039;~/.aws/credentials&#039;&#039;&#039;&lt;br /&gt;
:: Note 2: Reference about configuration and credential file settings can be found at:&lt;br /&gt;
:: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=How_To&amp;diff=977</id>
		<title>How To</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=How_To&amp;diff=977"/>
		<updated>2020-06-08T11:34:42Z</updated>

		<summary type="html">&lt;p&gt;Eyales: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[AWS CLI Cheat Sheet]]&lt;br /&gt;
*[[Best practices for AWS cost optimization]]&lt;br /&gt;
*[[Best practices for managing AWS account]]&lt;br /&gt;
*[[Best practices for securing AWS account]]&lt;br /&gt;
*[[How to add permissions to AWS resources using AWS CLI on Windows client]]&lt;br /&gt;
*[[How to configure MFA (Multi-Factor Authentication) for AWS IAM User]]&lt;br /&gt;
*[[How to configure S3 bucket]]&lt;br /&gt;
*[[How to connect to S3 bucket using Windows client]]&lt;br /&gt;
*[[How to create a new security group]]&lt;br /&gt;
*[[How to create a route table]]&lt;br /&gt;
*[[How to create a subnet]]&lt;br /&gt;
*[[How to create a user account in AWS IAM]]&lt;br /&gt;
*[[How to create an EBS volume]]&lt;br /&gt;
*[[How to create an AWS Managed Microsoft AD directory]]&lt;br /&gt;
*[[How to create Amazon EC2 instance and perform login using SSH]]&lt;br /&gt;
*[[How to create Amazon Virtual Private Cloud (VPC)]]&lt;br /&gt;
*[[How to create AWS ParallelCluster with Slurm scheduler]]&lt;br /&gt;
*[[How to create budget and billing alerts]]&lt;br /&gt;
*[[How to create Windows based Amazon EC2 instance from the AWS Marketplace]]&lt;br /&gt;
*[[How to mount Amazon S3 Storage inside a Linux machine]]&lt;br /&gt;
*[[How to register for the AWSome Day]]&lt;br /&gt;
*[[How to set up Amazon FSx for Windows File Server]]&lt;br /&gt;
*[[How to sync files to Amazon Glacier]]&lt;br /&gt;
*[[Recommendations for configuring an AWS linked account]]&lt;br /&gt;
*[[Using AWS CLI for managing AWS Resources]]&lt;br /&gt;
*[[Using PowerShell for managing AWS resources]]&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=Using_PowerShell_to_manage_GCP_resources&amp;diff=976</id>
		<title>Using PowerShell to manage GCP resources</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=Using_PowerShell_to_manage_GCP_resources&amp;diff=976"/>
		<updated>2020-06-06T13:13:57Z</updated>

		<summary type="html">&lt;p&gt;Eyales: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== How to configure PowerShell for managing GCP resources (Windows platform) ==&lt;br /&gt;
* Login to the machine using privileged account.&lt;br /&gt;
* Follow the instructions below to install the latest build of PowerShell:&lt;br /&gt;
: https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell?view=powershell-7&lt;br /&gt;
* From command prompt, run the command below to invoke PowerShell:&lt;br /&gt;
: &#039;&#039;&#039;pwsh&#039;&#039;&#039;&lt;br /&gt;
: Note: You need to run cmd.exe or pwsh.exe as administrator.&lt;br /&gt;
* Run the command below to find out the current PowerShell version:&lt;br /&gt;
: &#039;&#039;&#039;$PSVersionTable.PSVersion&#039;&#039;&#039;&lt;br /&gt;
* In-case you currently have version older than 5.1, follow the article below to locate the download URL for upgrading to the latest version of PowerShell:&lt;br /&gt;
: https://docs.microsoft.com/en-us/powershell/scripting/install/migrating-from-windows-powershell-51-to-powershell-7?view=powershell-7&lt;br /&gt;
* Run the command below to install Cloud SDK tools for PowerShell:&lt;br /&gt;
: &#039;&#039;&#039;Install-Module -Name GoogleCloud -Force&#039;&#039;&#039;&lt;br /&gt;
* List all available cmdlets of Google Cloud PowerShell SDK:&lt;br /&gt;
: &#039;&#039;&#039;Get-Command -CommandType Cmdlet -Module GoogleCloud*&#039;&#039;&#039;&lt;br /&gt;
* Install Google Cloud SDK, as instructed below:&lt;br /&gt;
: https://cloud.google.com/sdk/docs/quickstart-windows&lt;br /&gt;
* Run the following from command prompt to initialize the Cloud SDK:&lt;br /&gt;
: &#039;&#039;&#039;gcloud init --console-only&#039;&#039;&#039;&lt;br /&gt;
* Select a GCP project from the list&lt;br /&gt;
* Select a default Compute region and zone&lt;br /&gt;
&lt;br /&gt;
== How to configure PowerShell for managing GCP resources (RHEL/CentOS platform) ==&lt;br /&gt;
* Login to the machine using privileged account.&lt;br /&gt;
* Run the command below to register the RedHat 7 or CentOS 7 repository:&lt;br /&gt;
: &#039;&#039;&#039;curl https://packages.microsoft.com/config/rhel/7/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo&#039;&#039;&#039;&lt;br /&gt;
* Run the command below to install PowerShell:&lt;br /&gt;
: &#039;&#039;&#039;sudo yum install -y powershell&#039;&#039;&#039;&lt;br /&gt;
* From command prompt, run the command below to invoke PowerShell:&lt;br /&gt;
: &#039;&#039;&#039;sudo pwsh&#039;&#039;&#039;&lt;br /&gt;
* Run the command below to find out the current PowerShell version:&lt;br /&gt;
: &#039;&#039;&#039;$PSVersionTable.PSVersion&#039;&#039;&#039;&lt;br /&gt;
* Run the command below to install Cloud SDK tools for PowerShell:&lt;br /&gt;
: &#039;&#039;&#039;Install-Module -Name GoogleCloud -Force&#039;&#039;&#039;&lt;br /&gt;
* List all available cmdlets of Google Cloud PowerShell SDK:&lt;br /&gt;
: &#039;&#039;&#039;Get-Command -CommandType Cmdlet -Module GoogleCloud*&#039;&#039;&#039;&lt;br /&gt;
* Install Google Cloud SDK, as instructed below:&lt;br /&gt;
: https://cloud.google.com/sdk/docs/quickstart-redhat-centos&lt;br /&gt;
* Run the following from command prompt to initialize the Cloud SDK:&lt;br /&gt;
: &#039;&#039;&#039;gcloud init --console-only&#039;&#039;&#039;&lt;br /&gt;
* Select a GCP project from the list&lt;br /&gt;
* Select a default Compute region and zone&lt;br /&gt;
&lt;br /&gt;
== How to configure PowerShell for managing GCP resources (Ubuntu 18.04 platform) ==&lt;br /&gt;
* Login to the machine using privileged account.&lt;br /&gt;
* Run the command below to register the Ubuntu 18.04 repository:&lt;br /&gt;
: &#039;&#039;&#039;wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;sudo dpkg -i packages-microsoft-prod.deb&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;sudo apt-get update&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;sudo add-apt-repository universe&#039;&#039;&#039;&lt;br /&gt;
* Run the command below to install PowerShell:&lt;br /&gt;
: &#039;&#039;&#039;sudo apt-get install -y powershell&#039;&#039;&#039;&lt;br /&gt;
* From command prompt, run the command below to invoke PowerShell:&lt;br /&gt;
: &#039;&#039;&#039;pwsh&#039;&#039;&#039;&lt;br /&gt;
* Run the command below to find out the current PowerShell version:&lt;br /&gt;
: &#039;&#039;&#039;$PSVersionTable.PSVersion&#039;&#039;&#039;&lt;br /&gt;
* Run the command below to install Cloud SDK tools for PowerShell:&lt;br /&gt;
: &#039;&#039;&#039;Install-Module -Name GoogleCloud -Force&#039;&#039;&#039;&lt;br /&gt;
* List all available cmdlets of Google Cloud PowerShell SDK:&lt;br /&gt;
: &#039;&#039;&#039;Get-Command -CommandType Cmdlet -Module GoogleCloud*&#039;&#039;&#039;&lt;br /&gt;
* Install Google Cloud SDK, as instructed below:&lt;br /&gt;
: https://cloud.google.com/sdk/docs/quickstart-debian-ubuntu&lt;br /&gt;
* Run the following from command prompt to initialize the Cloud SDK:&lt;br /&gt;
: &#039;&#039;&#039;gcloud init --console-only&#039;&#039;&#039;&lt;br /&gt;
* Select a GCP project from the list&lt;br /&gt;
* Select a default Compute region and zone&lt;br /&gt;
&lt;br /&gt;
== Common PowerShell commands for GCP ==&lt;br /&gt;
* Login to Google Cloud Platform:&lt;br /&gt;
: &#039;&#039;&#039;gcloud auth login --no-launch-browser&#039;&#039;&#039;&lt;br /&gt;
* List all active GCP accounts:&lt;br /&gt;
: &#039;&#039;&#039;gcloud auth list&#039;&#039;&#039;&lt;br /&gt;
* Change the active account:&lt;br /&gt;
: &#039;&#039;&#039;gcloud config set account &amp;lt;Account_Name&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &amp;lt;Account_Name&amp;gt; with the target GCP account&lt;br /&gt;
* Lists all available GCP projects:&lt;br /&gt;
: &#039;&#039;&#039;Get-GcpProject | select Name,ProjectId&#039;&#039;&#039;&lt;br /&gt;
* Change the GCP project:&lt;br /&gt;
: &#039;&#039;&#039;gcloud config set project “&amp;lt;Project_ID&amp;gt;”&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &amp;lt;Project_ID&amp;gt; with the target GCP project ID&lt;br /&gt;
&lt;br /&gt;
== Network related commands ==&lt;br /&gt;
* List available networks:&lt;br /&gt;
: &#039;&#039;&#039;Get-GceNetwork | select Name,AutoCreateSubnetworks,IPv4Range,GatewayIPv4&#039;&#039;&#039;&lt;br /&gt;
* Create a new network inside a specific GCP project:&lt;br /&gt;
: &#039;&#039;&#039;New-GceNetwork -Name &amp;quot;my-network&amp;quot; -IPv4Range &amp;lt;CIDR_Block&amp;gt; -Project &amp;quot;my-project&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
: Note 1: The above commands should be written as a single line&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;my-network&#039;&#039;&#039; with the relevant network name&lt;br /&gt;
: Note 3: Replace &#039;&#039;&#039;&amp;lt;CIDR_Block&amp;gt;&#039;&#039;&#039; with the relevant value (such as 10.240.0.0/16)&lt;br /&gt;
: Note 4: Replace &#039;&#039;&#039;my-project&#039;&#039;&#039; with the target GCP project ID&lt;br /&gt;
* Delete a network inside a specific GCP project:&lt;br /&gt;
: &#039;&#039;&#039;Remove-GceNetwork -Network &amp;quot;my-network&amp;quot; -Project &amp;quot;my-project&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;my-network&#039;&#039;&#039; with the relevant network name&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;my-project&#039;&#039;&#039; with the target GCP project ID&lt;br /&gt;
&lt;br /&gt;
== Firewall rules related commands ==&lt;br /&gt;
* List all available Firewall rules inside a GCP project:&lt;br /&gt;
: &#039;&#039;&#039;Get-GceFirewall -Project &amp;quot;my-project&amp;quot; | select Name,Direction,Priority,Allowed,Denied&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &#039;&#039;&#039;my-project&#039;&#039;&#039; with the target GCP project ID&lt;br /&gt;
* List settings of a specific Firewall rule inside a GCP project:&lt;br /&gt;
: &#039;&#039;&#039;Get-GceFirewall &amp;quot;my-firewall&amp;quot; -Project &amp;quot;my-project&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;my-firewall&#039;&#039;&#039; with the specific firewall rule name&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;my-project&#039;&#039;&#039; with the target GCP project ID&lt;br /&gt;
* Create a new Web allow firewall rule:&lt;br /&gt;
: &#039;&#039;&#039;New-GceFirewallProtocol tcp -Port 80 | Add-GceFirewall -Project &amp;quot;my-project&amp;quot; -Name &amp;quot;rule-name&amp;quot; -Network &amp;quot;my-network&amp;quot; -Description &amp;quot;Allow Web Traffic&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
: Note 1: The above commands should be written as a single line&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;80&#039;&#039;&#039; with the target port number&lt;br /&gt;
: Note 3: Replace &#039;&#039;&#039;my-project&#039;&#039;&#039; with the target GCP project ID&lt;br /&gt;
: Note 4: Replace &#039;&#039;&#039;rule-name&#039;&#039;&#039; with the target rule name&lt;br /&gt;
: Note 5: Replace &#039;&#039;&#039;my-network&#039;&#039;&#039; with the relevant network name&lt;br /&gt;
: Note 6: Replace &#039;&#039;&#039;&amp;quot;Allow Web Traffic&amp;quot;&#039;&#039;&#039; with a relevant rule description&lt;br /&gt;
&lt;br /&gt;
== VM Instance related commands ==&lt;br /&gt;
* List all available VM instances in the current GCP project:&lt;br /&gt;
: &#039;&#039;&#039;Get-GceInstance&#039;&#039;&#039;&lt;br /&gt;
* List available VM instance image types, sorted by Name and Family:&lt;br /&gt;
: &#039;&#039;&#039;Get-GceImage | Format-Table Name,Family&#039;&#039;&#039;&lt;br /&gt;
* List all machine types:&lt;br /&gt;
: &#039;&#039;&#039;Get-GceMachineType | Format-Table Name,Zone,GuestCpus,MemoryMb,Deprecated&#039;&#039;&#039;&lt;br /&gt;
* Create a new CentOS 7 VM instance:&lt;br /&gt;
: &#039;&#039;&#039;$disk = Get-GceImage &amp;quot;centos-cloud&amp;quot; -Family &amp;quot;centos-7&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;$config = New-GceInstanceConfig &amp;quot;my-sample-vm&amp;quot; -MachineType &amp;quot;n1-standard-1&amp;quot; -Region europe-west2 -DiskImage $disk&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;$config | Add-GceInstance -Project &amp;quot;my-project&amp;quot; -Zone &amp;quot;europe-west2-a&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
: Note 1: The second command should be written as a single line&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;centos-cloud&#039;&#039;&#039; with the relevant Image-project&lt;br /&gt;
: Note 3: Replace &#039;&#039;&#039;centos-7&#039;&#039;&#039; with the relevant Image-family&lt;br /&gt;
: Note 4: Replace &#039;&#039;&#039;my-sample-vm&#039;&#039;&#039; with the target VM instance hostname&lt;br /&gt;
: Note 5: Replace &#039;&#039;&#039;n1-standard-1&#039;&#039;&#039; with the relevant VM instance type, from the list:&lt;br /&gt;
: https://cloud.google.com/compute/docs/machine-types&lt;br /&gt;
: Note 6: Replace &#039;&#039;&#039;europe-west2&#039;&#039;&#039; with the target region&lt;br /&gt;
: Note 7: Replace &#039;&#039;&#039;my-project&#039;&#039;&#039; with the target GCP project ID &lt;br /&gt;
: Note 7: Replace &#039;&#039;&#039;europe-west2-a&#039;&#039;&#039; with the target zone&lt;br /&gt;
* Get information about specific VM instance in a specific zone:&lt;br /&gt;
: &#039;&#039;&#039;Get-GceInstance &amp;quot;my-instance&amp;quot; -Project &amp;quot;my-project&amp;quot; -Zone &amp;quot;europe-west2-a&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;my-instance&#039;&#039;&#039; with the target VM instance hostname&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;my-project&#039;&#039;&#039; with the target GCP project ID&lt;br /&gt;
: Note 3: Replace &#039;&#039;&#039;europe-west2-a&#039;&#039;&#039; with the target zone&lt;br /&gt;
* Start VM instance in a specific zone:&lt;br /&gt;
: &#039;&#039;&#039;Start-GceInstance -Name &amp;quot;my-instance&amp;quot; -Project &amp;quot;my-project&amp;quot; -Zone &amp;quot;europe-west2-a&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;my-instance&#039;&#039;&#039; with the target VM instance hostname&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;my-project&#039;&#039;&#039; with the target GCP project ID&lt;br /&gt;
: Note 3: Replace &#039;&#039;&#039;europe-west2-a&#039;&#039;&#039; with the target zone&lt;br /&gt;
* Restart VM instance in a specific zone:&lt;br /&gt;
: &#039;&#039;&#039;Restart-GceInstance -Name &amp;quot;my-instance&amp;quot; -Project &amp;quot;my-project&amp;quot; -Zone &amp;quot;europe-west2-a&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
: Note 1: The second command should be written as a single line&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;my-instance&#039;&#039;&#039; with the target VM instance hostname&lt;br /&gt;
: Note 3: Replace &#039;&#039;&#039;my-project&#039;&#039;&#039; with the target GCP project ID&lt;br /&gt;
: Note 4: Replace &#039;&#039;&#039;europe-west2-a&#039;&#039;&#039; with the target zone&lt;br /&gt;
* Stop VM instance in a specific zone:&lt;br /&gt;
: &#039;&#039;&#039;Stop-GceInstance -Name &amp;quot;my-instance&amp;quot; -Project &amp;quot;my-project&amp;quot; -Zone &amp;quot;europe-west2-a&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;my-instance&#039;&#039;&#039; with the target VM instance hostname&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;my-project&#039;&#039;&#039; with the target GCP project ID&lt;br /&gt;
: Note 3: Replace &#039;&#039;&#039;europe-west2-a&#039;&#039;&#039; with the target zone&lt;br /&gt;
&lt;br /&gt;
== Storage related commands ==&lt;br /&gt;
* List all Google Cloud Storage buckets inside the current GCP project:&lt;br /&gt;
: &#039;&#039;&#039;Get-GcsBucket -Project &amp;quot;&amp;lt;Project_ID&amp;gt;&amp;quot; | select Name&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &#039;&#039;&#039;&amp;lt;Project_ID&amp;gt;&#039;&#039;&#039; with the target GCP project ID&lt;br /&gt;
* Create a new Google Cloud Storage bucket:&lt;br /&gt;
: &#039;&#039;&#039;New-GcsBucket -Name &amp;quot;my-bucket&amp;quot; -Project &amp;quot;&amp;lt;Project_ID&amp;gt;&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;my-bucket&#039;&#039;&#039; with the target bucket name&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;&amp;lt;Project_ID&amp;gt;&#039;&#039;&#039; with the target GCP project ID&lt;br /&gt;
* Remove Google Cloud Storage bucket:&lt;br /&gt;
: &#039;&#039;&#039;Remove-GcsBucket &amp;quot;my-bucket&amp;quot; -Force&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &#039;&#039;&#039;my-bucket&#039;&#039;&#039; with the target bucket name&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=Using_Google_Cloud_SDK_CLI_Tools_for_managing_GCP_resources&amp;diff=975</id>
		<title>Using Google Cloud SDK CLI Tools for managing GCP resources</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=Using_Google_Cloud_SDK_CLI_Tools_for_managing_GCP_resources&amp;diff=975"/>
		<updated>2020-06-06T13:04:19Z</updated>

		<summary type="html">&lt;p&gt;Eyales: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== How to install Google Cloud SDK (Windows Platform) ==&lt;br /&gt;
* Login to the machine using privileged account.&lt;br /&gt;
* Install Google Cloud SDK, as instructed below:&lt;br /&gt;
: https://cloud.google.com/sdk/docs/quickstart-windows&lt;br /&gt;
* Run the following from command prompt to initialize the Cloud SDK:&lt;br /&gt;
: &#039;&#039;&#039;gcloud init --console-only&#039;&#039;&#039;&lt;br /&gt;
* Select a GCP project from the list&lt;br /&gt;
* Select a default Compute region and zone&lt;br /&gt;
&lt;br /&gt;
== How to install Google Cloud SDK (RHEL / CentOS Platform) ==&lt;br /&gt;
* Login to the machine using privileged account.&lt;br /&gt;
* Install Google Cloud SDK, as instructed below:&lt;br /&gt;
: https://cloud.google.com/sdk/docs/quickstart-redhat-centos&lt;br /&gt;
* Run the following command to initialize the Cloud SDK:&lt;br /&gt;
: &#039;&#039;&#039;gcloud init --console-only&#039;&#039;&#039;&lt;br /&gt;
* Select a GCP project from the list&lt;br /&gt;
* Select a default Compute region and zone&lt;br /&gt;
&lt;br /&gt;
== How to install Google Cloud SDK (Ubuntu/Debian Platform) ==&lt;br /&gt;
* Login to the machine using privileged account.&lt;br /&gt;
* Install Google Cloud SDK, as instructed below:&lt;br /&gt;
: https://cloud.google.com/sdk/docs/quickstart-debian-ubuntu&lt;br /&gt;
* Run the following from command prompt to initialize the Cloud SDK:&lt;br /&gt;
: &#039;&#039;&#039;gcloud init --console-only&#039;&#039;&#039;&lt;br /&gt;
* Select a GCP project from the list&lt;br /&gt;
* Select a default Compute region and zone&lt;br /&gt;
&lt;br /&gt;
== Common Google Cloud SDK CLI Commands ==&lt;br /&gt;
* Login to Google Cloud Platform:&lt;br /&gt;
: &#039;&#039;&#039;gcloud auth application-default login --no-launch-browser&#039;&#039;&#039;&lt;br /&gt;
* List all active GCP accounts:&lt;br /&gt;
: &#039;&#039;&#039;gcloud auth list&#039;&#039;&#039;&lt;br /&gt;
* Change the active account:&lt;br /&gt;
: &#039;&#039;&#039;gcloud config set account &amp;lt;Account_Name&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &#039;&#039;&#039;&amp;lt;Account_Name&amp;gt;&#039;&#039;&#039; with the target GCP account&lt;br /&gt;
* Lists all available GCP projects:&lt;br /&gt;
: &#039;&#039;&#039;gcloud projects list&#039;&#039;&#039;&lt;br /&gt;
* Change the GCP project:&lt;br /&gt;
: &#039;&#039;&#039;gcloud config set project “&amp;lt;Project_ID&amp;gt;”&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &#039;&#039;&#039;&amp;lt;Project_ID&amp;gt;&#039;&#039;&#039; with the target GCP project ID&lt;br /&gt;
&lt;br /&gt;
== Network related commands ==&lt;br /&gt;
* List available networks:&lt;br /&gt;
: &#039;&#039;&#039;gcloud compute networks list&#039;&#039;&#039;&lt;br /&gt;
* Create a new network:&lt;br /&gt;
: &#039;&#039;&#039;gcloud compute networks create my-network&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &#039;&#039;&#039;my-network&#039;&#039;&#039; with the relevant network name&lt;br /&gt;
* Delete a network:&lt;br /&gt;
: &#039;&#039;&#039;gcloud compute networks delete my-network&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &#039;&#039;&#039;my-network&#039;&#039;&#039; with the relevant network name&lt;br /&gt;
* List available subnets:&lt;br /&gt;
: &#039;&#039;&#039;gcloud compute networks subnets list&#039;&#039;&#039;&lt;br /&gt;
* Create a new subnet:&lt;br /&gt;
: &#039;&#039;&#039;gcloud compute networks subnets create my-subnet --network=my-network --range=&amp;lt;Subnet address prefix CIDR&amp;gt; --region=region-name&#039;&#039;&#039;&lt;br /&gt;
: Note 1: The above commands should be written as a single line&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;my-subnet&#039;&#039;&#039; with your own subnet name (in lower-case)&lt;br /&gt;
: Note 3: Replace &#039;&#039;&#039;my-network&#039;&#039;&#039; with the relevant network name&lt;br /&gt;
: Note 4: Replace &#039;&#039;&#039;&amp;lt;Subnet address prefix CIDR&amp;gt;&#039;&#039;&#039; with the relevant value (such as 192.168.0.0/20)&lt;br /&gt;
: Note 5: Replace &#039;&#039;&#039;region-name&#039;&#039;&#039; with value from the list below:&lt;br /&gt;
: https://cloud.google.com/compute/docs/regions-zones/&lt;br /&gt;
&lt;br /&gt;
== Firewall rules related commands ==&lt;br /&gt;
* List all available Firewall rules inside a GCP project:&lt;br /&gt;
: &#039;&#039;&#039;gcloud compute firewall-rules list&#039;&#039;&#039;&lt;br /&gt;
* List settings of a specific Firewall rule:&lt;br /&gt;
: &#039;&#039;&#039;gcloud compute firewall-rules describe default-allow-ssh&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &#039;&#039;&#039;default-allow-ssh&#039;&#039;&#039; with the target firewall rule name&lt;br /&gt;
* Create a new RDP allow firewall rule:&lt;br /&gt;
: &#039;&#039;&#039;gcloud compute firewall-rules create allow-rdp --allow tcp:3389 --description=&amp;quot;Allow RDP&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
: Note 1: The above commands should be written as a single line&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;allow-rdp&#039;&#039;&#039; with your own rule name (in lower-case)&lt;br /&gt;
: Note 3: Replace &#039;&#039;&#039;3389&#039;&#039;&#039; with the target port number&lt;br /&gt;
: Note 4: Replace &#039;&#039;&#039;&amp;quot;Allow RDP&amp;quot;&#039;&#039;&#039; with your own rule description&lt;br /&gt;
&lt;br /&gt;
== VM Instance related commands ==&lt;br /&gt;
* List all available VM instances in the current GCP project:&lt;br /&gt;
: &#039;&#039;&#039;gcloud compute instances list&#039;&#039;&#039;&lt;br /&gt;
* List available VM instance image types, sorted by Project and Family:&lt;br /&gt;
: &#039;&#039;&#039;gcloud compute images list&#039;&#039;&#039;&lt;br /&gt;
* List all machine types:&lt;br /&gt;
: &#039;&#039;&#039;gcloud compute machine-types list&#039;&#039;&#039;&lt;br /&gt;
* Create a new CentOS 7 VM instance:&lt;br /&gt;
: &#039;&#039;&#039;gcloud compute instances create my-sample-vm --image-family centos-7 --image-project centos-cloud --zone europe-west2-a&#039;&#039;&#039;&lt;br /&gt;
: Note 1: The above commands should be written as a single line&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;my-sample-vm&#039;&#039;&#039; with the target VM instance hostname&lt;br /&gt;
: Note 3: Replace &#039;&#039;&#039;centos-7&#039;&#039;&#039; with the relevant Image-family&lt;br /&gt;
: Note 4: Replace &#039;&#039;&#039;centos-cloud&#039;&#039;&#039; with the relevant Image-project&lt;br /&gt;
: Note 5: Replace &#039;&#039;&#039;europe-west2-a&#039;&#039;&#039; with the target zone, from the list:&lt;br /&gt;
: https://cloud.google.com/compute/docs/regions-zones/&lt;br /&gt;
* Get information about specific VM instance in a specific zone:&lt;br /&gt;
: &#039;&#039;&#039;gcloud compute instances describe my-sample-vm --zone europe-west2-a&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;my-sample-vm&#039;&#039;&#039; with the target VM instance hostname&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;europe-west2-a&#039;&#039;&#039; with the target zone, from the list:&lt;br /&gt;
: https://cloud.google.com/compute/docs/regions-zones/&lt;br /&gt;
* Show VM instance power state:&lt;br /&gt;
: &#039;&#039;&#039;gcloud compute instances describe my-sample-vm --zone europe-west2-a --format=&#039;table(name,status)&#039;&#039;&#039;&#039;&lt;br /&gt;
: Note 1: The above commands should be written as a single line&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;my-sample-vm&#039;&#039;&#039; with the target VM instance hostname&lt;br /&gt;
: Note 3: Replace &#039;&#039;&#039;europe-west2-a&#039;&#039;&#039; with the target zone, from the list:&lt;br /&gt;
: https://cloud.google.com/compute/docs/regions-zones/&lt;br /&gt;
* Start VM instance in a specific zone:&lt;br /&gt;
: &#039;&#039;&#039;gcloud compute instances start my-sample-vm --zone europe-west2-a&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;my-sample-vm&#039;&#039;&#039; with the target VM instance hostname&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;europe-west2-a&#039;&#039;&#039; with the target zone, from the list:&lt;br /&gt;
: https://cloud.google.com/compute/docs/regions-zones/&lt;br /&gt;
* Restart VM instance in a specific zone:&lt;br /&gt;
: &#039;&#039;&#039;gcloud compute instances reset my-sample-vm --zone europe-west2-a&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;my-sample-vm&#039;&#039;&#039; with the target VM instance hostname&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;europe-west2-a&#039;&#039;&#039; with the target zone, from the list:&lt;br /&gt;
: https://cloud.google.com/compute/docs/regions-zones/&lt;br /&gt;
* Stop VM instance in a specific zone:&lt;br /&gt;
: &#039;&#039;&#039;gcloud compute instances stop my-sample-vm --zone europe-west2-a&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;my-sample-vm&#039;&#039;&#039; with the target VM instance hostname&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;europe-west2-a&#039;&#039;&#039; with the target zone, from the list:&lt;br /&gt;
: https://cloud.google.com/compute/docs/regions-zones/&lt;br /&gt;
&lt;br /&gt;
== Storage related commands ==&lt;br /&gt;
* List all Google Cloud Storage buckets inside the current GCP project:&lt;br /&gt;
: &#039;&#039;&#039;gsutil ls -p “&amp;lt;Project_ID&amp;gt;”&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &#039;&#039;&#039;&amp;lt;Project_ID&amp;gt;&#039;&#039;&#039; with the target GCP project ID&lt;br /&gt;
* Create a new Google Cloud Storage bucket:&lt;br /&gt;
: &#039;&#039;&#039;gsutil mb -c regional -l europe-west2 gs://my-bucket -p “&amp;lt;Project_ID&amp;gt;”&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;europe-west2&#039;&#039;&#039; with the target region&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;my-bucket&#039;&#039;&#039; with the target bucket name&lt;br /&gt;
: Note 3: Replace &#039;&#039;&#039;&amp;lt;Project_ID&amp;gt;&#039;&#039;&#039; with the target GCP project ID&lt;br /&gt;
* Remove Google Cloud Storage bucket:&lt;br /&gt;
: &#039;&#039;&#039;gsutil rm -r gs://my-bucket/&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &#039;&#039;&#039;my-bucket&#039;&#039;&#039; with the target bucket name&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=Using_PowerShell_for_managing_Azure_resources&amp;diff=974</id>
		<title>Using PowerShell for managing Azure resources</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=Using_PowerShell_for_managing_Azure_resources&amp;diff=974"/>
		<updated>2020-06-06T13:02:06Z</updated>

		<summary type="html">&lt;p&gt;Eyales: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== How to configure PowerShell for managing Azure resources (Windows platform) ==&lt;br /&gt;
* Login to the machine using privileged account.&lt;br /&gt;
* Follow the instructions below to install the latest build of PowerShell:&lt;br /&gt;
: https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell?view=powershell-7&lt;br /&gt;
* From command prompt, run the command below to invoke PowerShell:&lt;br /&gt;
: &#039;&#039;&#039;pwsh&#039;&#039;&#039;&lt;br /&gt;
: Note: You need to run cmd.exe or PowerShell.exe as administrator.&lt;br /&gt;
* Run the command below to find out the current PowerShell version:&lt;br /&gt;
: &#039;&#039;&#039;$PSVersionTable.PSVersion&#039;&#039;&#039;&lt;br /&gt;
* In-case you currently have version older than 5.1, follow the article below to locate the download URL for upgrading to the latest version of PowerShell:&lt;br /&gt;
: https://docs.microsoft.com/en-us/powershell/scripting/install/migrating-from-windows-powershell-51-to-powershell-7?view=powershell-7&lt;br /&gt;
* Run the command below to install Azure cmdlet for PowerShell:&lt;br /&gt;
: &#039;&#039;&#039;Install-Module -Name Az -AllowClobber -Force&#039;&#039;&#039;&lt;br /&gt;
* Run the commands below to update to the latest Azure cmdlet for PowerShell:&lt;br /&gt;
: &#039;&#039;&#039;Update-Module -Name Az -Force&#039;&#039;&#039;&lt;br /&gt;
* To view the installed versions of Az, run the command below:&lt;br /&gt;
: &#039;&#039;&#039;Get-InstalledModule -Name Az | select Name,Version&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== How to configure PowerShell for managing Azure resources (RHEL/CentOS platform) ==&lt;br /&gt;
* Login to the machine using privileged account.&lt;br /&gt;
* Run the command below to register the RedHat 7 or CentOS 7 repository:&lt;br /&gt;
: &#039;&#039;&#039;curl https://packages.microsoft.com/config/rhel/7/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo&#039;&#039;&#039;&lt;br /&gt;
: Note: The above command should be written in a single line&lt;br /&gt;
* Run the command below to install PowerShell:&lt;br /&gt;
: &#039;&#039;&#039;sudo yum install -y powershell&#039;&#039;&#039;&lt;br /&gt;
* From command prompt, run the command below to invoke PowerShell:&lt;br /&gt;
: &#039;&#039;&#039;sudo pwsh&#039;&#039;&#039;&lt;br /&gt;
: Note: You need to run cmd.exe or PowerShell.exe as administrator.&lt;br /&gt;
* Run the command below to find out the current PowerShell version:&lt;br /&gt;
: &#039;&#039;&#039;$PSVersionTable.PSVersion&#039;&#039;&#039;&lt;br /&gt;
* Run the command below to install Azure cmdlet for PowerShell:&lt;br /&gt;
: &#039;&#039;&#039;Install-Module -Name Az -AllowClobber -Force&#039;&#039;&#039;&lt;br /&gt;
* Run the commands below to update to the latest Azure cmdlet for PowerShell:&lt;br /&gt;
: &#039;&#039;&#039;Update-Module -Name Az -Force&#039;&#039;&#039;&lt;br /&gt;
* To view the installed versions of Az, run the command below:&lt;br /&gt;
: &#039;&#039;&#039;Get-InstalledModule -Name Az | select Name,Version&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== How to configure PowerShell for managing Azure resources (Ubuntu 18.04 platform) ==&lt;br /&gt;
* Login to the machine using privileged account.&lt;br /&gt;
* Run the command below to register the Ubuntu 18.04 repository:&lt;br /&gt;
: &#039;&#039;&#039;wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;sudo dpkg -i packages-microsoft-prod.deb&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;sudo apt-get update&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;sudo add-apt-repository universe&#039;&#039;&#039;&lt;br /&gt;
* Run the command below to install PowerShell:&lt;br /&gt;
: &#039;&#039;&#039;sudo apt-get install -y powershell&#039;&#039;&#039;&lt;br /&gt;
* From command prompt, run the command below to invoke PowerShell:&lt;br /&gt;
: &#039;&#039;&#039;pwsh&#039;&#039;&#039;&lt;br /&gt;
* Run the command below to find out the current PowerShell version:&lt;br /&gt;
: &#039;&#039;&#039;$PSVersionTable.PSVersion&#039;&#039;&#039;&lt;br /&gt;
* Run the command below to install Azure cmdlet for PowerShell:&lt;br /&gt;
: &#039;&#039;&#039;Install-Module -Name Az -AllowClobber -Force&#039;&#039;&#039;&lt;br /&gt;
* Run the commands below to update to the latest Azure cmdlet for PowerShell:&lt;br /&gt;
: &#039;&#039;&#039;Update-Module -Name Az -Force&#039;&#039;&#039;&lt;br /&gt;
* To view the installed versions of Az, run the command below:&lt;br /&gt;
: &#039;&#039;&#039;Get-InstalledModule -Name Az | select Name,Version&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== How to configure PowerShell for managing Azure resources (Debian 10 platform) ==&lt;br /&gt;
* Login to the machine using privileged account.&lt;br /&gt;
* Run the command below to register the Debian 10 repository:&lt;br /&gt;
: &#039;&#039;&#039;wget https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;sudo dpkg -i packages-microsoft-prod.deb&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;sudo apt-get update&#039;&#039;&#039;&lt;br /&gt;
* Run the command below to install PowerShell:&lt;br /&gt;
: &#039;&#039;&#039;sudo apt-get install -y powershell&#039;&#039;&#039;&lt;br /&gt;
* From command prompt, run the command below to invoke PowerShell:&lt;br /&gt;
: &#039;&#039;&#039;pwsh&#039;&#039;&#039;&lt;br /&gt;
* Run the command below to find out the current PowerShell version:&lt;br /&gt;
: &#039;&#039;&#039;$PSVersionTable.PSVersion&#039;&#039;&#039;&lt;br /&gt;
* Run the command below to install Azure cmdlet for PowerShell:&lt;br /&gt;
: &#039;&#039;&#039;Install-Module -Name Az -AllowClobber -Force&#039;&#039;&#039;&lt;br /&gt;
* Run the commands below to update to the latest Azure cmdlet for PowerShell:&lt;br /&gt;
: &#039;&#039;&#039;Update-Module -Name Az -Force&#039;&#039;&#039;&lt;br /&gt;
* To view the installed versions of Az, run the command below:&lt;br /&gt;
: &#039;&#039;&#039;Get-InstalledModule -Name Az | select Name,Version&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Common PowerShell commands for Azure ==&lt;br /&gt;
* Login to an Azure account:&lt;br /&gt;
: &#039;&#039;&#039;Connect-AzAccount&#039;&#039;&#039;&lt;br /&gt;
* List available subscriptions:&lt;br /&gt;
: &#039;&#039;&#039;Get-AzSubscription&#039;&#039;&#039;&lt;br /&gt;
* Change the context to a specific Azure subscription:&lt;br /&gt;
: &#039;&#039;&#039;Set-AzContext -SubscriptionId &amp;lt;subscriptionid&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &amp;lt;subscriptionid&amp;gt; with the relevant subscription ID&lt;br /&gt;
* Run the command below to suppress warning messages:&lt;br /&gt;
: &#039;&#039;&#039;Set-Item Env:\SuppressAzurePowerShellBreakingChangeWarnings &amp;quot;true&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Resource group related commands ==&lt;br /&gt;
* List available resource groups:&lt;br /&gt;
: &#039;&#039;&#039;Get-AzResourceGroup&#039;&#039;&#039;&lt;br /&gt;
* Create a new Azure resource group:&lt;br /&gt;
: &#039;&#039;&#039;New-AzResourceGroup -Name &amp;lt;ResourceGroupName&amp;gt; -Location &amp;lt;Location&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &amp;lt;ResourceGroupName&amp;gt; with your own relevant group name&lt;br /&gt;
: Note 2: Replace &amp;lt;Location&amp;gt; with the target location, from the list below:&lt;br /&gt;
: https://azure.microsoft.com/en-us/global-infrastructure/locations/&lt;br /&gt;
: Example:&lt;br /&gt;
: &#039;&#039;&#039;New-AzResourceGroup -Name RG01 -Location &amp;quot;West Europe&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Networking related commands ==&lt;br /&gt;
* List available virtual networks:&lt;br /&gt;
: &#039;&#039;&#039;Get-AzVirtualNetwork&#039;&#039;&#039;&lt;br /&gt;
* List available subnets&lt;br /&gt;
: &#039;&#039;&#039;Get-AzVirtualNetwork -Name &amp;lt;Virtual Network Name&amp;gt; -ResourceGroupName &amp;lt;Resource Group Name&amp;gt; | Get-AzureRmVirtualNetworkSubnetConfig | Format-Table&#039;&#039;&#039;&lt;br /&gt;
: Note 1: The above command should be written in a single line&lt;br /&gt;
: Note 2: Replace &amp;lt;Virtual Network Name&amp;gt; with the relevant VNET&lt;br /&gt;
: Note 3: Replace &amp;lt;Resource Group Name&amp;gt; with the relevant resource group name&lt;br /&gt;
: Example:&lt;br /&gt;
: &#039;&#039;&#039;Get-AzVirtualNetwork -Name VNET01 -ResourceGroupName RG01 | Get-AzVirtualNetworkSubnetConfig | Format-Table&#039;&#039;&#039;&lt;br /&gt;
* Create a new virtual network and a new subnet:&lt;br /&gt;
: &#039;&#039;&#039;$subnetConfig = New-AzVirtualNetworkSubnetConfig -Name &amp;lt;SubnetName&amp;gt; -AddressPrefix &amp;lt;Subnet address prefix CIDR&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;New-AzVirtualNetwork -ResourceGroupName &amp;lt;Resource Group Name&amp;gt; -Location &amp;lt;Location&amp;gt; -Name &amp;lt;Virtual network name&amp;gt; -AddressPrefix &amp;lt;Virtual network address prefix CIDR&amp;gt; -Subnet $subnetConfig&#039;&#039;&#039;&lt;br /&gt;
: Note 1: The above commands should be written in a single line (for each command)&lt;br /&gt;
: Note 2: Replace &amp;lt;SubnetName&amp;gt; with a relevant subnet name&lt;br /&gt;
: Note 3: Replace &amp;lt;Subnet address prefix CIDR&amp;gt; with relevant value (see example below)&lt;br /&gt;
: Note 4: Replace &amp;lt;Resource Group Name&amp;gt; with relevant value (see example below)&lt;br /&gt;
: Note 5: Replace &amp;lt;Location&amp;gt; with the target location, from the list below:&lt;br /&gt;
: https://azure.microsoft.com/en-us/global-infrastructure/locations/&lt;br /&gt;
: Note 6: Replace &amp;lt;Virtual network name&amp;gt; with relevant value (see example below)&lt;br /&gt;
: Note 7: Replace &amp;lt;Virtual network address prefix CIDR&amp;gt; with relevant value (see example below)&lt;br /&gt;
: Example: &lt;br /&gt;
: &#039;&#039;&#039;$subnetConfig = New-AzVirtualNetworkSubnetConfig -Name mySubnet -AddressPrefix 192.168.1.0/24&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;New-AzVirtualNetwork -ResourceGroupName RG01 -Location &amp;quot;UK West&amp;quot; -Name VNET01 -AddressPrefix 192.168.0.0/16 -Subnet $subnetConfig&#039;&#039;&#039;&lt;br /&gt;
* List all available network security groups:&lt;br /&gt;
: &#039;&#039;&#039;Get-AzNetworkSecurityGroup&#039;&#039;&#039;&lt;br /&gt;
* Create a new network security group:&lt;br /&gt;
: &#039;&#039;&#039;New-AzNetworkSecurityGroup -ResourceGroupName &amp;lt;Resource Group Name&amp;gt; -Location &amp;lt;Location&amp;gt; -Name &amp;lt;Network security group name&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
: Note 1: The above command should be written in a single line&lt;br /&gt;
: Note 2: Replace &amp;lt;Resource Group Name&amp;gt; with relevant value (see example below)&lt;br /&gt;
: Note 3: Replace &amp;lt;Location&amp;gt; with the target location, from the list below:&lt;br /&gt;
: https://azure.microsoft.com/en-us/global-infrastructure/locations/&lt;br /&gt;
: Note 4: Replace &amp;lt;Network security group name&amp;gt; with relevant value (see example below)&lt;br /&gt;
: Example:&lt;br /&gt;
: &#039;&#039;&#039;New-AzNetworkSecurityGroup -ResourceGroupName RG01 -Location &amp;quot;UK West&amp;quot; -Name myNetworkSecurityGroup&#039;&#039;&#039;&lt;br /&gt;
* List all available rules inside a network security group:&lt;br /&gt;
: &#039;&#039;&#039;Get-AzNetworkSecurityGroup -ResourceGroupName &amp;lt;Resource Group Name&amp;gt; -Name &amp;lt;Network security group name&amp;gt; | Get-AzNetworkSecurityRuleConfig | Format-Table&#039;&#039;&#039;&lt;br /&gt;
: Note 1: The above command should be written in a single line&lt;br /&gt;
: Note 2: Replace &amp;lt;Resource Group Name&amp;gt; with relevant value (see example below)&lt;br /&gt;
: Note 3: Replace &amp;lt;Network security group name&amp;gt; with relevant value (see example below)&lt;br /&gt;
: Example:&lt;br /&gt;
: &#039;&#039;&#039;Get-AzNetworkSecurityGroup -ResourceGroupName RG01 -Name myNetworkSecurityGroup | Get-AzNetworkSecurityRuleConfig | Format-Table&#039;&#039;&#039;&lt;br /&gt;
* Create a new rule inside an existing network security group:&lt;br /&gt;
: &#039;&#039;&#039;$nsgRule = New-AzNetworkSecurityRuleConfig -Name &amp;lt;Security rule name&amp;gt; -Protocol Tcp -Direction Inbound -Priority 1000 -SourceAddressPrefix * -SourcePortRange * -DestinationAddressPrefix * -DestinationPortRange 3389 -Access Allow&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;New-AzNetworkSecurityGroup -ResourceGroupName &amp;lt;Resource Group Name&amp;gt; -Location &amp;lt;Location&amp;gt; -Name &amp;lt;Network security group name&amp;gt; -SecurityRules $nsgRule -Force&#039;&#039;&#039;&lt;br /&gt;
: Note 1: The above commands should be written in a single line (for each command)&lt;br /&gt;
: Note 2: Replace &amp;lt;Security rule name&amp;gt; with relevant value (see example below)&lt;br /&gt;
: Note 3: Replace &amp;lt;Resource Group Name&amp;gt; with relevant value (see example below)&lt;br /&gt;
: Note 4: Replace &amp;lt;Location&amp;gt; with the target location, from the list below:&lt;br /&gt;
: https://azure.microsoft.com/en-us/global-infrastructure/locations/&lt;br /&gt;
: Note 5: Replace &amp;lt;Network security group name&amp;gt; with relevant value (see example below)&lt;br /&gt;
: Example:&lt;br /&gt;
: &#039;&#039;&#039;$nsgRule = New-AzNetworkSecurityRuleConfig -Name AllowRDP -Protocol Tcp -Direction Inbound -Priority 1000 -SourceAddressPrefix * -SourcePortRange * -DestinationAddressPrefix * -DestinationPortRange 3389 -Access Allow&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;New-AzNetworkSecurityGroup -ResourceGroupName RG01 -Location &amp;quot;West Europe&amp;quot; -Name myNetworkSecurityGroup -SecurityRules $nsgRule –Force&#039;&#039;&#039;&lt;br /&gt;
* List available public IP addresses assigned to virtual machines:&lt;br /&gt;
: &#039;&#039;&#039;Get-AzPublicIpAddress&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Virtual machine related commands ==&lt;br /&gt;
* List available virtual machines in a subscription:&lt;br /&gt;
: &#039;&#039;&#039;Get-AzVM&#039;&#039;&#039;&lt;br /&gt;
* List available virtual machines in a specific resource group:&lt;br /&gt;
: &#039;&#039;&#039;Get-AzVM -ResourceGroupName &amp;lt;Resource Group Name&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &amp;lt;Resource Group Name&amp;gt; with relevant value&lt;br /&gt;
* Get information about a specific virtual machine inside a resource group:&lt;br /&gt;
: &#039;&#039;&#039;Get-AzVM -ResourceGroupName &amp;lt;Resource group name&amp;gt; -Name &amp;lt;VM Name&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &amp;lt;Resource Group Name&amp;gt; with relevant value&lt;br /&gt;
: Note 2: Replace &amp;lt;VM Name&amp;gt; with the relevant value&lt;br /&gt;
* Start a virtual machine inside a specific resource group:&lt;br /&gt;
: &#039;&#039;&#039;Start-AzVM -ResourceGroupName &amp;lt;Resource group name&amp;gt; -Name &amp;lt;VM Name&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &amp;lt;Resource Group Name&amp;gt; with relevant value&lt;br /&gt;
: Note 2: Replace &amp;lt;VM Name&amp;gt; with the relevant value&lt;br /&gt;
* Restart a virtual machine inside a specific resource group:&lt;br /&gt;
: &#039;&#039;&#039;Restart-AzVM -ResourceGroupName &amp;lt;Resource group name&amp;gt; -Name &amp;lt;VM Name&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
: Note 1: The above command should be written in a single line&lt;br /&gt;
: Note 2: Replace &amp;lt;Resource Group Name&amp;gt; with relevant value&lt;br /&gt;
: Note 3: Replace &amp;lt;VM Name&amp;gt; with the relevant value&lt;br /&gt;
* Stop a virtual machine inside a specific resource group:&lt;br /&gt;
: &#039;&#039;&#039;Stop-AzVM -ResourceGroupName &amp;lt;Resource group name&amp;gt; -Name &amp;lt;VM Name&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &amp;lt;Resource Group Name&amp;gt; with relevant value&lt;br /&gt;
: Note 2: Replace &amp;lt;VM Name&amp;gt; with the relevant value&lt;br /&gt;
* List available virtual machine sizes for a region:&lt;br /&gt;
: &#039;&#039;&#039;Get-AzVMSize -Location &amp;lt;Location&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &amp;lt;Location&amp;gt; with the target location, from the list below:&lt;br /&gt;
: https://azure.microsoft.com/en-us/global-infrastructure/locations/&lt;br /&gt;
* List available virtual machine image publishers for a region:&lt;br /&gt;
: &#039;&#039;&#039;Get-AzVMImagePublisher -Location &amp;lt;Location&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &amp;lt;Location&amp;gt; with the target location, from the list below:&lt;br /&gt;
: https://azure.microsoft.com/en-us/global-infrastructure/locations/&lt;br /&gt;
* List available offer types for a publisher (such as Vendor)&lt;br /&gt;
: &#039;&#039;&#039;Get-AzVMImageOffer -Location &amp;lt;Location&amp;gt; -PublisherName &amp;lt;Publisher Name&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &amp;lt;Location&amp;gt; with the target location, from the list below:&lt;br /&gt;
: https://azure.microsoft.com/en-us/global-infrastructure/locations/&lt;br /&gt;
: Note 2: Replace &amp;lt;Publisher Name&amp;gt; with a relevant value (such as MicrosoftWindowsServer or RedHat)&lt;br /&gt;
: Example:&lt;br /&gt;
: &#039;&#039;&#039;Get-AzVMImageOffer -Location &amp;quot;West Europe&amp;quot; -PublisherName MicrosoftWindowsServer&#039;&#039;&#039;&lt;br /&gt;
* List available virtual machine image SKU’s for a region:&lt;br /&gt;
: &#039;&#039;&#039;Get-AzVMImageSku -Location &amp;lt;Location&amp;gt; -PublisherName &amp;lt;Publisher Name&amp;gt; -Offer &amp;lt;Offer name&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
: Note 1: The above command should be written in a single line&lt;br /&gt;
: Note 2: Replace &amp;lt;Location&amp;gt; with the target location, from the list below:&lt;br /&gt;
: https://azure.microsoft.com/en-us/global-infrastructure/locations/&lt;br /&gt;
: Note 3: Replace &amp;lt;Publisher Name&amp;gt; with the relevant value (see example below)&lt;br /&gt;
: Note 4: Replace &amp;lt;Offer Name&amp;gt; with the relevant value (see example below)&lt;br /&gt;
: Example:&lt;br /&gt;
: &#039;&#039;&#039;Get-AzVMImageSku -Location &amp;quot;West Europe&amp;quot; -PublisherName &amp;quot;MicrosoftWindowsServer&amp;quot; -Offer &amp;quot;WindowsServer&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Storage related commands ==&lt;br /&gt;
* List available storage accounts:&lt;br /&gt;
: &#039;&#039;&#039;Get-AzStorageAccount | Select StorageAccountName, Location&#039;&#039;&#039;&lt;br /&gt;
* Create an empty new storage account:&lt;br /&gt;
: &#039;&#039;&#039;New-AzStorageAccount -ResourceGroupName &amp;lt;Resource Group Name&amp;gt; -AccountName &amp;lt;Storage account name&amp;gt; -Location &amp;lt;Location&amp;gt; -SkuName &amp;lt;Storage account type&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
: Note 1: The above command should be written in a single line&lt;br /&gt;
: Note 2: Replace &amp;lt;Resource Group Name&amp;gt; with relevant value (see example below)&lt;br /&gt;
: Note 3: Replace &amp;lt;Storage account name&amp;gt; with a unique value between 3-24 characters (numbers and lower-case letters)&lt;br /&gt;
: Note 4: Replace &amp;lt;Location&amp;gt; with the target location, from the list below:&lt;br /&gt;
: https://azure.microsoft.com/en-us/global-infrastructure/locations/&lt;br /&gt;
: Note 5: Replace &amp;lt;Storage account type&amp;gt; with a value from the list below:&lt;br /&gt;
: https://docs.microsoft.com/en-us/powershell/module/azurerm.storage/set-azurermstorageaccount?view=azurermps-6.11.0&lt;br /&gt;
: Example:&lt;br /&gt;
: &#039;&#039;&#039;New-AzStorageAccount -ResourceGroupName RG01 -AccountName mystorageacct01 -Location “West Europe” -SkuName Standard_LRS&#039;&#039;&#039;&lt;br /&gt;
* Create a new storage account and a new blob storage container:&lt;br /&gt;
: &#039;&#039;&#039;$storageAccount = New-AzStorageAccount -ResourceGroupName &amp;lt;Resource Group Name&amp;gt; -Name &amp;lt;Storage account name&amp;gt; -SkuName &amp;lt;Storage account type&amp;gt; -Location &amp;lt;Location&amp;gt; -Kind Storage&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;$ctx = $storageAccount.Context&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;$containerName = &amp;lt;Container name&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;New-AzStorageContainer -Name $containerName -Context $ctx -Permission blob&#039;&#039;&#039;&lt;br /&gt;
: Note 1: The above commands should be written in a single line (for each command)&lt;br /&gt;
: Note 2: Replace &amp;lt;Resource Group Name&amp;gt; with relevant value (see example below)&lt;br /&gt;
: Note 3: Replace &amp;lt;Storage account name&amp;gt; with a unique value between 3-24 characters (numbers and lower-case letters)&lt;br /&gt;
: Note 4: Replace &amp;lt;Storage account type&amp;gt; with a value from the list below:&lt;br /&gt;
: https://docs.microsoft.com/en-us/powershell/module/azurerm.storage/set-azurermstorageaccount?view=azurermps-6.11.0&lt;br /&gt;
: Note 5: Replace &amp;lt;Location&amp;gt; with the target location, from the list below:&lt;br /&gt;
: https://azure.microsoft.com/en-us/global-infrastructure/locations/&lt;br /&gt;
: Note 6: Replace &amp;lt;Container name&amp;gt; with a relevant and unique value&lt;br /&gt;
: Example:&lt;br /&gt;
: &#039;&#039;&#039;$storageAccount = New-AzStorageAccount -ResourceGroupName RG01 -Name mystorageacct01 -SkuName Standard_LRS -Location “West Europe” -Kind Storage&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;$ctx = $storageAccount.Context&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;$containerName = &amp;quot;quickstartblobs&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;New-AzStorageContainer -Name $containerName -Context $ctx -Permission blob&#039;&#039;&#039;&lt;br /&gt;
* Remove a storage account:&lt;br /&gt;
: &#039;&#039;&#039;Remove-AzStorageAccount -ResourceGroupName &amp;lt;Resource Group Name&amp;gt; -AccountName &amp;lt;Storage account name&amp;gt; –Force&#039;&#039;&#039;&lt;br /&gt;
: Note 1: The above command should be written in a single line&lt;br /&gt;
: Note 2: Replace &amp;lt;Resource Group Name&amp;gt; with relevant value (see example below)&lt;br /&gt;
: Note 3: Replace &amp;lt;Storage account name&amp;gt; with the relevant value&lt;br /&gt;
: Example:&lt;br /&gt;
: &#039;&#039;&#039;Remove-AzStorageAccount -ResourceGroupName RG01 -AccountName mystorageacct01 –Force&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=Using_Azure_CLI_for_managing_Azure_resources&amp;diff=973</id>
		<title>Using Azure CLI for managing Azure resources</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=Using_Azure_CLI_for_managing_Azure_resources&amp;diff=973"/>
		<updated>2020-06-06T12:54:12Z</updated>

		<summary type="html">&lt;p&gt;Eyales: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Installing Azure CLI ==&lt;br /&gt;
* Login to the machine using privileged account.&lt;br /&gt;
* Download the latest build of Azure CLI.&lt;br /&gt;
:* Windows download instruction and location:&lt;br /&gt;
:: https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-windows?view=azure-cli-latest&lt;br /&gt;
:* RHEL/CentOS download instruction and location:&lt;br /&gt;
:: https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-yum?view=azure-cli-latest&lt;br /&gt;
:* Ubuntu/Debian download instruction and location:&lt;br /&gt;
:: https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-apt?view=azure-cli-latest&lt;br /&gt;
&lt;br /&gt;
== Common Azure CLI commands ==&lt;br /&gt;
* Login to an Azure account, from command prompt:&lt;br /&gt;
: &#039;&#039;&#039;az login&#039;&#039;&#039;&lt;br /&gt;
* List available subscriptions:&lt;br /&gt;
: &#039;&#039;&#039;az account list --output table&#039;&#039;&#039;&lt;br /&gt;
* Change the context to a specific Azure subscription:&lt;br /&gt;
: &#039;&#039;&#039;az account set --subscription &amp;quot;My Subscription&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &#039;&#039;&#039;“My Subscription”&#039;&#039;&#039; with the relevant subscription name&lt;br /&gt;
* Run the command below to verify the currently selected Azure subscription:&lt;br /&gt;
: &#039;&#039;&#039;az account show&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Resource group related commands ==&lt;br /&gt;
* Create a new Azure resource group:&lt;br /&gt;
: &#039;&#039;&#039;az group create --name MyResourceGroup --location MyLocation&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;MyResourceGroup&#039;&#039;&#039; with your own relevant group name&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;MyLocation&#039;&#039;&#039; with the target location, from the list below:&lt;br /&gt;
: https://azure.microsoft.com/en-us/global-infrastructure/locations/&lt;br /&gt;
* List information about a resource group:&lt;br /&gt;
: &#039;&#039;&#039;az group show --name MyResourceGroup --output table&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &#039;&#039;&#039;MyResourceGroup&#039;&#039;&#039; with your own relevant group name&lt;br /&gt;
&lt;br /&gt;
== Networking related commands ==&lt;br /&gt;
* List available virtual networks:&lt;br /&gt;
: &#039;&#039;&#039;az network vnet list --output table&#039;&#039;&#039;&lt;br /&gt;
* List available subnets (Run the command as a single line):&lt;br /&gt;
: &#039;&#039;&#039;az network vnet subnet list --resource-group MyResourceGroup --vnet-name MyVNet --output table&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;MyResourceGroup&#039;&#039;&#039; with your own relevant group name&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;MyVNet&#039;&#039;&#039; with the relevant VNET name&lt;br /&gt;
* Create a new virtual network and a new subnet (Run the command as a single line):&lt;br /&gt;
: &#039;&#039;&#039;az network vnet create --resource-group MyResourceGroup -n MyVnet --address-prefix &amp;lt;Virtual network address prefix CIDR&amp;gt; --subnet-name MySubnet --subnet-prefix &amp;lt;Subnet address prefix CIDR&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;MyResourceGroup&#039;&#039;&#039; with your own relevant group name&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;MyVNet&#039;&#039;&#039; with the relevant VNET name&lt;br /&gt;
: Note 3: Replace &#039;&#039;&#039;MySubnet&#039;&#039;&#039; with the target subnet name&lt;br /&gt;
: Note 4: Replace &#039;&#039;&#039;&amp;lt;Virtual network address prefix CIDR&amp;gt;&#039;&#039;&#039; with relevant value (see example below)&lt;br /&gt;
: Note 5: Replace &#039;&#039;&#039;&amp;lt;Subnet address prefix CIDR&amp;gt;&#039;&#039;&#039; with relevant value (see example below)&lt;br /&gt;
: Example:&lt;br /&gt;
: &#039;&#039;&#039;az network vnet create --resource-group MyResourceGroup -n MyVnet --address-prefix 10.0.0.0/16 --subnet-name MySubnet --subnet-prefix 10.0.0.0/24&#039;&#039;&#039;&lt;br /&gt;
* List all available network security groups:&lt;br /&gt;
: &#039;&#039;&#039;az network nsg list --output table&#039;&#039;&#039;&lt;br /&gt;
* Create a new network security group:&lt;br /&gt;
: &#039;&#039;&#039;az network nsg create --resource-group MyResourceGroup -n MyNsg&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;MyResourceGroup&#039;&#039;&#039; with your own relevant group name&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;MyNsg&#039;&#039;&#039; with the target network security group&lt;br /&gt;
* List all default available rules inside a network security group (Run the command as a single line):&lt;br /&gt;
: &#039;&#039;&#039;az network nsg show --resource-group MyResourceGroup -n MyNsg --query &amp;quot;defaultSecurityRules[]&amp;quot; --output table&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;MyResourceGroup&#039;&#039;&#039; with your own relevant group name&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;MyNsg&#039;&#039;&#039; with the target network security group&lt;br /&gt;
* List all available rules inside a network security group (Run the command as a single line):&lt;br /&gt;
: &#039;&#039;&#039;az network nsg rule list --resource-group MyResourceGroup --nsg-name MyNsg --output table&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;MyResourceGroup&#039;&#039;&#039; with your own relevant group name&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;MyNsg&#039;&#039;&#039; with the target network security group&lt;br /&gt;
* Create a new RDP rule inside an existing network security group (Run the command as a single line)&lt;br /&gt;
: &#039;&#039;&#039;az network nsg rule create --resource-group MyResourceGroup --nsg-name MyNsg -n AllowRDP --priority 500 --source-address-prefixes Internet --destination-port-ranges 3389 --access Allow --protocol Tcp --description &amp;quot;Allow RDP&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;MyResourceGroup&#039;&#039;&#039; with your own relevant group name&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;MyNsg&#039;&#039;&#039; with the target network security group&lt;br /&gt;
: Note 3: Replace &#039;&#039;&#039;AllowRDP&#039;&#039;&#039; with the relevant rule name&lt;br /&gt;
: Note 4: Replace &#039;&#039;&#039;3389&#039;&#039;&#039; with the relevant port number&lt;br /&gt;
: Note 5: Replace &#039;&#039;&#039;&amp;quot;Allow RDP&amp;quot;&#039;&#039;&#039; with the relevant rule description&lt;br /&gt;
* List available public IP addresses assigned to virtual machines:&lt;br /&gt;
: &#039;&#039;&#039;az network public-ip list --output table&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Virtual machine related commands ==&lt;br /&gt;
* List available virtual machines in a subscription:&lt;br /&gt;
: &#039;&#039;&#039;az vm list --output table&#039;&#039;&#039;&lt;br /&gt;
* List available virtual machines in a specific resource group:&lt;br /&gt;
: &#039;&#039;&#039;az vm list --resource-group MyResourceGroup --output table&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &#039;&#039;&#039;MyResourceGroup&#039;&#039;&#039; with your own relevant group name&lt;br /&gt;
* Create a Linux VM:&lt;br /&gt;
: &#039;&#039;&#039;az vm create -n MyVm --resource-group MyResourceGroup --image Centos --data-disk-sizes-gb 10 20 --size Standard_DS2_v2 --vnet-name MyVnet --subnet MySubnet --admin-username myusername --generate-ssh-keys&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;MyResourceGroup&#039;&#039;&#039; with your own relevant group name&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;MyVm&#039;&#039;&#039; with the target virtual machine hostname&lt;br /&gt;
: Note 3: Replace &#039;&#039;&#039;MyVNet&#039;&#039;&#039; with the relevant VNET name&lt;br /&gt;
: Note 4: Replace &#039;&#039;&#039;MySubnet&#039;&#039;&#039; with the target subnet name&lt;br /&gt;
: Note 5: Replace &#039;&#039;&#039;myusername&#039;&#039;&#039; with the relevant value&lt;br /&gt;
* Get information about a specific virtual machine inside a resource group:&lt;br /&gt;
: &#039;&#039;&#039;az vm show --resource-group MyResourceGroup -n MyVm&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;MyResourceGroup&#039;&#039;&#039; with your own relevant group name&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;MyVm&#039;&#039;&#039; with the target virtual machine hostname&lt;br /&gt;
* Show VM power state:&lt;br /&gt;
: &#039;&#039;&#039;az vm show --resource-group MyResourceGroup -n MyVm -d --query &amp;quot;powerState&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;MyResourceGroup&#039;&#039;&#039; with your own relevant group name&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;MyVm&#039;&#039;&#039; with the target virtual machine hostname&lt;br /&gt;
* Start a virtual machine inside a specific resource group:&lt;br /&gt;
: &#039;&#039;&#039;az vm start --resource-group MyResourceGroup -n MyVm&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;MyResourceGroup&#039;&#039;&#039; with your own relevant group name&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;MyVm&#039;&#039;&#039; with the target virtual machine hostname&lt;br /&gt;
* Restart a virtual machine inside a specific resource group:&lt;br /&gt;
: &#039;&#039;&#039;az vm restart --resource-group MyResourceGroup -n MyVm&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;MyResourceGroup&#039;&#039;&#039; with your own relevant group name&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;MyVm&#039;&#039;&#039; with the target virtual machine hostname&lt;br /&gt;
* Stop a virtual machine inside a specific resource group:&lt;br /&gt;
: &#039;&#039;&#039;az vm stop --resource-group MyResourceGroup -n MyVm&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;MyResourceGroup&#039;&#039;&#039; with your own relevant group name&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;MyVm&#039;&#039;&#039; with the target virtual machine hostname&lt;br /&gt;
* List available virtual machine sizes for a region:&lt;br /&gt;
: &#039;&#039;&#039;az vm list-sizes -l MyLocation --output table&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &#039;&#039;&#039;MyLocation&#039;&#039;&#039; with the target location, from the list below:&lt;br /&gt;
: https://azure.microsoft.com/en-us/global-infrastructure/locations/&lt;br /&gt;
* List available virtual machine image publishers for a region:&lt;br /&gt;
: &#039;&#039;&#039;az vm image list-publishers -l MyLocation --output table&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &#039;&#039;&#039;MyLocation&#039;&#039;&#039; with the target location, from the list below:&lt;br /&gt;
: https://azure.microsoft.com/en-us/global-infrastructure/locations/&lt;br /&gt;
* List available virtual machine image SKU’s for a region:&lt;br /&gt;
: &#039;&#039;&#039;az vm list-skus -l MyLocation --output table&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &#039;&#039;&#039;MyLocation&#039;&#039;&#039; with the target location, from the list below:&lt;br /&gt;
: https://azure.microsoft.com/en-us/global-infrastructure/locations/&lt;br /&gt;
&lt;br /&gt;
== Storage related commands ==&lt;br /&gt;
* List available storage accounts:&lt;br /&gt;
: &#039;&#039;&#039;az storage account list&#039;&#039;&#039;&lt;br /&gt;
* Create an empty new storage account:&lt;br /&gt;
: &#039;&#039;&#039;az storage account create -n mystorageaccount01111 --resource-group MyResourceGroup -l MyLocation --sku Standard_LRS&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;MyResourceGroup&#039;&#039;&#039; with your own relevant group name&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;MyLocation&#039;&#039;&#039; with the target location, from the list below:&lt;br /&gt;
: https://azure.microsoft.com/en-us/global-infrastructure/locations/&lt;br /&gt;
: Note 3: Replace &#039;&#039;&#039;mystorageaccount01111&#039;&#039;&#039; with a unique storage account name between 3-24 characters (numbers and lower-case letters)&lt;br /&gt;
* Remove a storage account (Run as a single line):&lt;br /&gt;
: &#039;&#039;&#039;az storage account delete -n mystorageaccount01111 --resource-group MyResourceGroup&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;MyResourceGroup&#039;&#039;&#039; with your own relevant group name&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;mystorageaccount01111&#039;&#039;&#039; with the relevant storage account name&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=Using_PowerShell_for_managing_AWS_resources&amp;diff=972</id>
		<title>Using PowerShell for managing AWS resources</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=Using_PowerShell_for_managing_AWS_resources&amp;diff=972"/>
		<updated>2020-06-06T12:52:06Z</updated>

		<summary type="html">&lt;p&gt;Eyales: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== How to configure PowerShell for managing AWS resources (Windows platform) ==&lt;br /&gt;
* Login to the machine using privileged account.&lt;br /&gt;
* Follow the instructions below to install the latest build of PowerShell:&lt;br /&gt;
: https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell?view=powershell-7&lt;br /&gt;
* From command prompt, run the command below to invoke PowerShell:&lt;br /&gt;
: &#039;&#039;&#039;pwsh&#039;&#039;&#039;&lt;br /&gt;
: Note: You need to run cmd.exe or pwsh.exe as administrator.&lt;br /&gt;
* Run the command below to find out the current PowerShell version:&lt;br /&gt;
: &#039;&#039;&#039;$PSVersionTable.PSVersion&#039;&#039;&#039;&lt;br /&gt;
* In-case you currently have version older than 5.1, follow the article below to locate the download URL for upgrading to the latest version of PowerShell:&lt;br /&gt;
: https://docs.microsoft.com/en-us/powershell/scripting/install/migrating-from-windows-powershell-51-to-powershell-7?view=powershell-7&lt;br /&gt;
* Run the commands below to install AWS tools for PowerShell:&lt;br /&gt;
: &#039;&#039;&#039;Install-Module -Name AWS.Tools.Common -AllowClobber -Force&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;Install-Module -Name AWS.Tools.Installer -Force&#039;&#039;&#039;&lt;br /&gt;
* Run the commands below to update to the latest AWS PowerShell module:&lt;br /&gt;
: &#039;&#039;&#039;Update-Module -Name AWS.Tools.Common -Force&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;Update-Module -Name AWS.Tools.Installer -Force&#039;&#039;&#039;&lt;br /&gt;
* To view the installed versions of AWS PowerShell module, run the command below:&lt;br /&gt;
: &#039;&#039;&#039;Get-Module -Name AWS.Tools.* -List | select Name,Version&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== How to configure PowerShell for managing AWS resources (RHEL/CentOS platform) ==&lt;br /&gt;
* Login to the machine using privileged account.&lt;br /&gt;
* Run the command below to register the RedHat 7 or CentOS 7 repository:&lt;br /&gt;
: &#039;&#039;&#039;curl https://packages.microsoft.com/config/rhel/7/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo&#039;&#039;&#039;&lt;br /&gt;
* Run the command below to install PowerShell:&lt;br /&gt;
: &#039;&#039;&#039;sudo yum install -y powershell&#039;&#039;&#039;&lt;br /&gt;
* From command prompt, run the command below to invoke PowerShell:&lt;br /&gt;
: &#039;&#039;&#039;sudo pwsh&#039;&#039;&#039;&lt;br /&gt;
* Run the command below to find out the current PowerShell version:&lt;br /&gt;
: &#039;&#039;&#039;$PSVersionTable.PSVersion&#039;&#039;&#039;&lt;br /&gt;
* Run the commands below to install AWS tools for PowerShell:&lt;br /&gt;
: &#039;&#039;&#039;Install-Module -Name AWS.Tools.Common -AllowClobber -Force&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;Install-Module -Name AWS.Tools.Installer -Force&#039;&#039;&#039;&lt;br /&gt;
* Run the commands below to update to the latest AWS PowerShell module:&lt;br /&gt;
: &#039;&#039;&#039;Update-Module -Name AWS.Tools.Common -Force&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;Update-Module -Name AWS.Tools.Installer -Force&#039;&#039;&#039;&lt;br /&gt;
* To view the installed versions of AWS PowerShell module, run the command below:&lt;br /&gt;
: &#039;&#039;&#039;Get-Module -Name AWS.Tools.* -List | select Name,Version&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== How to configure PowerShell for managing AWS resources (Ubuntu 18.04 platform) ==&lt;br /&gt;
* Login to the machine using privileged account.&lt;br /&gt;
* Run the command below to register the Ubuntu 18.04 repository:&lt;br /&gt;
: &#039;&#039;&#039;wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;sudo dpkg -i packages-microsoft-prod.deb&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;sudo apt-get update&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;sudo add-apt-repository universe&#039;&#039;&#039;&lt;br /&gt;
* Run the command below to install PowerShell:&lt;br /&gt;
: &#039;&#039;&#039;sudo apt-get install -y powershell&#039;&#039;&#039;&lt;br /&gt;
* From command prompt, run the command below to invoke PowerShell:&lt;br /&gt;
: &#039;&#039;&#039;pwsh&#039;&#039;&#039;&lt;br /&gt;
* Run the command below to find out the current PowerShell version:&lt;br /&gt;
: &#039;&#039;&#039;$PSVersionTable.PSVersion&#039;&#039;&#039;&lt;br /&gt;
* Run the commands below to install AWS tools for PowerShell:&lt;br /&gt;
: &#039;&#039;&#039;Install-Module -Name AWS.Tools.Common -AllowClobber -Force&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;Install-Module -Name AWS.Tools.Installer -Force&#039;&#039;&#039;&lt;br /&gt;
* Run the commands below to update to the latest AWS PowerShell module:&lt;br /&gt;
: &#039;&#039;&#039;Update-Module -Name AWS.Tools.Common -Force&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;Update-Module -Name AWS.Tools.Installer -Force&#039;&#039;&#039;&lt;br /&gt;
* To view the installed versions of AWS PowerShell module, run the command below:&lt;br /&gt;
: &#039;&#039;&#039;Get-Module -Name AWS.Tools.* -List | select Name,Version&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== How to configure PowerShell for managing AWS resources (Debian 10 platform) ==&lt;br /&gt;
* Login to the machine using privileged account.&lt;br /&gt;
* Run the command below to register the Debian 10 repository:&lt;br /&gt;
: &#039;&#039;&#039;wget https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;sudo dpkg -i packages-microsoft-prod.deb&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;sudo apt-get update&#039;&#039;&#039;&lt;br /&gt;
* Run the command below to install PowerShell:&lt;br /&gt;
: &#039;&#039;&#039;sudo apt-get install -y powershell&#039;&#039;&#039;&lt;br /&gt;
* From command prompt, run the command below to invoke PowerShell:&lt;br /&gt;
: &#039;&#039;&#039;pwsh&#039;&#039;&#039;&lt;br /&gt;
* Run the command below to find out the current PowerShell version:&lt;br /&gt;
: &#039;&#039;&#039;$PSVersionTable.PSVersion&#039;&#039;&#039;&lt;br /&gt;
* Run the commands below to install AWS tools for PowerShell:&lt;br /&gt;
: &#039;&#039;&#039;Install-Module -Name AWS.Tools.Common -AllowClobber -Force&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;Install-Module -Name AWS.Tools.Installer -Force&#039;&#039;&#039;&lt;br /&gt;
* Run the commands below to update to the latest AWS PowerShell module:&lt;br /&gt;
: &#039;&#039;&#039;Update-Module -Name AWS.Tools.Common -Force&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;Update-Module -Name AWS.Tools.Installer -Force&#039;&#039;&#039;&lt;br /&gt;
* To view the installed versions of AWS PowerShell module, run the command below:&lt;br /&gt;
: &#039;&#039;&#039;Get-Module -Name AWS.Tools.* -List | select Name,Version&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== How to configure AWS Account and Access Keys ==&lt;br /&gt;
* Login to the IAM Console:&lt;br /&gt;
: https://console.aws.amazon.com/iam/&lt;br /&gt;
* From the left pane, click on Users -&amp;gt; click on “Add user” -&amp;gt; specify the user name -&amp;gt; access type: “Programmatic access” -&amp;gt; do not select “AWS Management Console access” -&amp;gt; click “Next: Permissions”&lt;br /&gt;
* From the “add user to group”, either select existing group or click on “Create group” -&amp;gt; click “Next: Review” -&amp;gt; click on “Create user”&lt;br /&gt;
* Download the CSV file with the “Access key ID” and “Secret access key” and save the CSV file in a secure location&lt;br /&gt;
* Click Close&lt;br /&gt;
&lt;br /&gt;
== Managing Profiles ==&lt;br /&gt;
* Login to the machine using privileged account.&lt;br /&gt;
* From command prompt, run the command below to invoke PowerShell (Windows platform)&lt;br /&gt;
: &#039;&#039;&#039;pwsh&#039;&#039;&#039;&lt;br /&gt;
* From command prompt, run the command below to invoke PowerShell (Linux platform)&lt;br /&gt;
: &#039;&#039;&#039;pwsh&#039;&#039;&#039;&lt;br /&gt;
* Run the command below to import the AWSPowerShell.NetCore module:&lt;br /&gt;
: &#039;&#039;&#039;import-Module AWSPowerShell.NetCore&#039;&#039;&#039;&lt;br /&gt;
* Run the command below to add a new profile:&lt;br /&gt;
: &#039;&#039;&#039;Set-AWSCredential -AccessKey &amp;lt;AWS_Access_Key&amp;gt; -SecretKey &amp;lt;AWS_Secret_Key&amp;gt; -StoreAs &amp;lt;Profile_Name&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;&amp;lt;AWS_Access_Key&amp;gt;&#039;&#039;&#039; with the relevant value from the CSV file created above.&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;&amp;lt;AWS_Secret_Key&amp;gt;&#039;&#039;&#039; with the relevant value from the CSV file created above.&lt;br /&gt;
: Note 3: Replace &#039;&#039;&#039;&amp;lt;Profile_Name&amp;gt;&#039;&#039;&#039; with your own profile name&lt;br /&gt;
* List all available profiles:&lt;br /&gt;
: &#039;&#039;&#039;Get-AWSCredential -ListProfileDetail&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Reference:&lt;br /&gt;
:* https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html&lt;br /&gt;
&lt;br /&gt;
== VPC related commands ==&lt;br /&gt;
* List all available VPC’s in a specific region:&lt;br /&gt;
: &#039;&#039;&#039;Get-EC2VPC -Region &amp;lt;Region_Name&amp;gt; -ProfileName &amp;lt;Profile_Name&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;&amp;lt;Region_Name&amp;gt;&#039;&#039;&#039; with the target region, from the list below:&lt;br /&gt;
: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;&amp;lt;Profile_Name&amp;gt;&#039;&#039;&#039; with your own profile name&lt;br /&gt;
: Example:&lt;br /&gt;
: &#039;&#039;&#039;Get-EC2VPC -Region us-east-1 -ProfileName MyProfile&#039;&#039;&#039;&lt;br /&gt;
* Create a new VPC inside a specific region:&lt;br /&gt;
: &#039;&#039;&#039;New-EC2VPC -CidrBlock &amp;lt;CIDR_Block&amp;gt; -Region &amp;lt;Region_Name&amp;gt; -ProfileName &amp;lt;Profile_Name&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
: Note 1: The above command should be written in a single line&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;&amp;lt;CIDR_Block&amp;gt;&#039;&#039;&#039; with the IPv4 network range for the VPC, in CIDR notation. For example, 10.0.0.0/16.&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;&amp;lt;Region_Name&amp;gt;&#039;&#039;&#039; with the target region, from the list below:&lt;br /&gt;
: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html&lt;br /&gt;
: Note 3: Replace &#039;&#039;&#039;&amp;lt;Profile_Name&amp;gt;&#039;&#039;&#039; with your own profile name&lt;br /&gt;
: Example:&lt;br /&gt;
: &#039;&#039;&#039;New-EC2VPC -CidrBlock 10.0.0.0/16 -Region us-east-1 -ProfileName MyProfile&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Subnet related commands ==&lt;br /&gt;
* List all available subnets inside a specific region:&lt;br /&gt;
: &#039;&#039;&#039;Get-EC2Subnet -Region &amp;lt;Region_Name&amp;gt; -ProfileName &amp;lt;Profile_Name&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;&amp;lt;Region_Name&amp;gt;&#039;&#039;&#039; with the target region, from the list below:&lt;br /&gt;
: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;&amp;lt;Profile_Name&amp;gt;&#039;&#039;&#039; with your own profile name&lt;br /&gt;
: Example:&lt;br /&gt;
: &#039;&#039;&#039;Get-EC2Subnet -Region us-east-1 -ProfileName MyProfile&#039;&#039;&#039;&lt;br /&gt;
* Get information about specific subnet:&lt;br /&gt;
: &#039;&#039;&#039;Get-EC2Subnet -SubnetId &amp;lt;Subnet_ID&amp;gt; -Region &amp;lt;Region_Name&amp;gt; -ProfileName &amp;lt;Profile_Name&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
: Note 1: The above command should be written in a single line&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;&amp;lt;Subnet_ID&amp;gt;&#039;&#039;&#039; with the relevant value&lt;br /&gt;
: Note 3: Replace &#039;&#039;&#039;&amp;lt;Region_Name&amp;gt;&#039;&#039;&#039; with the target region, from the list below:&lt;br /&gt;
: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html&lt;br /&gt;
: Note 4: Replace &#039;&#039;&#039;&amp;lt;Profile_Name&amp;gt;&#039;&#039;&#039; with your own profile name&lt;br /&gt;
: Example:&lt;br /&gt;
: &#039;&#039;&#039;Get-EC2Subnet -SubnetId subnet-101ad84c -Region us-east-1 -ProfileName MyProfile&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Security Group related commands ==&lt;br /&gt;
* List all security groups in a specific region:&lt;br /&gt;
: &#039;&#039;&#039;Get-EC2SecurityGroup -Region &amp;lt;Region_Name&amp;gt; -ProfileName &amp;lt;Profile_Name&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;&amp;lt;Region_Name&amp;gt;&#039;&#039;&#039; with the target region, from the list below:&lt;br /&gt;
: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;&amp;lt;Profile_Name&amp;gt;&#039;&#039;&#039; with your own profile name&lt;br /&gt;
: Example:&lt;br /&gt;
: &#039;&#039;&#039;Get-EC2SecurityGroup -Region us-east-1 -ProfileName MyProfile&#039;&#039;&#039;&lt;br /&gt;
* Create a new security group inside a specific VPC:&lt;br /&gt;
: &#039;&#039;&#039;$groupid = New-EC2SecurityGroup -VpcId &amp;lt;VPC_Name&amp;gt; -GroupName &amp;lt;Security_Group_Name&amp;gt; -GroupDescription &amp;lt;Group_Description&amp;gt; -Region &amp;lt;Region_Name&amp;gt; -ProfileName &amp;lt;Profile_Name&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
: Note 1: The above command should be written a single line&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;&amp;lt;VPC_Name&amp;gt;&#039;&#039;&#039; with the relevant value&lt;br /&gt;
: Note 3: Replace &#039;&#039;&#039;&amp;lt;Security_Group_Name&amp;gt;&#039;&#039;&#039; with a unique value (up to 255 characters), as mentioned below:&lt;br /&gt;
: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_SecurityGroups.html&lt;br /&gt;
: Note 4: Replace &#039;&#039;&#039;&amp;lt;Group Description&amp;gt;&#039;&#039;&#039; with relevant value, as mentioned below:&lt;br /&gt;
: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_SecurityGroups.html&lt;br /&gt;
: Note 5: Replace &#039;&#039;&#039;&amp;lt;Region_Name&amp;gt;&#039;&#039;&#039; with the target region, from the list below:&lt;br /&gt;
: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html&lt;br /&gt;
: Note 6: Replace &#039;&#039;&#039;&amp;lt;Profile_Name&amp;gt;&#039;&#039;&#039; with your own profile name&lt;br /&gt;
: Example:&lt;br /&gt;
: &#039;&#039;&#039;$groupid = New-EC2SecurityGroup -VpcId &amp;quot;vpc-64c0c61f&amp;quot; -GroupName &amp;quot;myPSSecurityGroup&amp;quot; -GroupDescription &amp;quot;EC2-VPC from PowerShell&amp;quot; -Region us-east-1 -ProfileName cliuser&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Reference:&lt;br /&gt;
:* https://4sysops.com/archives/create-and-view-ec2-security-groups-with-powershell/&lt;br /&gt;
&lt;br /&gt;
== Key Pair related commands ==&lt;br /&gt;
* Create a new key pair:&lt;br /&gt;
: &#039;&#039;&#039;$myPSKeyPair = New-EC2KeyPair -KeyName &amp;lt;Key_Pair_Name&amp;gt; -Region &amp;lt;Region_Name&amp;gt; -ProfileName &amp;lt;Profile_Name&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
: Note 1: The above command must be written as a single line&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;&amp;lt;Key_Pair_Name&amp;gt;&#039;&#039;&#039; with your own key pair name&lt;br /&gt;
: Note 3: Replace &#039;&#039;&#039;&amp;lt;Region_Name&amp;gt;&#039;&#039;&#039; with the target region, from the list below:&lt;br /&gt;
: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html&lt;br /&gt;
: Note 4: Replace &#039;&#039;&#039;&amp;lt;Profile_Name&amp;gt;&#039;&#039;&#039; with your own profile name&lt;br /&gt;
: Example:&lt;br /&gt;
: &#039;&#039;&#039;$myPSKeyPair = New-EC2KeyPair -KeyName MyKeyPair01 -Region us-east-1 -ProfileName MyProfile&#039;&#039;&#039;&lt;br /&gt;
* View a key pair fingerprint:&lt;br /&gt;
: &#039;&#039;&#039;Get-EC2KeyPair -KeyName &amp;lt;Key_Pair_Name&amp;gt; -Region &amp;lt;Region_Name&amp;gt; -ProfileName &amp;lt;Profile_Name&amp;gt; | format-list KeyName, KeyFingerprint&#039;&#039;&#039;&lt;br /&gt;
: Note 1: The above command must be written as a single line&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;&amp;lt;Key_Pair_Name&amp;gt;&#039;&#039;&#039; with your own key pair name&lt;br /&gt;
: Note 3: Replace &#039;&#039;&#039;&amp;lt;Region_Name&amp;gt;&#039;&#039;&#039; with the target region, from the list below:&lt;br /&gt;
: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html&lt;br /&gt;
: Note 4: Replace &#039;&#039;&#039;&amp;lt;Profile_Name&amp;gt;&#039;&#039;&#039; with your own profile name&lt;br /&gt;
: Example:&lt;br /&gt;
: &#039;&#039;&#039;Get-EC2KeyPair -KeyName MyKeyPair01 -Region us-east-1 -ProfileName MyProfile | format-list KeyName, KeyFingerprint&#039;&#039;&#039;&lt;br /&gt;
* Storing a private key to a file:&lt;br /&gt;
: &#039;&#039;&#039;$myPSKeyPair.KeyMaterial | Out-File -Encoding ascii &amp;lt;Private_Key_Name&amp;gt;.pem&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &#039;&#039;&#039;&amp;lt;Private_Key_Name&amp;gt;.pem&#039;&#039;&#039; with your own value&lt;br /&gt;
&lt;br /&gt;
Reference:&lt;br /&gt;
:* https://docs.aws.amazon.com/powershell/latest/userguide/pstools-ec2-keypairs.html&lt;br /&gt;
:* https://docs.aws.amazon.com/powershell/latest/userguide/pstools-ec2.html&lt;br /&gt;
&lt;br /&gt;
== Storage related commands ==&lt;br /&gt;
* List all S3 buckets inside a specific AWS account:&lt;br /&gt;
: &#039;&#039;&#039;Get-S3Bucket -ProfileName &amp;lt;Profile_Name&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &#039;&#039;&#039;&amp;lt;Profile_Name&amp;gt;&#039;&#039;&#039; with your own profile name&lt;br /&gt;
* Get S3 bucket location:&lt;br /&gt;
: &#039;&#039;&#039;Get-S3BucketLocation -BucketName &amp;lt;S3_Bucket_Name&amp;gt; -ProfileName &amp;lt;Profile_Name&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;&amp;lt;S3_Bucket_Name&amp;gt;&#039;&#039;&#039; with the relevant S3 bucket name&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;&amp;lt;Profile_Name&amp;gt;&#039;&#039;&#039; with your own profile name&lt;br /&gt;
* Create a new S3 bucket:&lt;br /&gt;
: &#039;&#039;&#039;New-S3Bucket -BucketName &amp;lt;S3_Bucket_Name&amp;gt; -Region &amp;lt;Region_Name&amp;gt; -ProfileName &amp;lt;Profile_Name&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
: Note 1: The above command must be written as a single line&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;&amp;lt;S3_Bucket_Name&amp;gt;&#039;&#039;&#039; with a unique value between 3-63 characters (numbers and lower-case letters)&lt;br /&gt;
: Note 3: Replace &#039;&#039;&#039;&amp;lt;Region_Name&amp;gt;&#039;&#039;&#039; with the target region, from the list below:&lt;br /&gt;
: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html&lt;br /&gt;
: Note 4: Replace &#039;&#039;&#039;&amp;lt;Profile_Name&amp;gt;&#039;&#039;&#039; with your own profile name&lt;br /&gt;
: Example:&lt;br /&gt;
: &#039;&#039;&#039;New-S3Bucket -BucketName mys3bucket001 -Region us-east-1 -ProfileName MyProfile&#039;&#039;&#039;&lt;br /&gt;
* Remove S3 bucket:&lt;br /&gt;
: &#039;&#039;&#039;Remove-S3Bucket -BucketName &amp;lt;S3_Bucket_Name&amp;gt; -ProfileName &amp;lt;Profile_Name&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;&amp;lt;S3_Bucket_Name&amp;gt;&#039;&#039;&#039; with the relevant S3 bucket name&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;&amp;lt;Profile_Name&amp;gt;&#039;&#039;&#039; with your own profile name&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=Best_practices_for_GCP_Projects_cost_optimization&amp;diff=971</id>
		<title>Best practices for GCP Projects cost optimization</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=Best_practices_for_GCP_Projects_cost_optimization&amp;diff=971"/>
		<updated>2020-04-13T17:35:01Z</updated>

		<summary type="html">&lt;p&gt;Eyales: Created page with &amp;quot;== Unused Compute Engine Disks == * Open the GCP Management console: : https://console.cloud.google.com/compute/disks * From the upper pane, select an existing GCP Project * R...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Unused Compute Engine Disks ==&lt;br /&gt;
* Open the GCP Management console:&lt;br /&gt;
: https://console.cloud.google.com/compute/disks&lt;br /&gt;
* From the upper pane, select an existing GCP Project&lt;br /&gt;
* Review the list of existing Disks&lt;br /&gt;
* Check each Disk under &amp;quot;In use by&amp;quot; field&lt;br /&gt;
* In case a disk is not in use by any VM, select the disk and click Delete&lt;br /&gt;
* Log off GCP Management console.&lt;br /&gt;
&lt;br /&gt;
== Unused Virtual machines ==&lt;br /&gt;
* Open the GCP Management console:&lt;br /&gt;
: https://console.cloud.google.com/compute/instances&lt;br /&gt;
* From the upper pane, select an existing GCP Project&lt;br /&gt;
* Review the list of existing VM instances&lt;br /&gt;
* In case a VM instance is shutdown, review if the VM instance is needed.&lt;br /&gt;
* If a VM instance is not needed, select the VM and click Delete&lt;br /&gt;
* Log off GCP Management console.&lt;br /&gt;
&lt;br /&gt;
== Unassociated External IP Addresses ==&lt;br /&gt;
* Open the GCP Management console:&lt;br /&gt;
: https://console.cloud.google.com/networking/addresses/list&lt;br /&gt;
* From the upper pane, select an existing GCP Project&lt;br /&gt;
* Review the list of existing External IP addresses&lt;br /&gt;
* In case an External IP address is not needed or not assigned to any resource, check the box next to the IP address to release.&lt;br /&gt;
* Click Release IP address.&lt;br /&gt;
* Log off GCP Management console.&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=GCP_How_To&amp;diff=970</id>
		<title>GCP How To</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=GCP_How_To&amp;diff=970"/>
		<updated>2020-04-13T17:33:29Z</updated>

		<summary type="html">&lt;p&gt;Eyales: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[Best practices for GCP Projects cost optimization]]&lt;br /&gt;
*[[Best practices for securing GCP Projects]]&lt;br /&gt;
*[[How to configure Google Cloud Storage bucket]]&lt;br /&gt;
*[[How to configure MFA (Multi-Factor Authentication) for Google G Suite or Gmail account]]&lt;br /&gt;
*[[How to create a GCP firewall rule]]&lt;br /&gt;
*[[How to create a GCP subnet]]&lt;br /&gt;
*[[How to create a GCP route]]&lt;br /&gt;
*[[How to create a GCP VM instance and perform login using SSH]]&lt;br /&gt;
*[[How to create GCP budget and billing alerts]]&lt;br /&gt;
*[[How to create Google Virtual Private Cloud (VPC) Network]]&lt;br /&gt;
*[[How to create HPC Cluster with Slurm scheduler on Google Cloud Platform]]&lt;br /&gt;
*[[How to grant Google Cloud IAM role to a new member]]&lt;br /&gt;
*[[How to mount Google Cloud Storage inside a Linux machine]]&lt;br /&gt;
*[[How to sync files to Google Coldline Storage]]&lt;br /&gt;
*[[Using Google Cloud SDK CLI Tools for managing GCP resources]]&lt;br /&gt;
*[[Using PowerShell to manage GCP resources]]&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=Best_practices_for_securing_GCP_Projects&amp;diff=969</id>
		<title>Best practices for securing GCP Projects</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=Best_practices_for_securing_GCP_Projects&amp;diff=969"/>
		<updated>2020-04-13T17:22:39Z</updated>

		<summary type="html">&lt;p&gt;Eyales: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Configure MFA (Multi-Factor Authentication) for any account with owner privileges ==&lt;br /&gt;
In-order to avoid potential compromise of credentials, it is recommended to configure multi-factor authentication for any account with project owner privilege.&lt;br /&gt;
* Install Google Authenticator, as instructed on:&lt;br /&gt;
: https://support.google.com/accounts/answer/1066447&lt;br /&gt;
: https://apps.apple.com/us/app/google-authenticator/id388497605&lt;br /&gt;
* Login to the Google Account console:&lt;br /&gt;
: https://myaccount.google.com/&lt;br /&gt;
* From the left pane, click on Security&lt;br /&gt;
* Under &amp;quot;Signing in to Google&amp;quot;, click on 2-Step Verification&lt;br /&gt;
* Click on &amp;quot;Get started&amp;quot;&lt;br /&gt;
* Enter your Google G Suite or Gmail password&lt;br /&gt;
* Under &amp;quot;Authenticator app&amp;quot;, click on Set Up&lt;br /&gt;
* Choose which phone you have and click Next&lt;br /&gt;
* From your mobile device, click Scan a barcode&lt;br /&gt;
* Scan the barcode&lt;br /&gt;
* Click Next&lt;br /&gt;
* Enter the code shown on the Google Authenticator app on your phone&lt;br /&gt;
* Click Verify&lt;br /&gt;
* Click Done&lt;br /&gt;
&lt;br /&gt;
== Limit number of inbound ports ==&lt;br /&gt;
Allowing large number of inbound ports access GCP resources increase the chance of network breach.&lt;br /&gt;
Limit the number of inbound ports to required ports only and to specific resources or specific subnets.&lt;br /&gt;
* Login to the Firewall rules page:&lt;br /&gt;
: https://console.cloud.google.com//networking/firewalls/list&lt;br /&gt;
* From the upper pane, select an existing GCP Project&lt;br /&gt;
* Review the list of existing Firewall rules, specifically rules with filter &amp;quot;IP ranges: 0.0.0.0/0&amp;quot;&lt;br /&gt;
: Note: It is highly recommended that inbound access on SSH (port 22TCP) or RDP (port 3389TCP) will be limited to specific IP address or IP range from known source location.&lt;br /&gt;
* Update Firewall rules as needed.&lt;br /&gt;
* Log off the GCP Management console.&lt;br /&gt;
&lt;br /&gt;
== Google cloud storage permissions ==&lt;br /&gt;
Allowing public access to Google cloud storage buckets increase the chance of data breach.&lt;br /&gt;
Make sure no Google cloud storage bucket is publicly accessible.&lt;br /&gt;
* Open the Cloud Storage browser:&lt;br /&gt;
: https://console.cloud.google.com/storage/browser&lt;br /&gt;
* From the upper pane, select an existing GCP Project&lt;br /&gt;
* Review the list of existing Cloud storage buckets&lt;br /&gt;
* Check each bucket under &amp;quot;Public access&amp;quot; field, and make sure no bucket is configured as &amp;quot;Public to internet&amp;quot;&lt;br /&gt;
* Configure buckets as needed.&lt;br /&gt;
* Log off GCP Management console.&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=Best_practices_for_securing_GCP_Projects&amp;diff=968</id>
		<title>Best practices for securing GCP Projects</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=Best_practices_for_securing_GCP_Projects&amp;diff=968"/>
		<updated>2020-04-13T17:21:24Z</updated>

		<summary type="html">&lt;p&gt;Eyales: Created page with &amp;quot;== Configure MFA (Multi-Factor Authentication) for any account with owner privileges == In-order to avoid potential compromise of credentials, it is recommended to configure m...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Configure MFA (Multi-Factor Authentication) for any account with owner privileges ==&lt;br /&gt;
In-order to avoid potential compromise of credentials, it is recommended to configure multi-factor authentication for any account with project owner privilege.&lt;br /&gt;
* Install Google Authenticator, as instructed on:&lt;br /&gt;
: https://support.google.com/accounts/answer/1066447&lt;br /&gt;
: https://apps.apple.com/us/app/google-authenticator/id388497605&lt;br /&gt;
* Login to the Google Account console:&lt;br /&gt;
: https://myaccount.google.com/&lt;br /&gt;
* From the left pane, click on Security&lt;br /&gt;
* Under &amp;quot;Signing in to Google&amp;quot;, click on 2-Step Verification&lt;br /&gt;
* Click on &amp;quot;Get started&amp;quot;&lt;br /&gt;
* Enter your Google G Suite or Gmail password&lt;br /&gt;
* Under &amp;quot;Authenticator app&amp;quot;, click on Set Up&lt;br /&gt;
* Choose which phone you have and click Next&lt;br /&gt;
* From your mobile device, click Scan a barcode&lt;br /&gt;
* Scan the barcode&lt;br /&gt;
* Click Next&lt;br /&gt;
* Enter the code shown on the Google Authenticator app on your phone&lt;br /&gt;
* Click Verify&lt;br /&gt;
* Click Done&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=GCP_How_To&amp;diff=967</id>
		<title>GCP How To</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=GCP_How_To&amp;diff=967"/>
		<updated>2020-04-13T17:20:29Z</updated>

		<summary type="html">&lt;p&gt;Eyales: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[Best practices for securing GCP Projects]]&lt;br /&gt;
*[[How to configure Google Cloud Storage bucket]]&lt;br /&gt;
*[[How to configure MFA (Multi-Factor Authentication) for Google G Suite or Gmail account]]&lt;br /&gt;
*[[How to create a GCP firewall rule]]&lt;br /&gt;
*[[How to create a GCP subnet]]&lt;br /&gt;
*[[How to create a GCP route]]&lt;br /&gt;
*[[How to create a GCP VM instance and perform login using SSH]]&lt;br /&gt;
*[[How to create GCP budget and billing alerts]]&lt;br /&gt;
*[[How to create Google Virtual Private Cloud (VPC) Network]]&lt;br /&gt;
*[[How to create HPC Cluster with Slurm scheduler on Google Cloud Platform]]&lt;br /&gt;
*[[How to grant Google Cloud IAM role to a new member]]&lt;br /&gt;
*[[How to mount Google Cloud Storage inside a Linux machine]]&lt;br /&gt;
*[[How to sync files to Google Coldline Storage]]&lt;br /&gt;
*[[Using Google Cloud SDK CLI Tools for managing GCP resources]]&lt;br /&gt;
*[[Using PowerShell to manage GCP resources]]&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=Best_practices_for_Azure_cost_optimization&amp;diff=966</id>
		<title>Best practices for Azure cost optimization</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=Best_practices_for_Azure_cost_optimization&amp;diff=966"/>
		<updated>2020-04-13T16:58:20Z</updated>

		<summary type="html">&lt;p&gt;Eyales: Created page with &amp;quot;== Low Utilization virtual machines == * Login to the Azure Portal: : https://portal.azure.com/ * From the upper search pane, write &amp;quot;Virtual machines&amp;quot; * Select an existing vir...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Low Utilization virtual machines ==&lt;br /&gt;
* Login to the Azure Portal:&lt;br /&gt;
: https://portal.azure.com/&lt;br /&gt;
* From the upper search pane, write &amp;quot;Virtual machines&amp;quot;&lt;br /&gt;
* Select an existing virtual machine&lt;br /&gt;
* From the overview pane, change “Show data for last” to 7 days&lt;br /&gt;
* If the CPU utilization is less than 3% and network utilization is less than 2%, the selected virtual machine qualifies as candidate for an idle instance.&lt;br /&gt;
* Decide if you wish to delete the virtual machine.&lt;br /&gt;
* To delete the virtual machine -&amp;gt; from the upper pane, click on Delete and confirm the action.&lt;br /&gt;
* Log off the Azure portal&lt;br /&gt;
&lt;br /&gt;
== Unassociated public IP Addresses ==&lt;br /&gt;
* Login to the Azure Portal:&lt;br /&gt;
: https://portal.azure.com/&lt;br /&gt;
* From the upper search pane, write &amp;quot;Public IP addresses&amp;quot;&lt;br /&gt;
* Select an existing public IP address from the list&lt;br /&gt;
* From the overview pane, check if the “Associate to” field is empty.&lt;br /&gt;
* If the IP is not associated to any resource, from the upper pane, click on Delete and confirm the action.&lt;br /&gt;
* Log off the Azure portal&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=Azure_-_How_To&amp;diff=965</id>
		<title>Azure - How To</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=Azure_-_How_To&amp;diff=965"/>
		<updated>2020-04-13T16:57:18Z</updated>

		<summary type="html">&lt;p&gt;Eyales: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[Best practices for Azure cost optimization]]&lt;br /&gt;
*[[Best practices for securing Azure subscriptions]]&lt;br /&gt;
*[[How to configure MFA (Multi-Factor Authentication) for AD Azure account]]&lt;br /&gt;
*[[How to create a file share in Azure Files]]&lt;br /&gt;
*[[How to create Azure Virtual Machine and perform login using SSH]]&lt;br /&gt;
*[[How to create Azure Network Security Group]]&lt;br /&gt;
*[[How to create Azure Network Interface]]&lt;br /&gt;
*[[How to create Azure Resource Group]]&lt;br /&gt;
*[[How to create Azure Route Table]]&lt;br /&gt;
*[[How to create Azure Storage Account]]&lt;br /&gt;
*[[How to create Azure Virtual Network (VNet)]]&lt;br /&gt;
*[[How to create HPC Cluster based on Azure CycleCloud]]&lt;br /&gt;
*[[How to create Windows Virtual Machine and perform login using RDP]]&lt;br /&gt;
*[[How to install Wordpress server based on Azure Container Instances]]&lt;br /&gt;
*[[How to install Wordpress server based on Azure Web App]]&lt;br /&gt;
*[[How to mount Azure Blob Storage inside a Linux machine]]&lt;br /&gt;
*[[Using Azure CLI for managing Azure resources]]&lt;br /&gt;
*[[Using PowerShell for managing Azure resources]]&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=Best_practices_for_securing_Azure_subscriptions&amp;diff=964</id>
		<title>Best practices for securing Azure subscriptions</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=Best_practices_for_securing_Azure_subscriptions&amp;diff=964"/>
		<updated>2020-04-13T16:35:30Z</updated>

		<summary type="html">&lt;p&gt;Eyales: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Configure MFA (Multi-Factor Authentication) for any account with owner privileges ==&lt;br /&gt;
In-order to avoid potential compromise of credentials, it is recommended to configure multi-factor authentication for any account with owner privilege.&lt;br /&gt;
* Install Microsoft Authenticator app on your mobile device, as instructed:&lt;br /&gt;
: https://docs.microsoft.com/en-us/azure/active-directory/user-help/multi-factor-authentication-end-user-manage-settings#add-or-change-your-phone-number&lt;br /&gt;
* Login to the Azure Portal:&lt;br /&gt;
: https://portal.azure.com/&lt;br /&gt;
* From the top right pane, click on your username&lt;br /&gt;
* Click on View account&lt;br /&gt;
* Under &amp;quot;Manage account&amp;quot;, click on &amp;quot;Additional security verification&amp;quot;&lt;br /&gt;
* Under &amp;quot;How would you like to respond&amp;quot;, click on &amp;quot;Set up Authenticator app&amp;quot;&lt;br /&gt;
* Follow the on-screen instructions, including using your mobile device to scan the QR code, and then select Next&lt;br /&gt;
* You&#039;ll be asked to approve a notification through the Microsoft Authenticator app, to verify your information.&lt;br /&gt;
* Select Save&lt;br /&gt;
&lt;br /&gt;
== Limit number of inbound ports ==&lt;br /&gt;
Allowing large number of inbound ports access Azure resources increase the chance of network breach.&lt;br /&gt;
Limit the number of inbound ports to required ports only and to specific resources or specific subnets.&lt;br /&gt;
* Login to the Azure Portal:&lt;br /&gt;
: https://portal.azure.com&lt;br /&gt;
* From the upper search pane, write &amp;quot;Network Security Groups&amp;quot;&lt;br /&gt;
* From the main pane, select an existing Network Security Group&lt;br /&gt;
* From the main pane, click on Inbound security rules&lt;br /&gt;
* Review all inbound rules&lt;br /&gt;
: Note: It is highly recommended that inbound access on SSH (port 22TCP) or RDP (port 3389TCP) will be limited to specific IP address or IP range from known source location.&lt;br /&gt;
* Update the Network Security Group as needed&lt;br /&gt;
* Save the Network Security Group&lt;br /&gt;
* Log off the Azure portal&lt;br /&gt;
&lt;br /&gt;
== SQL Server Access Restricted ==&lt;br /&gt;
Allowing unnecessary inbound access to Azure SQL Server increase the chance of network breach.&lt;br /&gt;
Limit the inbound access to your Azure SQL servers to required sources only.&lt;br /&gt;
* Login to the Azure Portal:&lt;br /&gt;
: https://portal.azure.com&lt;br /&gt;
* From the upper search pane, write &amp;quot;Azure SQL&amp;quot;&lt;br /&gt;
* For each SQL server&lt;br /&gt;
* Click on Firewall / Virtual Networks&lt;br /&gt;
* Ensure that the firewall rules exist, and no rule has Start IP of 0.0.0.0 and End IP of 0.0.0.0 or other combinations which allows access to wider public IP ranges&lt;br /&gt;
* Configure the source CIDR/IP to the required subnet or required IP address.&lt;br /&gt;
* Log off the Azure portal&lt;br /&gt;
&lt;br /&gt;
== Storage Blob Container Public Access ==&lt;br /&gt;
Allowing public access to storage blob containers increase the chance of data breach.&lt;br /&gt;
Make sure no storage blob container is publicly accessible.&lt;br /&gt;
* Login to the Azure Portal:&lt;br /&gt;
: https://portal.azure.com&lt;br /&gt;
* From the upper search pane, write &amp;quot;Storage accounts&amp;quot;&lt;br /&gt;
* From the main pane, select a storage account from the list&lt;br /&gt;
* For each storage account, go to Containers under BLOB SERVICE&lt;br /&gt;
* For each container, click Access policy&lt;br /&gt;
* Ensure that Public access level is set to Private (no anonymous access)&lt;br /&gt;
* Log off the Azure portal&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=Best_practices_for_securing_Azure_subscriptions&amp;diff=963</id>
		<title>Best practices for securing Azure subscriptions</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=Best_practices_for_securing_Azure_subscriptions&amp;diff=963"/>
		<updated>2020-04-13T16:32:54Z</updated>

		<summary type="html">&lt;p&gt;Eyales: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Configure MFA (Multi-Factor Authentication) for any account with owner privileges ==&lt;br /&gt;
In-order to avoid potential compromise of credentials, it is recommended to configure multi-factor authentication for any account with owner privilege.&lt;br /&gt;
* Install Microsoft Authenticator app on your mobile device, as instructed:&lt;br /&gt;
: https://docs.microsoft.com/en-us/azure/active-directory/user-help/multi-factor-authentication-end-user-manage-settings#add-or-change-your-phone-number&lt;br /&gt;
* Login to the Azure Portal:&lt;br /&gt;
: https://portal.azure.com/&lt;br /&gt;
* From the top right pane, click on your username&lt;br /&gt;
* Click on View account&lt;br /&gt;
* Under &amp;quot;Manage account&amp;quot;, click on &amp;quot;Additional security verification&amp;quot;&lt;br /&gt;
* Under &amp;quot;How would you like to respond&amp;quot;, click on &amp;quot;Set up Authenticator app&amp;quot;&lt;br /&gt;
* Follow the on-screen instructions, including using your mobile device to scan the QR code, and then select Next&lt;br /&gt;
* You&#039;ll be asked to approve a notification through the Microsoft Authenticator app, to verify your information.&lt;br /&gt;
* Select Save&lt;br /&gt;
&lt;br /&gt;
== Limit number of inbound ports ==&lt;br /&gt;
Allowing large number of inbound ports access Azure resources increase the chance of network breach.&lt;br /&gt;
Limit the number of inbound ports to required ports only and to specific resources or specific subnets.&lt;br /&gt;
* Login to the Azure Portal:&lt;br /&gt;
: https://portal.azure.com&lt;br /&gt;
* From the upper search pane, write &amp;quot;Network Security Groups&amp;quot;&lt;br /&gt;
* From the main pane, select an existing Network Security Group&lt;br /&gt;
* From the main pane, click on Inbound security rules&lt;br /&gt;
* Review all inbound rules&lt;br /&gt;
: Note: It is highly recommended that inbound access on SSH (port 22TCP) or RDP (port 3389TCP) will be limited to specific IP address or IP range from known source location.&lt;br /&gt;
* Update the Network Security Group as needed&lt;br /&gt;
* Save the Network Security Group&lt;br /&gt;
* Log off the Azure portal&lt;br /&gt;
&lt;br /&gt;
== SQL Server Access Restricted ==&lt;br /&gt;
Allowing unnecessary inbound access to Azure SQL Server increase the chance of network breach.&lt;br /&gt;
Limit the inbound access to your Azure SQL servers to required sources only.&lt;br /&gt;
* Login to the Azure Portal:&lt;br /&gt;
: https://portal.azure.com&lt;br /&gt;
* From the upper search pane, write &amp;quot;Azure SQL&amp;quot;&lt;br /&gt;
* For each SQL server&lt;br /&gt;
* Click on Firewall / Virtual Networks&lt;br /&gt;
* Ensure that the firewall rules exist, and no rule has Start IP of 0.0.0.0 and End IP of 0.0.0.0 or other combinations which allows access to wider public IP ranges&lt;br /&gt;
* Configure the source CIDR/IP to the required subnet or required IP address.&lt;br /&gt;
* Log off the Azure portal&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=Best_practices_for_securing_Azure_subscriptions&amp;diff=962</id>
		<title>Best practices for securing Azure subscriptions</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=Best_practices_for_securing_Azure_subscriptions&amp;diff=962"/>
		<updated>2020-04-13T16:31:15Z</updated>

		<summary type="html">&lt;p&gt;Eyales: Created page with &amp;quot;== Configure MFA (Multi-Factor Authentication) for any account with owner privileges == In-order to avoid potential compromise of credentials, it is recommended to configure m...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Configure MFA (Multi-Factor Authentication) for any account with owner privileges ==&lt;br /&gt;
In-order to avoid potential compromise of credentials, it is recommended to configure multi-factor authentication for any account with owner privilege.&lt;br /&gt;
* Install Microsoft Authenticator app on your mobile device, as instructed:&lt;br /&gt;
: https://docs.microsoft.com/en-us/azure/active-directory/user-help/multi-factor-authentication-end-user-manage-settings#add-or-change-your-phone-number&lt;br /&gt;
* Login to the Azure Portal:&lt;br /&gt;
: https://portal.azure.com/&lt;br /&gt;
* From the top right pane, click on your username&lt;br /&gt;
* Click on View account&lt;br /&gt;
* Under &amp;quot;Manage account&amp;quot;, click on &amp;quot;Additional security verification&amp;quot;&lt;br /&gt;
* Under &amp;quot;How would you like to respond&amp;quot;, click on &amp;quot;Set up Authenticator app&amp;quot;&lt;br /&gt;
* Follow the on-screen instructions, including using your mobile device to scan the QR code, and then select Next&lt;br /&gt;
* You&#039;ll be asked to approve a notification through the Microsoft Authenticator app, to verify your information.&lt;br /&gt;
* Select Save&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=Azure_-_How_To&amp;diff=961</id>
		<title>Azure - How To</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=Azure_-_How_To&amp;diff=961"/>
		<updated>2020-04-13T16:30:21Z</updated>

		<summary type="html">&lt;p&gt;Eyales: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[Best practices for securing Azure subscriptions]]&lt;br /&gt;
*[[How to configure MFA (Multi-Factor Authentication) for AD Azure account]]&lt;br /&gt;
*[[How to create a file share in Azure Files]]&lt;br /&gt;
*[[How to create Azure Virtual Machine and perform login using SSH]]&lt;br /&gt;
*[[How to create Azure Network Security Group]]&lt;br /&gt;
*[[How to create Azure Network Interface]]&lt;br /&gt;
*[[How to create Azure Resource Group]]&lt;br /&gt;
*[[How to create Azure Route Table]]&lt;br /&gt;
*[[How to create Azure Storage Account]]&lt;br /&gt;
*[[How to create Azure Virtual Network (VNet)]]&lt;br /&gt;
*[[How to create HPC Cluster based on Azure CycleCloud]]&lt;br /&gt;
*[[How to create Windows Virtual Machine and perform login using RDP]]&lt;br /&gt;
*[[How to install Wordpress server based on Azure Container Instances]]&lt;br /&gt;
*[[How to install Wordpress server based on Azure Web App]]&lt;br /&gt;
*[[How to mount Azure Blob Storage inside a Linux machine]]&lt;br /&gt;
*[[Using Azure CLI for managing Azure resources]]&lt;br /&gt;
*[[Using PowerShell for managing Azure resources]]&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=Best_practices_for_AWS_cost_optimization&amp;diff=960</id>
		<title>Best practices for AWS cost optimization</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=Best_practices_for_AWS_cost_optimization&amp;diff=960"/>
		<updated>2020-04-13T15:54:13Z</updated>

		<summary type="html">&lt;p&gt;Eyales: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Unused EBS Volumes ==&lt;br /&gt;
* Login to the AWS Management Console&lt;br /&gt;
: https://console.aws.amazon.com/ec2/&lt;br /&gt;
* In the navigation panel, under Elastic Block Store, click Volumes.&lt;br /&gt;
* To identify any unattached EBS volumes, check their status under State column. If the status is available, the volume is not attached to an EC2 instance and can be safely deleted.&lt;br /&gt;
* Select the unused EBS volume -&amp;gt; click on Actions -&amp;gt; Delete volume&lt;br /&gt;
* Change the AWS region from the navigation bar and repeat the process for the other regions.&lt;br /&gt;
* Log off the AWS Management console.&lt;br /&gt;
&lt;br /&gt;
== Low Utilization Amazon EC2 Instances ==&lt;br /&gt;
* Sign in to the AWS Management Console&lt;br /&gt;
: https://console.aws.amazon.com/ec2/&lt;br /&gt;
* In the left navigation panel, under INSTANCES section, choose Instances.&lt;br /&gt;
* Select the EC2 instance that you want to examine.&lt;br /&gt;
* Select the Monitoring tab from the dashboard bottom panel.&lt;br /&gt;
* Within the CloudWatch metrics section, perform the following actions:&lt;br /&gt;
:* Click on the CPU Utilization (Percent) usage graph thumbnail to open the instance CPU usage details box. Inside the CloudWatch Monitoring Details dialog box, set the following parameters:&lt;br /&gt;
::* From the Statistic dropdown list, select Average.&lt;br /&gt;
::* From the Time Range list, select Last 1 Week.&lt;br /&gt;
::* From the Period dropdown list, select 1 Hour.&lt;br /&gt;
:* Once the monitoring data is loaded, verify the instance CPU usage for the last 7 days. If the average usage (percent) has been less than 2%, e.g. , the selected EC2 instance qualifies as candidate for an idle instance. Click Close to return to the dashboard.&lt;br /&gt;
* Decide if you wish to terminate (delete) the EC2 instance.&lt;br /&gt;
* To terminate the EC2 instance -&amp;gt; from Actions -&amp;gt; select Instance State -&amp;gt; select Terminate -&amp;gt; choose Yes, Terminate&lt;br /&gt;
* Change the AWS region from the navigation bar and repeat the process for the other regions.&lt;br /&gt;
* Log off the AWS Management console.&lt;br /&gt;
&lt;br /&gt;
== Unassociated Elastic IP Addresses ==&lt;br /&gt;
* Sign in to the AWS Management Console&lt;br /&gt;
: https://console.aws.amazon.com/vpc/&lt;br /&gt;
* In the left navigation panel, under Virtual Private Cloud section, choose Elastic IPs.&lt;br /&gt;
* Select Unassociated from the Filter dropdown menu to filter all the available EIPs and return the unattached ones. The filtering process should return the Elastic IPs that are not currently associated with any running EC2 instances or Elastic Network Interfaces (ENIs). The unattached EIPs returned at this step can be safely released (see Remediation/Resolution section).&lt;br /&gt;
* Change the AWS region from the navigation bar and repeat the process for the other regions.&lt;br /&gt;
* Log off the AWS Management console.&lt;br /&gt;
&lt;br /&gt;
== Underutilized Amazon Redshift Clusters ==&lt;br /&gt;
* Login to the AWS Management Console&lt;br /&gt;
: https://console.aws.amazon.com/redshift/&lt;br /&gt;
* In the left navigation panel, under Redshift Dashboard, click Clusters. &lt;br /&gt;
* Choose the Redshift cluster that you want to examine then click on its identifier link listed in the Cluster column.&lt;br /&gt;
* On the cluster settings page, select the Performance tab to access the monitoring panel.&lt;br /&gt;
* On the monitoring panel displayed for the selected cluster, perform the following actions:&lt;br /&gt;
:* To verify the Redshift cluster Database Connections usage graph, follow the steps below:&lt;br /&gt;
::* From the Time Range dropdown list, select Last 1 Week.&lt;br /&gt;
::* From the Period list, select 1 Hour.&lt;br /&gt;
::* From the Statistic dropdown list, select Average.&lt;br /&gt;
::* And from the Metrics dropdown list, select DatabaseConnections.&lt;br /&gt;
:* Once the monitoring data is loaded into the Database Connections usage graph, check the number of database connections for the last 7 days. If the average usage (count) has been less than 1, e.g., the selected Redshift cluster qualifies as candidate for the idle cluster.&lt;br /&gt;
* If you no longer need your RedShift cluster, you can delete it.&lt;br /&gt;
* On the navigation menu, choose CLUSTERS.&lt;br /&gt;
* Choose the cluster to delete.&lt;br /&gt;
* For Actions, choose Delete. The Delete cluster page appears.&lt;br /&gt;
* Choose Delete cluster.&lt;br /&gt;
* Change the AWS region from the navigation bar and repeat the process for the other regions.&lt;br /&gt;
* Log off the AWS Management console.&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=Best_practices_for_AWS_cost_optimization&amp;diff=959</id>
		<title>Best practices for AWS cost optimization</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=Best_practices_for_AWS_cost_optimization&amp;diff=959"/>
		<updated>2020-04-13T15:51:42Z</updated>

		<summary type="html">&lt;p&gt;Eyales: Created page with &amp;quot;== Unused EBS Volumes == * Login to the AWS Management Console : https://console.aws.amazon.com/ec2/ * In the navigation panel, under Elastic Block Store, click Volumes. * To...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Unused EBS Volumes ==&lt;br /&gt;
* Login to the AWS Management Console&lt;br /&gt;
: https://console.aws.amazon.com/ec2/&lt;br /&gt;
* In the navigation panel, under Elastic Block Store, click Volumes.&lt;br /&gt;
* To identify any unattached EBS volumes, check their status under State column. If the status is available, the volume is not attached to an EC2 instance and can be safely deleted.&lt;br /&gt;
* Select the unused EBS volume -&amp;gt; click on Actions -&amp;gt; Delete volume&lt;br /&gt;
* Change the AWS region from the navigation bar and repeat the process for the other regions.&lt;br /&gt;
* Log off the AWS Management console.&lt;br /&gt;
&lt;br /&gt;
== Low Utilization Amazon EC2 Instances ==&lt;br /&gt;
* Sign in to the AWS Management Console&lt;br /&gt;
: https://console.aws.amazon.com/ec2/&lt;br /&gt;
* In the left navigation panel, under INSTANCES section, choose Instances.&lt;br /&gt;
* Select the EC2 instance that you want to examine.&lt;br /&gt;
* Select the Monitoring tab from the dashboard bottom panel.&lt;br /&gt;
* Within the CloudWatch metrics section, perform the following actions:&lt;br /&gt;
:* Click on the CPU Utilization (Percent) usage graph thumbnail to open the instance CPU usage details box. Inside the CloudWatch Monitoring Details dialog box, set the following parameters:&lt;br /&gt;
::* From the Statistic dropdown list, select Average.&lt;br /&gt;
::* From the Time Range list, select Last 1 Week.&lt;br /&gt;
::* From the Period dropdown list, select 1 Hour.&lt;br /&gt;
:* Once the monitoring data is loaded, verify the instance CPU usage for the last 7 days. If the average usage (percent) has been less than 2%, e.g. , the selected EC2 instance qualifies as candidate for an idle instance. Click Close to return to the dashboard.&lt;br /&gt;
* Decide if you wish to terminate (delete) the EC2 instance.&lt;br /&gt;
* To terminate the EC2 instance -&amp;gt; from Actions -&amp;gt; select Instance State -&amp;gt; select Terminate -&amp;gt; choose Yes, Terminate&lt;br /&gt;
* Change the AWS region from the navigation bar and repeat the process for the other regions.&lt;br /&gt;
* Log off the AWS Management console.&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=How_To&amp;diff=958</id>
		<title>How To</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=How_To&amp;diff=958"/>
		<updated>2020-04-13T15:49:06Z</updated>

		<summary type="html">&lt;p&gt;Eyales: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[AWS CLI Cheat Sheet]]&lt;br /&gt;
*[[Best practices for AWS cost optimization]]&lt;br /&gt;
*[[Best practices for managing AWS account]]&lt;br /&gt;
*[[Best practices for securing AWS account]]&lt;br /&gt;
*[[How to add permissions to AWS resources using AWS CLI on Windows client]]&lt;br /&gt;
*[[How to configure MFA (Multi-Factor Authentication) for AWS IAM User]]&lt;br /&gt;
*[[How to configure S3 bucket]]&lt;br /&gt;
*[[How to connect to S3 bucket using Windows client]]&lt;br /&gt;
*[[How to create a new security group]]&lt;br /&gt;
*[[How to create a route table]]&lt;br /&gt;
*[[How to create a subnet]]&lt;br /&gt;
*[[How to create a user account in AWS IAM]]&lt;br /&gt;
*[[How to create an EBS volume]]&lt;br /&gt;
*[[How to create an AWS Managed Microsoft AD directory]]&lt;br /&gt;
*[[How to create Amazon EC2 instance and perform login using SSH]]&lt;br /&gt;
*[[How to create Amazon Virtual Private Cloud (VPC)]]&lt;br /&gt;
*[[How to create AWS ParallelCluster with Slurm scheduler]]&lt;br /&gt;
*[[How to create budget and billing alerts]]&lt;br /&gt;
*[[How to create Windows based Amazon EC2 instance from the AWS Marketplace]]&lt;br /&gt;
*[[How to mount Amazon S3 Storage inside a Linux machine]]&lt;br /&gt;
*[[How to register for the AWSome Day]]&lt;br /&gt;
*[[How to set up Amazon FSx for Windows File Server]]&lt;br /&gt;
*[[How to sync files to Amazon Glacier]]&lt;br /&gt;
*[[Recommendations for configuring an AWS linked account]]&lt;br /&gt;
*[[Using PowerShell for managing AWS resources]]&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=Best_practices_for_securing_AWS_account&amp;diff=957</id>
		<title>Best practices for securing AWS account</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=Best_practices_for_securing_AWS_account&amp;diff=957"/>
		<updated>2020-04-13T15:02:27Z</updated>

		<summary type="html">&lt;p&gt;Eyales: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Changing IAM user password ==&lt;br /&gt;
In-order to avoid potential compromise of credentials, it is recommended to replace every IAM user’s password, every 90 days.&lt;br /&gt;
* Sign in to the AWS Management Console and open the IAM console at:&lt;br /&gt;
: https://console.aws.amazon.com/iam/&lt;br /&gt;
* In the navigation pane, choose Users.&lt;br /&gt;
* Choose the name of the user whose password you want to change.&lt;br /&gt;
* Choose the Security credentials tab, and then under Sign-in credentials, choose Manage password next to Console password.&lt;br /&gt;
* Choose whether to have IAM generate a password or create a custom password:&lt;br /&gt;
:* To have IAM generate a password, choose Autogenerated password.&lt;br /&gt;
:* To create a custom password, choose Custom password, and type the password.&lt;br /&gt;
* To require the user to create a new password when signing in, choose Require password reset. Then choose Apply.&lt;br /&gt;
* If you choose the option to generate a password, choose Show in the New password dialog box. This lets you view the password so you can share it with the user.&lt;br /&gt;
* Log off the AWS Management Console.&lt;br /&gt;
&lt;br /&gt;
== Changing IAM user access keys ==&lt;br /&gt;
In-order to avoid potential compromise of credentials, it is recommended to replace every IAM user’s access keys, every 90 days.&lt;br /&gt;
* While the first access key is still active, create a second access key.&lt;br /&gt;
:* Sign in to the AWS Management Console and open the IAM console at&lt;br /&gt;
:: https://console.aws.amazon.com/iam/&lt;br /&gt;
:* In the navigation pane, choose Users.&lt;br /&gt;
:* Choose the name of the intended user, and then choose the Security credentials tab.&lt;br /&gt;
:* Choose Create access key and then choose Download .csv file to save the access key ID and secret access key to a .csv file on your computer. Store the file in a secure location. You will not have access to the secret access key again after this closes. After you have downloaded the .csv file, choose Close.&lt;br /&gt;
* Update all applications and tools to use the new access key.&lt;br /&gt;
* Determine whether the first access key is still in use by reviewing the Last used column for the oldest access key. One approach is to wait several days and then check the old access key for any use before proceeding.&lt;br /&gt;
* Choose Make inactive to deactivate the first access key.&lt;br /&gt;
* Use only the new access key to confirm that your applications are working.&lt;br /&gt;
* After you wait some period of time to ensure that all applications and tools have been updated, you can delete the first access key:&lt;br /&gt;
:* Sign in to the AWS Management Console and open the IAM console at&lt;br /&gt;
:: https://console.aws.amazon.com/iam/&lt;br /&gt;
:* In the navigation pane, choose Users.&lt;br /&gt;
:* Choose the name of the intended user, and then choose the Security credentials tab.&lt;br /&gt;
:* Locate the access key to delete and choose its X button at the far right of the row. Then choose Delete to confirm.&lt;br /&gt;
* Log off the AWS Management console.&lt;br /&gt;
&lt;br /&gt;
== Limit number of inbound ports ==&lt;br /&gt;
Allowing large number of inbound ports access AWS resources increase the chance of network breach.&lt;br /&gt;
Limit the number of inbound ports to required ports only and to specific resources or specific subnets.&lt;br /&gt;
* Open the Amazon EC2 console at&lt;br /&gt;
: https://console.aws.amazon.com/ec2/&lt;br /&gt;
* In the navigation pane, choose Security Groups.&lt;br /&gt;
* Select the security group to update, and choose Inbound Rules to update a rule for inbound traffic.&lt;br /&gt;
* Choose Edit. Modify the rule entry as required and choose Save.&lt;br /&gt;
: Note: It is highly recommended that inbound access on SSH (port 22TCP) or RDP (port 3389TCP) will be limited to specific IP address or IP range from known source location.&lt;br /&gt;
* Log off the AWS Management console.&lt;br /&gt;
&lt;br /&gt;
== Amazon EBS Public Snapshots ==&lt;br /&gt;
In-order to avoid data theft, it is recommended to make sure no Amazon EBS snapshots are configured with public access.&lt;br /&gt;
* Open the Amazon EC2 console at&lt;br /&gt;
: https://console.aws.amazon.com/ec2/&lt;br /&gt;
* In the left navigation panel, under ELASTIC BLOCK STORE section, choose Snapshots.&lt;br /&gt;
* Select the volume snapshot that you want to examine. &lt;br /&gt;
* Select Permissions tab from the dashboard bottom panel and check the snapshot access permissions. If the selected EBS volume snapshot is publicly accessible, the EC2 dashboard will display the following status: &amp;quot;This snapshot is currently Public.&amp;quot;&lt;br /&gt;
* Change permissions so that no EBS volume snapshot is configured with public access.&lt;br /&gt;
* Logoff the AWS Management console.&lt;br /&gt;
&lt;br /&gt;
== Amazon RDS Public Snapshots ==&lt;br /&gt;
In-order to avoid data theft, it is recommended to make sure no Amazon RDS snapshots are configured with public access.&lt;br /&gt;
* Login to the AWS Management Console.&lt;br /&gt;
: https://console.aws.amazon.com/rds/&lt;br /&gt;
* In the left navigation panel, under RDS Dashboard, click Snapshots.&lt;br /&gt;
* Select Manual Snapshots from the Filter dropdown menu to display only manual database snapshots.&lt;br /&gt;
* Select the snapshot that you want to examine.&lt;br /&gt;
* Click Snapshot Actions button from the dashboard top menu and select Share Snapshot option.&lt;br /&gt;
* On the Manage Snapshot Permissions page, check the DB Snapshot Visibility setting. If the setting value is set to Public, the selected Amazon RDS database snapshot is publicly accessible, therefore all AWS accounts and users have access to the data available on the snapshot.&lt;br /&gt;
* Change permissions so that no Amazon RDS snapshot is configured with public access.&lt;br /&gt;
* Logoff the AWS Management console.&lt;br /&gt;
&lt;br /&gt;
== Amazon RDS Security Group Access Risk ==&lt;br /&gt;
Allowing unnecessary inbound access to Amazon RDS resources increase the chance of network breach.&lt;br /&gt;
Limit the inbound access to your RDS instance to required sources only.&lt;br /&gt;
* Login to the AWS Management Console&lt;br /&gt;
: https://console.aws.amazon.com/rds/&lt;br /&gt;
* In the navigation panel, under RDS Dashboard, click Security Groups.&lt;br /&gt;
* Select the DB security group that you want to examine and click on the details button (magnifying glass icon).&lt;br /&gt;
* Check the CIDR/IP value listed in the Details column for each authorized connection. If the security group contains any rules that have set the CIDR/IP to 0.0.0.0/0 and the Status to authorized, the selected DB security group configuration is insecure and does not restrict access to the database instance(s).&lt;br /&gt;
* Configure the source CIDR/IP to the required subnet or required IP address.&lt;br /&gt;
* Log off the AWS Management console.&lt;br /&gt;
&lt;br /&gt;
== Amazon S3 Bucket Permissions ==&lt;br /&gt;
Allowing public access to S3 buckets increase the chance of data breach.&lt;br /&gt;
Make sure no S3 bucket is publicly accessible.&lt;br /&gt;
* Sign in to the AWS Management Console&lt;br /&gt;
: https://console.aws.amazon.com/s3/&lt;br /&gt;
* Select the S3 bucket that you want to examine and click the Properties tab from the S3 dashboard top right menu.&lt;br /&gt;
* In the Properties panel, click the Permissions tab and check the Access Control List (ACL) for any grantee named &amp;quot;Everyone&amp;quot;. A grantee can be an AWS account or an AWS S3 predefined group. The grantee called &amp;quot;Everyone&amp;quot; is an AWS predefined group that allows access to everyone (i.e. anonymous users). If the bucket ACL configuration does specify the &amp;quot;Everyone&amp;quot; predefined group with the List (READ) permission enabled, the selected S3 bucket is publicly accessible for content listing and is rendered as insecure.&lt;br /&gt;
* Make sure no S3 bucket is publicly accessible.&lt;br /&gt;
* Log off the AWS Management console.&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=Best_practices_for_securing_AWS_account&amp;diff=956</id>
		<title>Best practices for securing AWS account</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=Best_practices_for_securing_AWS_account&amp;diff=956"/>
		<updated>2020-04-13T15:01:22Z</updated>

		<summary type="html">&lt;p&gt;Eyales: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Changing IAM user password ==&lt;br /&gt;
In-order to avoid potential compromise of credentials, it is recommended to replace every IAM user’s password, every 90 days.&lt;br /&gt;
* Sign in to the AWS Management Console and open the IAM console at:&lt;br /&gt;
: https://console.aws.amazon.com/iam/&lt;br /&gt;
* In the navigation pane, choose Users.&lt;br /&gt;
* Choose the name of the user whose password you want to change.&lt;br /&gt;
* Choose the Security credentials tab, and then under Sign-in credentials, choose Manage password next to Console password.&lt;br /&gt;
* Choose whether to have IAM generate a password or create a custom password:&lt;br /&gt;
:* To have IAM generate a password, choose Autogenerated password.&lt;br /&gt;
:* To create a custom password, choose Custom password, and type the password.&lt;br /&gt;
* To require the user to create a new password when signing in, choose Require password reset. Then choose Apply.&lt;br /&gt;
* If you choose the option to generate a password, choose Show in the New password dialog box. This lets you view the password so you can share it with the user.&lt;br /&gt;
* Log off the AWS Management Console.&lt;br /&gt;
&lt;br /&gt;
== Changing IAM user access keys ==&lt;br /&gt;
In-order to avoid potential compromise of credentials, it is recommended to replace every IAM user’s access keys, every 90 days.&lt;br /&gt;
* While the first access key is still active, create a second access key.&lt;br /&gt;
:* Sign in to the AWS Management Console and open the IAM console at&lt;br /&gt;
:: https://console.aws.amazon.com/iam/&lt;br /&gt;
:* In the navigation pane, choose Users.&lt;br /&gt;
:* Choose the name of the intended user, and then choose the Security credentials tab.&lt;br /&gt;
:* Choose Create access key and then choose Download .csv file to save the access key ID and secret access key to a .csv file on your computer. Store the file in a secure location. You will not have access to the secret access key again after this closes. After you have downloaded the .csv file, choose Close.&lt;br /&gt;
* Update all applications and tools to use the new access key.&lt;br /&gt;
* Determine whether the first access key is still in use by reviewing the Last used column for the oldest access key. One approach is to wait several days and then check the old access key for any use before proceeding.&lt;br /&gt;
* Choose Make inactive to deactivate the first access key.&lt;br /&gt;
* Use only the new access key to confirm that your applications are working.&lt;br /&gt;
* After you wait some period of time to ensure that all applications and tools have been updated, you can delete the first access key:&lt;br /&gt;
:* Sign in to the AWS Management Console and open the IAM console at&lt;br /&gt;
:: https://console.aws.amazon.com/iam/&lt;br /&gt;
:* In the navigation pane, choose Users.&lt;br /&gt;
:* Choose the name of the intended user, and then choose the Security credentials tab.&lt;br /&gt;
:* Locate the access key to delete and choose its X button at the far right of the row. Then choose Delete to confirm.&lt;br /&gt;
* Log off the AWS Management console.&lt;br /&gt;
&lt;br /&gt;
== Limit number of inbound ports ==&lt;br /&gt;
Allowing large number of inbound ports access AWS resources increase the chance of network breach.&lt;br /&gt;
Limit the number of inbound ports to required ports only and to specific resources or specific subnets.&lt;br /&gt;
* Open the Amazon EC2 console at&lt;br /&gt;
: https://console.aws.amazon.com/ec2/&lt;br /&gt;
* In the navigation pane, choose Security Groups.&lt;br /&gt;
* Select the security group to update, and choose Inbound Rules to update a rule for inbound traffic.&lt;br /&gt;
* Choose Edit. Modify the rule entry as required and choose Save.&lt;br /&gt;
: Note: It is highly recommended that inbound access on SSH (port 22TCP) or RDP (port 3389TCP) will be limited to specific IP address or IP range from known source location.&lt;br /&gt;
* Log off the AWS Management console.&lt;br /&gt;
&lt;br /&gt;
== Amazon EBS Public Snapshots ==&lt;br /&gt;
In-order to avoid data theft, it is recommended to make sure no Amazon EBS snapshots are configured with public access.&lt;br /&gt;
* Open the Amazon EC2 console at&lt;br /&gt;
: https://console.aws.amazon.com/ec2/&lt;br /&gt;
* In the left navigation panel, under ELASTIC BLOCK STORE section, choose Snapshots.&lt;br /&gt;
* Select the volume snapshot that you want to examine. &lt;br /&gt;
* Select Permissions tab from the dashboard bottom panel and check the snapshot access permissions. If the selected EBS volume snapshot is publicly accessible, the EC2 dashboard will display the following status: &amp;quot;This snapshot is currently Public.&amp;quot;&lt;br /&gt;
* Change permissions so that no EBS volume snapshot is configured with public access.&lt;br /&gt;
* Logoff the AWS Management console.&lt;br /&gt;
&lt;br /&gt;
== Amazon RDS Public Snapshots ==&lt;br /&gt;
In-order to avoid data theft, it is recommended to make sure no Amazon RDS snapshots are configured with public access.&lt;br /&gt;
* Login to the AWS Management Console.&lt;br /&gt;
: https://console.aws.amazon.com/rds/&lt;br /&gt;
* In the left navigation panel, under RDS Dashboard, click Snapshots.&lt;br /&gt;
* Select Manual Snapshots from the Filter dropdown menu to display only manual database snapshots.&lt;br /&gt;
* Select the snapshot that you want to examine.&lt;br /&gt;
* Click Snapshot Actions button from the dashboard top menu and select Share Snapshot option.&lt;br /&gt;
* On the Manage Snapshot Permissions page, check the DB Snapshot Visibility setting. If the setting value is set to Public, the selected Amazon RDS database snapshot is publicly accessible, therefore all AWS accounts and users have access to the data available on the snapshot.&lt;br /&gt;
* Change permissions so that no Amazon RDS snapshot is configured with public access.&lt;br /&gt;
* Logoff the AWS Management console.&lt;br /&gt;
&lt;br /&gt;
== Amazon RDS Security Group Access Risk ==&lt;br /&gt;
Allowing unnecessary inbound access to Amazon RDS resources increase the chance of network breach.&lt;br /&gt;
Limit the inbound access to your RDS instance to required sources only.&lt;br /&gt;
* Login to the AWS Management Console&lt;br /&gt;
: https://console.aws.amazon.com/rds/&lt;br /&gt;
* In the navigation panel, under RDS Dashboard, click Security Groups.&lt;br /&gt;
* Select the DB security group that you want to examine and click on the details button (magnifying glass icon).&lt;br /&gt;
* Check the CIDR/IP value listed in the Details column for each authorized connection. If the security group contains any rules that have set the CIDR/IP to 0.0.0.0/0 and the Status to authorized, the selected DB security group configuration is insecure and does not restrict access to the database instance(s).&lt;br /&gt;
* Configure the source CIDR/IP to the required subnet or required IP address.&lt;br /&gt;
* Log off the AWS Management console.&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=Best_practices_for_securing_AWS_account&amp;diff=955</id>
		<title>Best practices for securing AWS account</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=Best_practices_for_securing_AWS_account&amp;diff=955"/>
		<updated>2020-04-13T14:58:35Z</updated>

		<summary type="html">&lt;p&gt;Eyales: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Changing IAM user password ==&lt;br /&gt;
In-order to avoid potential compromise of credentials, it is recommended to replace every IAM user’s password, every 90 days.&lt;br /&gt;
* Sign in to the AWS Management Console and open the IAM console at:&lt;br /&gt;
: https://console.aws.amazon.com/iam/&lt;br /&gt;
* In the navigation pane, choose Users.&lt;br /&gt;
* Choose the name of the user whose password you want to change.&lt;br /&gt;
* Choose the Security credentials tab, and then under Sign-in credentials, choose Manage password next to Console password.&lt;br /&gt;
* Choose whether to have IAM generate a password or create a custom password:&lt;br /&gt;
:* To have IAM generate a password, choose Autogenerated password.&lt;br /&gt;
:* To create a custom password, choose Custom password, and type the password.&lt;br /&gt;
* To require the user to create a new password when signing in, choose Require password reset. Then choose Apply.&lt;br /&gt;
* If you choose the option to generate a password, choose Show in the New password dialog box. This lets you view the password so you can share it with the user.&lt;br /&gt;
* Log off the AWS Management Console.&lt;br /&gt;
&lt;br /&gt;
== Changing IAM user access keys ==&lt;br /&gt;
In-order to avoid potential compromise of credentials, it is recommended to replace every IAM user’s access keys, every 90 days.&lt;br /&gt;
* While the first access key is still active, create a second access key.&lt;br /&gt;
:* Sign in to the AWS Management Console and open the IAM console at&lt;br /&gt;
:: https://console.aws.amazon.com/iam/&lt;br /&gt;
:* In the navigation pane, choose Users.&lt;br /&gt;
:* Choose the name of the intended user, and then choose the Security credentials tab.&lt;br /&gt;
:* Choose Create access key and then choose Download .csv file to save the access key ID and secret access key to a .csv file on your computer. Store the file in a secure location. You will not have access to the secret access key again after this closes. After you have downloaded the .csv file, choose Close.&lt;br /&gt;
* Update all applications and tools to use the new access key.&lt;br /&gt;
* Determine whether the first access key is still in use by reviewing the Last used column for the oldest access key. One approach is to wait several days and then check the old access key for any use before proceeding.&lt;br /&gt;
* Choose Make inactive to deactivate the first access key.&lt;br /&gt;
* Use only the new access key to confirm that your applications are working.&lt;br /&gt;
* After you wait some period of time to ensure that all applications and tools have been updated, you can delete the first access key:&lt;br /&gt;
:* Sign in to the AWS Management Console and open the IAM console at&lt;br /&gt;
:: https://console.aws.amazon.com/iam/&lt;br /&gt;
:* In the navigation pane, choose Users.&lt;br /&gt;
:* Choose the name of the intended user, and then choose the Security credentials tab.&lt;br /&gt;
:* Locate the access key to delete and choose its X button at the far right of the row. Then choose Delete to confirm.&lt;br /&gt;
* Log off the AWS Management console.&lt;br /&gt;
&lt;br /&gt;
== Limit number of inbound ports ==&lt;br /&gt;
Allowing large number of inbound ports access AWS resources increase the chance of network breach.&lt;br /&gt;
Limit the number of inbound ports to required ports only and to specific resources or specific subnets.&lt;br /&gt;
* Open the Amazon EC2 console at&lt;br /&gt;
: https://console.aws.amazon.com/ec2/&lt;br /&gt;
* In the navigation pane, choose Security Groups.&lt;br /&gt;
* Select the security group to update, and choose Inbound Rules to update a rule for inbound traffic.&lt;br /&gt;
* Choose Edit. Modify the rule entry as required and choose Save.&lt;br /&gt;
: Note: It is highly recommended that inbound access on SSH (port 22TCP) or RDP (port 3389TCP) will be limited to specific IP address or IP range from known source location.&lt;br /&gt;
* Log off the AWS Management console.&lt;br /&gt;
&lt;br /&gt;
== Amazon EBS Public Snapshots ==&lt;br /&gt;
In-order to avoid data theft, it is recommended to make sure no Amazon EBS snapshots are configured with public access.&lt;br /&gt;
* Open the Amazon EC2 console at&lt;br /&gt;
: https://console.aws.amazon.com/ec2/&lt;br /&gt;
* In the left navigation panel, under ELASTIC BLOCK STORE section, choose Snapshots.&lt;br /&gt;
* Select the volume snapshot that you want to examine. &lt;br /&gt;
* Select Permissions tab from the dashboard bottom panel and check the snapshot access permissions. If the selected EBS volume snapshot is publicly accessible, the EC2 dashboard will display the following status: &amp;quot;This snapshot is currently Public.&amp;quot;&lt;br /&gt;
* Change permissions so that no EBS volume snapshot is configured with public access.&lt;br /&gt;
* Logoff the AWS Management console.&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=Best_practices_for_securing_AWS_account&amp;diff=954</id>
		<title>Best practices for securing AWS account</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=Best_practices_for_securing_AWS_account&amp;diff=954"/>
		<updated>2020-04-13T14:56:22Z</updated>

		<summary type="html">&lt;p&gt;Eyales: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Changing IAM user password ==&lt;br /&gt;
In-order to avoid potential compromise of credentials, it is recommended to replace every IAM user’s password, every 90 days.&lt;br /&gt;
* Sign in to the AWS Management Console and open the IAM console at:&lt;br /&gt;
: https://console.aws.amazon.com/iam/&lt;br /&gt;
* In the navigation pane, choose Users.&lt;br /&gt;
* Choose the name of the user whose password you want to change.&lt;br /&gt;
* Choose the Security credentials tab, and then under Sign-in credentials, choose Manage password next to Console password.&lt;br /&gt;
* Choose whether to have IAM generate a password or create a custom password:&lt;br /&gt;
:* To have IAM generate a password, choose Autogenerated password.&lt;br /&gt;
:* To create a custom password, choose Custom password, and type the password.&lt;br /&gt;
* To require the user to create a new password when signing in, choose Require password reset. Then choose Apply.&lt;br /&gt;
* If you choose the option to generate a password, choose Show in the New password dialog box. This lets you view the password so you can share it with the user.&lt;br /&gt;
* Log off the AWS Management Console.&lt;br /&gt;
&lt;br /&gt;
== Changing IAM user access keys ==&lt;br /&gt;
In-order to avoid potential compromise of credentials, it is recommended to replace every IAM user’s access keys, every 90 days.&lt;br /&gt;
* While the first access key is still active, create a second access key.&lt;br /&gt;
:* Sign in to the AWS Management Console and open the IAM console at&lt;br /&gt;
:: https://console.aws.amazon.com/iam/&lt;br /&gt;
:* In the navigation pane, choose Users.&lt;br /&gt;
:* Choose the name of the intended user, and then choose the Security credentials tab.&lt;br /&gt;
:* Choose Create access key and then choose Download .csv file to save the access key ID and secret access key to a .csv file on your computer. Store the file in a secure location. You will not have access to the secret access key again after this closes. After you have downloaded the .csv file, choose Close.&lt;br /&gt;
* Update all applications and tools to use the new access key.&lt;br /&gt;
* Determine whether the first access key is still in use by reviewing the Last used column for the oldest access key. One approach is to wait several days and then check the old access key for any use before proceeding.&lt;br /&gt;
* Choose Make inactive to deactivate the first access key.&lt;br /&gt;
* Use only the new access key to confirm that your applications are working.&lt;br /&gt;
* After you wait some period of time to ensure that all applications and tools have been updated, you can delete the first access key:&lt;br /&gt;
:* Sign in to the AWS Management Console and open the IAM console at&lt;br /&gt;
:: https://console.aws.amazon.com/iam/&lt;br /&gt;
:* In the navigation pane, choose Users.&lt;br /&gt;
:* Choose the name of the intended user, and then choose the Security credentials tab.&lt;br /&gt;
:* Locate the access key to delete and choose its X button at the far right of the row. Then choose Delete to confirm.&lt;br /&gt;
* Log off the AWS Management console.&lt;br /&gt;
&lt;br /&gt;
== Limit number of inbound ports ==&lt;br /&gt;
Allowing large number of inbound ports access AWS resources increase the chance of network breach.&lt;br /&gt;
Limit the number of inbound ports to required ports only and to specific resources or specific subnets.&lt;br /&gt;
* Open the Amazon EC2 console at&lt;br /&gt;
: https://console.aws.amazon.com/ec2/&lt;br /&gt;
* In the navigation pane, choose Security Groups.&lt;br /&gt;
* Select the security group to update, and choose Inbound Rules to update a rule for inbound traffic.&lt;br /&gt;
* Choose Edit. Modify the rule entry as required and choose Save.&lt;br /&gt;
: Note: It is highly recommended that inbound access on SSH (port 22TCP) or RDP (port 3389TCP) will be limited to specific IP address or IP range from known source location.&lt;br /&gt;
* Log off the AWS Management console.&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=Best_practices_for_securing_AWS_account&amp;diff=953</id>
		<title>Best practices for securing AWS account</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=Best_practices_for_securing_AWS_account&amp;diff=953"/>
		<updated>2020-04-13T14:54:17Z</updated>

		<summary type="html">&lt;p&gt;Eyales: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Changing IAM user password ==&lt;br /&gt;
In-order to avoid potential compromise of credentials, it is recommended to replace every IAM user’s password, every 90 days.&lt;br /&gt;
* Sign in to the AWS Management Console and open the IAM console at:&lt;br /&gt;
: https://console.aws.amazon.com/iam/&lt;br /&gt;
* In the navigation pane, choose Users.&lt;br /&gt;
* Choose the name of the user whose password you want to change.&lt;br /&gt;
* Choose the Security credentials tab, and then under Sign-in credentials, choose Manage password next to Console password.&lt;br /&gt;
* Choose whether to have IAM generate a password or create a custom password:&lt;br /&gt;
:* To have IAM generate a password, choose Autogenerated password.&lt;br /&gt;
:* To create a custom password, choose Custom password, and type the password.&lt;br /&gt;
* To require the user to create a new password when signing in, choose Require password reset. Then choose Apply.&lt;br /&gt;
* If you choose the option to generate a password, choose Show in the New password dialog box. This lets you view the password so you can share it with the user.&lt;br /&gt;
* Log off the AWS Management Console.&lt;br /&gt;
&lt;br /&gt;
== Changing IAM user access keys ==&lt;br /&gt;
In-order to avoid potential compromise of credentials, it is recommended to replace every IAM user’s access keys, every 90 days.&lt;br /&gt;
* While the first access key is still active, create a second access key.&lt;br /&gt;
:* Sign in to the AWS Management Console and open the IAM console at&lt;br /&gt;
:: https://console.aws.amazon.com/iam/&lt;br /&gt;
:* In the navigation pane, choose Users.&lt;br /&gt;
:* Choose the name of the intended user, and then choose the Security credentials tab.&lt;br /&gt;
:* Choose Create access key and then choose Download .csv file to save the access key ID and secret access key to a .csv file on your computer. Store the file in a secure location. You will not have access to the secret access key again after this closes. After you have downloaded the .csv file, choose Close.&lt;br /&gt;
* Update all applications and tools to use the new access key.&lt;br /&gt;
* Determine whether the first access key is still in use by reviewing the Last used column for the oldest access key. One approach is to wait several days and then check the old access key for any use before proceeding.&lt;br /&gt;
* Choose Make inactive to deactivate the first access key.&lt;br /&gt;
* Use only the new access key to confirm that your applications are working.&lt;br /&gt;
* After you wait some period of time to ensure that all applications and tools have been updated, you can delete the first access key:&lt;br /&gt;
:* Sign in to the AWS Management Console and open the IAM console at&lt;br /&gt;
:: https://console.aws.amazon.com/iam/&lt;br /&gt;
:* In the navigation pane, choose Users.&lt;br /&gt;
:* Choose the name of the intended user, and then choose the Security credentials tab.&lt;br /&gt;
:* Locate the access key to delete and choose its X button at the far right of the row. Then choose Delete to confirm.&lt;br /&gt;
* Log off the AWS Management console.&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=Best_practices_for_securing_AWS_account&amp;diff=952</id>
		<title>Best practices for securing AWS account</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=Best_practices_for_securing_AWS_account&amp;diff=952"/>
		<updated>2020-04-13T14:51:09Z</updated>

		<summary type="html">&lt;p&gt;Eyales: Created page with &amp;quot;== Changing IAM user password == In-order to avoid potential compromise of credentials, it is recommended to replace every IAM user’s password, every 90 days. * Sign in to t...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Changing IAM user password ==&lt;br /&gt;
In-order to avoid potential compromise of credentials, it is recommended to replace every IAM user’s password, every 90 days.&lt;br /&gt;
* Sign in to the AWS Management Console and open the IAM console at:&lt;br /&gt;
: https://console.aws.amazon.com/iam/&lt;br /&gt;
* In the navigation pane, choose Users.&lt;br /&gt;
* Choose the name of the user whose password you want to change.&lt;br /&gt;
* Choose the Security credentials tab, and then under Sign-in credentials, choose Manage password next to Console password.&lt;br /&gt;
* Choose whether to have IAM generate a password or create a custom password:&lt;br /&gt;
:* To have IAM generate a password, choose Autogenerated password.&lt;br /&gt;
:* To create a custom password, choose Custom password, and type the password.&lt;br /&gt;
* To require the user to create a new password when signing in, choose Require password reset. Then choose Apply.&lt;br /&gt;
* If you choose the option to generate a password, choose Show in the New password dialog box. This lets you view the password so you can share it with the user.&lt;br /&gt;
* Log off the AWS Management Console.&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=How_To&amp;diff=951</id>
		<title>How To</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=How_To&amp;diff=951"/>
		<updated>2020-04-13T14:49:05Z</updated>

		<summary type="html">&lt;p&gt;Eyales: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[AWS CLI Cheat Sheet]]&lt;br /&gt;
*[[Best practices for managing AWS account]]&lt;br /&gt;
*[[Best practices for securing AWS account]]&lt;br /&gt;
*[[How to add permissions to AWS resources using AWS CLI on Windows client]]&lt;br /&gt;
*[[How to configure MFA (Multi-Factor Authentication) for AWS IAM User]]&lt;br /&gt;
*[[How to configure S3 bucket]]&lt;br /&gt;
*[[How to connect to S3 bucket using Windows client]]&lt;br /&gt;
*[[How to create a new security group]]&lt;br /&gt;
*[[How to create a route table]]&lt;br /&gt;
*[[How to create a subnet]]&lt;br /&gt;
*[[How to create a user account in AWS IAM]]&lt;br /&gt;
*[[How to create an EBS volume]]&lt;br /&gt;
*[[How to create an AWS Managed Microsoft AD directory]]&lt;br /&gt;
*[[How to create Amazon EC2 instance and perform login using SSH]]&lt;br /&gt;
*[[How to create Amazon Virtual Private Cloud (VPC)]]&lt;br /&gt;
*[[How to create AWS ParallelCluster with Slurm scheduler]]&lt;br /&gt;
*[[How to create budget and billing alerts]]&lt;br /&gt;
*[[How to create Windows based Amazon EC2 instance from the AWS Marketplace]]&lt;br /&gt;
*[[How to mount Amazon S3 Storage inside a Linux machine]]&lt;br /&gt;
*[[How to register for the AWSome Day]]&lt;br /&gt;
*[[How to set up Amazon FSx for Windows File Server]]&lt;br /&gt;
*[[How to sync files to Amazon Glacier]]&lt;br /&gt;
*[[Recommendations for configuring an AWS linked account]]&lt;br /&gt;
*[[Using PowerShell for managing AWS resources]]&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=How_to_configure_MFA_(Multi-Factor_Authentication)_for_Google_G_Suite_or_Gmail_account&amp;diff=950</id>
		<title>How to configure MFA (Multi-Factor Authentication) for Google G Suite or Gmail account</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=How_to_configure_MFA_(Multi-Factor_Authentication)_for_Google_G_Suite_or_Gmail_account&amp;diff=950"/>
		<updated>2020-01-22T09:09:22Z</updated>

		<summary type="html">&lt;p&gt;Eyales: Created page with &amp;quot;* Install Google Authenticator, as instructed on: : https://support.google.com/accounts/answer/1066447 : https://apps.apple.com/us/app/google-authenticator/id388497605 * Login...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* Install Google Authenticator, as instructed on:&lt;br /&gt;
: https://support.google.com/accounts/answer/1066447&lt;br /&gt;
: https://apps.apple.com/us/app/google-authenticator/id388497605&lt;br /&gt;
* Login to the Google Account console:&lt;br /&gt;
: https://myaccount.google.com/&lt;br /&gt;
* From the left pane, click on Security&lt;br /&gt;
* Under &amp;quot;Signing in to Google&amp;quot;, click on 2-Step Verification&lt;br /&gt;
* Click on &amp;quot;Get started&amp;quot;&lt;br /&gt;
* Enter your Google G Suite or Gmail password&lt;br /&gt;
* Under &amp;quot;Authenticator app&amp;quot;, click on Set Up&lt;br /&gt;
* Choose which phone you have and click Next&lt;br /&gt;
* From your mobile device, click Scan a barcode&lt;br /&gt;
* Scan the barcode&lt;br /&gt;
* Click Next&lt;br /&gt;
* Enter the code shown on the Google Authenticator app on your phone&lt;br /&gt;
* Click Verify&lt;br /&gt;
* Click Done&lt;br /&gt;
&lt;br /&gt;
== Additional information: ==&lt;br /&gt;
: https://support.google.com/a/answer/2537800&lt;br /&gt;
: https://support.google.com/a/answer/175197&lt;br /&gt;
: https://myaccount.google.com/signinoptions/two-step-verification&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=GCP_How_To&amp;diff=949</id>
		<title>GCP How To</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=GCP_How_To&amp;diff=949"/>
		<updated>2020-01-22T09:08:25Z</updated>

		<summary type="html">&lt;p&gt;Eyales: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[How to configure Google Cloud Storage bucket]]&lt;br /&gt;
*[[How to configure MFA (Multi-Factor Authentication) for Google G Suite or Gmail account]]&lt;br /&gt;
*[[How to create a GCP firewall rule]]&lt;br /&gt;
*[[How to create a GCP subnet]]&lt;br /&gt;
*[[How to create a GCP route]]&lt;br /&gt;
*[[How to create a GCP VM instance and perform login using SSH]]&lt;br /&gt;
*[[How to create GCP budget and billing alerts]]&lt;br /&gt;
*[[How to create Google Virtual Private Cloud (VPC) Network]]&lt;br /&gt;
*[[How to create HPC Cluster with Slurm scheduler on Google Cloud Platform]]&lt;br /&gt;
*[[How to grant Google Cloud IAM role to a new member]]&lt;br /&gt;
*[[How to mount Google Cloud Storage inside a Linux machine]]&lt;br /&gt;
*[[How to sync files to Google Coldline Storage]]&lt;br /&gt;
*[[Using Google Cloud SDK CLI Tools for managing GCP resources]]&lt;br /&gt;
*[[Using PowerShell to manage GCP resources]]&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=How_to_configure_MFA_(Multi-Factor_Authentication)_for_AWS_IAM_User&amp;diff=948</id>
		<title>How to configure MFA (Multi-Factor Authentication) for AWS IAM User</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=How_to_configure_MFA_(Multi-Factor_Authentication)_for_AWS_IAM_User&amp;diff=948"/>
		<updated>2020-01-22T09:00:40Z</updated>

		<summary type="html">&lt;p&gt;Eyales: Created page with &amp;quot;* Install Virtual MFA application on your mobile device, as instructed: : https://aws.amazon.com/iam/features/mfa/ * Login to the AWS console: : https://console.aws.amazon.com...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* Install Virtual MFA application on your mobile device, as instructed:&lt;br /&gt;
: https://aws.amazon.com/iam/features/mfa/&lt;br /&gt;
* Login to the AWS console:&lt;br /&gt;
: https://console.aws.amazon.com/iam/&lt;br /&gt;
* From the left pane, click on Users&lt;br /&gt;
* In the User Name list, select the target user&lt;br /&gt;
* Choose the Security credentials tab -&amp;gt; click Next to Assigned MFA device, choose Manage&lt;br /&gt;
* In the Manage MFA Device wizard, choose Virtual MFA device, and then choose Continue&lt;br /&gt;
: IAM generates and displays configuration information for the virtual MFA device, including a QR code graphic.&lt;br /&gt;
* From the mobile device, open the virtual MFA application&lt;br /&gt;
: If the virtual MFA app supports multiple virtual MFA devices or accounts, choose the option to create a new virtual MFA device or account&lt;br /&gt;
* In the Manage MFA Device wizard, in the MFA code 1 box, type the one-time password that currently appears in the virtual MFA device. &lt;br /&gt;
: Wait up to 30 seconds for the device to generate a new one-time password. Then type the second one-time password into the MFA code 2 box. Choose Assign MFA&lt;br /&gt;
&lt;br /&gt;
== Additional information: ==&lt;br /&gt;
* https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_mfa_enable_virtual.html#enable-virt-mfa-for-iam-user&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=How_To&amp;diff=947</id>
		<title>How To</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=How_To&amp;diff=947"/>
		<updated>2020-01-22T08:59:53Z</updated>

		<summary type="html">&lt;p&gt;Eyales: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[AWS CLI Cheat Sheet]]&lt;br /&gt;
*[[Best practices for managing AWS account]]&lt;br /&gt;
*[[How to add permissions to AWS resources using AWS CLI on Windows client]]&lt;br /&gt;
*[[How to configure MFA (Multi-Factor Authentication) for AWS IAM User]]&lt;br /&gt;
*[[How to configure S3 bucket]]&lt;br /&gt;
*[[How to connect to S3 bucket using Windows client]]&lt;br /&gt;
*[[How to create a new security group]]&lt;br /&gt;
*[[How to create a route table]]&lt;br /&gt;
*[[How to create a subnet]]&lt;br /&gt;
*[[How to create a user account in AWS IAM]]&lt;br /&gt;
*[[How to create an EBS volume]]&lt;br /&gt;
*[[How to create an AWS Managed Microsoft AD directory]]&lt;br /&gt;
*[[How to create Amazon EC2 instance and perform login using SSH]]&lt;br /&gt;
*[[How to create Amazon Virtual Private Cloud (VPC)]]&lt;br /&gt;
*[[How to create AWS ParallelCluster with Slurm scheduler]]&lt;br /&gt;
*[[How to create budget and billing alerts]]&lt;br /&gt;
*[[How to create Windows based Amazon EC2 instance from the AWS Marketplace]]&lt;br /&gt;
*[[How to mount Amazon S3 Storage inside a Linux machine]]&lt;br /&gt;
*[[How to register for the AWSome Day]]&lt;br /&gt;
*[[How to set up Amazon FSx for Windows File Server]]&lt;br /&gt;
*[[How to sync files to Amazon Glacier]]&lt;br /&gt;
*[[Recommendations for configuring an AWS linked account]]&lt;br /&gt;
*[[Using PowerShell for managing AWS resources]]&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=How_to_configure_MFA_(Multi-Factor_Authentication)_for_AD_Azure_account&amp;diff=946</id>
		<title>How to configure MFA (Multi-Factor Authentication) for AD Azure account</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=How_to_configure_MFA_(Multi-Factor_Authentication)_for_AD_Azure_account&amp;diff=946"/>
		<updated>2020-01-22T08:58:34Z</updated>

		<summary type="html">&lt;p&gt;Eyales: Created page with &amp;quot;* Install Microsoft Authenticator app on your mobile device, as instructed: : https://docs.microsoft.com/en-us/azure/active-directory/user-help/multi-factor-authentication-end...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* Install Microsoft Authenticator app on your mobile device, as instructed:&lt;br /&gt;
: https://docs.microsoft.com/en-us/azure/active-directory/user-help/multi-factor-authentication-end-user-manage-settings#add-or-change-your-phone-number&lt;br /&gt;
* Login to the Azure Portal:&lt;br /&gt;
: https://portal.azure.com/&lt;br /&gt;
* From the top right pane, click on your username&lt;br /&gt;
* Click on View account&lt;br /&gt;
* Under &amp;quot;Manage account&amp;quot;, click on &amp;quot;Additional security verification&amp;quot;&lt;br /&gt;
* Under &amp;quot;How would you like to respond&amp;quot;, click on &amp;quot;Set up Authenticator app&amp;quot;&lt;br /&gt;
* Follow the on-screen instructions, including using your mobile device to scan the QR code, and then select Next&lt;br /&gt;
: You&#039;ll be asked to approve a notification through the Microsoft Authenticator app, to verify your information.&lt;br /&gt;
* Select Save&lt;br /&gt;
&lt;br /&gt;
== Additional information: ==&lt;br /&gt;
* https://docs.microsoft.com/en-us/azure/active-directory/user-help/multi-factor-authentication-end-user-manage-settings&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=Azure_-_How_To&amp;diff=945</id>
		<title>Azure - How To</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=Azure_-_How_To&amp;diff=945"/>
		<updated>2020-01-22T08:57:29Z</updated>

		<summary type="html">&lt;p&gt;Eyales: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[How to configure MFA (Multi-Factor Authentication) for AD Azure account]]&lt;br /&gt;
*[[How to create a file share in Azure Files]]&lt;br /&gt;
*[[How to create Azure Virtual Machine and perform login using SSH]]&lt;br /&gt;
*[[How to create Azure Network Security Group]]&lt;br /&gt;
*[[How to create Azure Network Interface]]&lt;br /&gt;
*[[How to create Azure Resource Group]]&lt;br /&gt;
*[[How to create Azure Route Table]]&lt;br /&gt;
*[[How to create Azure Storage Account]]&lt;br /&gt;
*[[How to create Azure Virtual Network (VNet)]]&lt;br /&gt;
*[[How to create HPC Cluster based on Azure CycleCloud]]&lt;br /&gt;
*[[How to create Windows Virtual Machine and perform login using RDP]]&lt;br /&gt;
*[[How to install Wordpress server based on Azure Container Instances]]&lt;br /&gt;
*[[How to install Wordpress server based on Azure Web App]]&lt;br /&gt;
*[[How to mount Azure Blob Storage inside a Linux machine]]&lt;br /&gt;
*[[Using Azure CLI for managing Azure resources]]&lt;br /&gt;
*[[Using PowerShell for managing Azure resources]]&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=How_to_mount_Amazon_S3_Storage_inside_a_Linux_machine&amp;diff=944</id>
		<title>How to mount Amazon S3 Storage inside a Linux machine</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=How_to_mount_Amazon_S3_Storage_inside_a_Linux_machine&amp;diff=944"/>
		<updated>2019-09-23T11:28:21Z</updated>

		<summary type="html">&lt;p&gt;Eyales: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Creating IAM user ==&lt;br /&gt;
* Login to the IAM console:&lt;br /&gt;
: https://console.aws.amazon.com/iam/&lt;br /&gt;
* From the left pane, click on Users -&amp;gt; click on “Add user” -&amp;gt; specify the user name -&amp;gt; access type: “Programmatic access” -&amp;gt; do not select “AWS Management Console access” -&amp;gt; click “Next: Permissions”&lt;br /&gt;
* From the “add user to group”, click on “Create group” -&amp;gt; from the policy list, select “AmazonS3FullAccess” -&amp;gt; click “Next: Review” -&amp;gt; click on “Create user”&lt;br /&gt;
* Download the CSV file with the “Access key ID” and “Secret access key” and save the CSV file in a secure location&lt;br /&gt;
* Click Close&lt;br /&gt;
&lt;br /&gt;
== S3FS installation ==&lt;br /&gt;
* Login using SSH to the target Linux machine using privileged account.&lt;br /&gt;
* Follow the instructions below to install the S3FS Fuse adapter:&lt;br /&gt;
: https://github.com/s3fs-fuse/s3fs-fuse/wiki/Installation-Notes&lt;br /&gt;
* Run the command sudo vi /etc/passwd-s3fs to create config file with the following content:&lt;br /&gt;
: &#039;&#039;&#039;bucketName:accessKeyId:secretAccessKey&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;bucketName&#039;&#039;&#039;, with the target bucket name&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;accessKeyId&#039;&#039;&#039;, with the relevant value from the credentials created on the IAM console&lt;br /&gt;
: Note 3: Replace &#039;&#039;&#039;secretAccessKey&#039;&#039;&#039;, with the relevant value from the credentials created on the IAM console&lt;br /&gt;
* Change the permissions of the passwd-s3fs file (Amazon Linux):&lt;br /&gt;
: &#039;&#039;&#039;sudo chown ec2-user:ec2-user /etc/passwd-s3fs&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;sudo chmod 600 /etc/passwd-s3fs&#039;&#039;&#039;&lt;br /&gt;
* Change the permissions of the passwd-s3fs file (Ubuntu):&lt;br /&gt;
: &#039;&#039;&#039;sudo chown ubuntu:ubuntu /etc/passwd-s3fs&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;sudo chmod 600 /etc/passwd-s3fs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Mount phase ==&lt;br /&gt;
* Run the commands below to mount the Amazon S3 storage (Amazon Linux):&lt;br /&gt;
: &#039;&#039;&#039;sudo mkdir -p /dev/cloudstorage&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;sudo chown -R ec2-user:ec2-user /dev/cloudstorage/&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;sudo chmod 777 /dev/cloudstorage&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;/usr/bin/s3fs MyBucket /dev/cloudstorage -o passwd_file=/etc/passwd-s3fs&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &#039;&#039;&#039;MyBucket&#039;&#039;&#039;, with the target bucket name&lt;br /&gt;
* Run the commands below to mount the Amazon S3 storage (Ubuntu):&lt;br /&gt;
: &#039;&#039;&#039;sudo mkdir -p /dev/cloudstorage&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;sudo chown -R ubuntu:ubuntu /dev/cloudstorage/&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;sudo chmod 777 /dev/cloudstorage&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;/usr/bin/s3fs MyBucket /dev/cloudstorage -o passwd_file=/etc/passwd-s3fs&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &#039;&#039;&#039;MyBucket&#039;&#039;&#039;, with the target bucket name&lt;br /&gt;
* To view the content of the Amazon S3 bucket, switch to the new mount point:&lt;br /&gt;
: &#039;&#039;&#039;cd /dev/cloudstorage&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Unmount phase ==&lt;br /&gt;
* en completing the work on the bucket, from the Linux SSH console, and run the commands below to unmount the Amazon S3 Storage:&lt;br /&gt;
: &#039;&#039;&#039;cd ~&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;sudo fusermount -u /dev/cloudstorage&#039;&#039;&#039;&lt;br /&gt;
* Logoff the Linux machine&lt;br /&gt;
&lt;br /&gt;
== Additional references regarding permanent mount using FSTAB ==&lt;br /&gt;
: https://github.com/s3fs-fuse/s3fs-fuse/wiki/Fuse-Over-Amazon&lt;br /&gt;
: https://github.com/s3fs-fuse/s3fs-fuse&lt;br /&gt;
: https://www.systutorials.com/docs/linux/man/1-s3fs/&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=How_to_create_AWS_ParallelCluster_with_Slurm_scheduler&amp;diff=943</id>
		<title>How to create AWS ParallelCluster with Slurm scheduler</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=How_to_create_AWS_ParallelCluster_with_Slurm_scheduler&amp;diff=943"/>
		<updated>2019-08-01T13:17:51Z</updated>

		<summary type="html">&lt;p&gt;Eyales: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Environment preparation phase within AWS Management Console ==&lt;br /&gt;
* Login the AWS IAM console:&lt;br /&gt;
: https://console.aws.amazon.com/iam/&lt;br /&gt;
* From the left pane, click on Policies -&amp;gt; click on Users -&amp;gt; Add User -&amp;gt; specify the name &#039;&#039;&#039;parallelcluster-user&#039;&#039;&#039; -&amp;gt; Access type: Programmatic access -&amp;gt; click Next: Permissions -&amp;gt; Set permissions -&amp;gt; select a group with &#039;&#039;&#039;“AdministratorAccess”&#039;&#039;&#039; role -&amp;gt; click Next: Tags -&amp;gt; click Next: Review -&amp;gt; click on Create user -&amp;gt; click on Download .csv and keep it in a secured location -&amp;gt; click on Close&lt;br /&gt;
* Follow the instructions below to create a key pair to access the cluster machines:&lt;br /&gt;
: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html#having-ec2-create-your-key-pair&lt;br /&gt;
* Follow the instructions below to create S3 bucket (with unique name) for storing data to export and import data to/from the FSx Lustre storage:&lt;br /&gt;
: https://docs.aws.amazon.com/AmazonS3/latest/gsg/CreatingABucket.html&lt;br /&gt;
: Note 1: Document the S3 bucket name for use inside the ParallelCluster config file&lt;br /&gt;
: Note 2: Create a folder called &#039;&#039;&#039;export&#039;&#039;&#039; (in small letters), inside the S3 bucket&lt;br /&gt;
* In-case you wish to create a dedicate VPC and subnet for the HPC cluster, follow the instructions below:&lt;br /&gt;
: https://docs.aws.amazon.com/directoryservice/latest/admin-guide/gsg_create_vpc.html&lt;br /&gt;
* Logoff the AWS console&lt;br /&gt;
&lt;br /&gt;
== Python installation phase on Linux (Debian / Ubuntu) ==&lt;br /&gt;
* Login to a Linux machine using SSH, and follow the instructions below to install Python 3:&lt;br /&gt;
: https://docs.aws.amazon.com/cli/latest/userguide/install-linux-python.html&lt;br /&gt;
: Note: In-case you already have Python 3 install, use the command below to upgrade to the latest build:&lt;br /&gt;
: &#039;&#039;&#039;sudo apt-get upgrade python3&#039;&#039;&#039;&lt;br /&gt;
* To install pip3, run the command below:&lt;br /&gt;
: &#039;&#039;&#039;sudo apt install python3-pip&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Python installation phase on CentOS 7 ==&lt;br /&gt;
* Login to the CentOS machine using SSH, and follow the instructions below to install Python3 and Python3-PIP:&lt;br /&gt;
: https://www.rosehosting.com/blog/how-to-install-python-3-6-4-on-centos-7/&lt;br /&gt;
&lt;br /&gt;
== Python installation phase on Windows ==&lt;br /&gt;
* Login to a Windows machine using privileged account, and follow the instructions below to install Python 3 and PIP:&lt;br /&gt;
: https://docs.aws.amazon.com/cli/latest/userguide/install-windows.html&lt;br /&gt;
&lt;br /&gt;
== AWS ParallelCluster installation phase ==&lt;br /&gt;
* Run the commands below to install the AWS ParallelCluster:&lt;br /&gt;
:* Linux:&lt;br /&gt;
:: &#039;&#039;&#039;sudo pip install aws-parallelcluster&#039;&#039;&#039;&lt;br /&gt;
:* Windows:&lt;br /&gt;
:: &#039;&#039;&#039;pip install aws-parallelcluster&#039;&#039;&#039;&lt;br /&gt;
* Run the command below to verify the installed version:&lt;br /&gt;
: &#039;&#039;&#039;pcluster version&#039;&#039;&#039;&lt;br /&gt;
* Follow the instructions below to install the AWS CLI:&lt;br /&gt;
: https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html&lt;br /&gt;
* Run the command below in-order to configure AWS CLI:&lt;br /&gt;
: &#039;&#039;&#039;aws configure&#039;&#039;&#039;&lt;br /&gt;
:* &#039;&#039;&#039;AWS Access Key ID&#039;&#039;&#039; – Specify the value from the CSV of the previously created IAM user &#039;&#039;&#039;parallelcluster-user&#039;&#039;&#039;&lt;br /&gt;
:* &#039;&#039;&#039;AWS Secret Access Key&#039;&#039;&#039; – Specify the value from the CSV of the previously created IAM user &#039;&#039;&#039;parallelcluster-user&#039;&#039;&#039;&lt;br /&gt;
:* &#039;&#039;&#039;Default region name&#039;&#039;&#039; – specify a region such as &#039;&#039;&#039;eu-west-1&#039;&#039;&#039;&lt;br /&gt;
:: Full list: https://docs.aws.amazon.com/general/latest/gr/rande.html&lt;br /&gt;
:* &#039;&#039;&#039;Default output format&#039;&#039;&#039;: JSON&lt;br /&gt;
* Run the command below to setup the initial configuration:&lt;br /&gt;
: &#039;&#039;&#039;pcluster configure&#039;&#039;&#039;&lt;br /&gt;
:* &#039;&#039;&#039;Cluster Template&#039;&#039;&#039;: Specify here a custom name for the HPC template (such as HPC Cluster)&lt;br /&gt;
:* &#039;&#039;&#039;AWS Region ID&#039;&#039;&#039;: Specify the same region you specified for the aws configure command (such as &#039;&#039;&#039;eu-west-1&#039;&#039;&#039;)&lt;br /&gt;
:* &#039;&#039;&#039;VPC Name&#039;&#039;&#039;: Specify the same name as the Cluster Template (such as &#039;&#039;&#039;HPC Cluster&#039;&#039;&#039;)&lt;br /&gt;
:* &#039;&#039;&#039;Key Name&#039;&#039;&#039;: Specify the name of the EC2 Key pair previously created&lt;br /&gt;
:* &#039;&#039;&#039;VPC ID&#039;&#039;&#039;: Specify the name of the target VPC ID to deploy the HPC cluster into&lt;br /&gt;
:: Note: The full list of VPC’s can be found within the AWS management console: https://console.aws.amazon.com/vpc&lt;br /&gt;
:* &#039;&#039;&#039;Master Subnet ID&#039;&#039;&#039;: Specify here the name of the target subnet ID to deploy the HPC cluster into&lt;br /&gt;
:: Note: The full list of subnets can be found within the AWS management console: https://console.aws.amazon.com/vpc&lt;br /&gt;
* Edit the ParallelCluster &#039;&#039;&#039;config&#039;&#039;&#039; file:&lt;br /&gt;
:* Linux: The file is located inside &#039;&#039;&#039;~/.parallelcluster/config&#039;&#039;&#039;&lt;br /&gt;
:* Windows: The file is located inside &#039;&#039;&#039;%UserProfile%\.parallelcluster\config&#039;&#039;&#039;&lt;br /&gt;
* Add the following parameters to the &#039;&#039;&#039;[cluster]&#039;&#039;&#039; section (for a large cluster):&lt;br /&gt;
: &#039;&#039;&#039;base_os = centos7&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;master_instance_type = c5n.xlarge&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;compute_instance_type = c5n.18xlarge&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;cluster_type = ondemand&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;initial_queue_size = 2&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;scheduler = slurm&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;placement_group = DYNAMIC&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;enable_efa = compute&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;fsx_settings = fs&#039;&#039;&#039;&lt;br /&gt;
: Note: For small cluster, add the following parameters to the &#039;&#039;&#039;[cluster]&#039;&#039;&#039; section:&lt;br /&gt;
: &#039;&#039;&#039;base_os = centos7&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;master_instance_type = m4.large&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;compute_instance_type = m4.large&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;cluster_type = ondemand&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;initial_queue_size = 2&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;max_queue_size = 3&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;scheduler = slurm&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;placement_group = DYNAMIC&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;fsx_settings = fs&#039;&#039;&#039;&lt;br /&gt;
* Add the following entire section to the &#039;&#039;&#039;config&#039;&#039;&#039; file:&lt;br /&gt;
: &#039;&#039;&#039;[fsx fs]&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;shared_dir = /fsx&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;storage_capacity = 3600&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;imported_file_chunk_size = 1024&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;export_path = s3://bucket/export&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;import_path = s3://bucket&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;weekly_maintenance_start_time = 1:00:00&#039;&#039;&#039;&lt;br /&gt;
: Note 1: The storage_capacity is the size of the FSx Lustre storage in GB&lt;br /&gt;
: Note 2: Replace the value of &#039;&#039;&#039;bucket&#039;&#039;&#039; with the previously S3 bucket name&lt;br /&gt;
* Run the command below to deploy the new cluster:&lt;br /&gt;
: &#039;&#039;&#039;pcluster create mycluster&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &#039;&#039;&#039;mycluster&#039;&#039;&#039; with your target HPC cluster name (without spaces)&lt;br /&gt;
* Go to the CloudFormation console to view the deployment status:&lt;br /&gt;
: https://eu-west-1.console.aws.amazon.com/cloudformation/home&lt;br /&gt;
* Wait for the cluster deployment to complete.&lt;br /&gt;
* Document the &#039;&#039;&#039;MasterPublicIP&#039;&#039;&#039; and &#039;&#039;&#039;ClusterUser&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Increase EC2 service limit ==&lt;br /&gt;
* In-case you need to increase the EC2 service limit (for example number of EC2 instances from a specific instance type), follow the instructions below:&lt;br /&gt;
: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-resource-limits.html#request-increase&lt;br /&gt;
&lt;br /&gt;
== Connecting to the HPC cluster (from Linux Machine) ==&lt;br /&gt;
* Run the command below to connect using SSH to the master server:&lt;br /&gt;
: &#039;&#039;&#039;pcluster ssh mycluster -i /path/to/keyfile.pem&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;mycluster&#039;&#039;&#039; with the previously create cluster name&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;/path/to/keyfile.pem&#039;&#039;&#039; with the actual path and key file name&lt;br /&gt;
* Run the command below to verify the state of the cluster:&lt;br /&gt;
: &#039;&#039;&#039;sinfo&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Connecting to the HPC cluster (from Windows Machine) ==&lt;br /&gt;
* Download &#039;&#039;&#039;puttygen.exe&#039;&#039;&#039; from:&lt;br /&gt;
: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html&lt;br /&gt;
* Run the &#039;&#039;&#039;puttygen.exe&#039;&#039;&#039;&lt;br /&gt;
* Click on “Load” -&amp;gt; change the file extension from “Putty Private key files” to “All Files” -&amp;gt; locate the private key pair and click on Open -&amp;gt; click on OK -&amp;gt; click on “Save private key” -&amp;gt; click on “Yes” -&amp;gt; save the private key file with PPK extension -&amp;gt; close &#039;&#039;&#039;puttygen.exe&#039;&#039;&#039;&lt;br /&gt;
* Download &#039;&#039;&#039;Putty&#039;&#039;&#039; from:&lt;br /&gt;
: https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html&lt;br /&gt;
* Run &#039;&#039;&#039;putty.exe&#039;&#039;&#039;&lt;br /&gt;
* From the left pane, under “Connection” -&amp;gt; expand SSH -&amp;gt; click on “Auth” -&amp;gt; from the main pane, under “Authentication parameters”, click on “Browse” -&amp;gt; locate the SSH private key generated by &#039;&#039;&#039;puttygen.exe&#039;&#039;&#039;&lt;br /&gt;
* From the left pane, click on “Session” -&amp;gt; from the main pane, under “Host Name (or IP address)” specify the following:&lt;br /&gt;
: &#039;&#039;&#039;user@IP_Address&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;user&#039;&#039;&#039; with the previously documented &#039;&#039;&#039;ClusterUser&#039;&#039;&#039; value&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;IP_Address&#039;&#039;&#039; with the previously documented &#039;&#039;&#039;MasterPublicIP&#039;&#039;&#039;&lt;br /&gt;
* Under “Saved Sessions”, specify a name for this newly created connection.&lt;br /&gt;
* Click on Save&lt;br /&gt;
* Click on Open&lt;br /&gt;
* Run the command below to verify the state of the cluster:&lt;br /&gt;
: &#039;&#039;&#039;sinfo&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Common actions to control the cluster ==&lt;br /&gt;
* Displays a list of stacks that are associated with AWS ParallelCluster:&lt;br /&gt;
: &#039;&#039;&#039;pcluster list&#039;&#039;&#039;&lt;br /&gt;
* Displays a list of all instances in a cluster:&lt;br /&gt;
: &#039;&#039;&#039;pcluster instances mycluster&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &#039;&#039;&#039;mycluster&#039;&#039;&#039; with the previously create cluster name&lt;br /&gt;
* View the current status of the cluster:&lt;br /&gt;
: &#039;&#039;&#039;pcluster status mycluster&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &#039;&#039;&#039;mycluster&#039;&#039;&#039; with the previously create cluster name&lt;br /&gt;
* Updates a running cluster by using the values in the configuration file:&lt;br /&gt;
: &#039;&#039;&#039;pcluster update mycluster -c  ~/.parallelcluster/config&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;mycluster&#039;&#039;&#039; with the previously create cluster name&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;~/.parallelcluster/config&#039;&#039;&#039; with the target config file location&lt;br /&gt;
* Stops the compute fleet, leaving the master node running:&lt;br /&gt;
: &#039;&#039;&#039;pcluster stop mycluster&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &#039;&#039;&#039;mycluster&#039;&#039;&#039; with the previously create cluster name&lt;br /&gt;
* Starts the compute fleet for a cluster that has been stopped:&lt;br /&gt;
: &#039;&#039;&#039;pcluster start mycluster&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &#039;&#039;&#039;mycluster&#039;&#039;&#039; with the previously create cluster name&lt;br /&gt;
&lt;br /&gt;
== Delete AWS ParallelCluster ==&lt;br /&gt;
* In-case you wish to keep the AWS ParallelCluster master node static IP, login to the AWS console:&lt;br /&gt;
: https://console.aws.amazon.com/ec2/&lt;br /&gt;
* From the left pane, click on Elastic IPs -&amp;gt; select the public IP of the master node -&amp;gt; Actions -&amp;gt; Disassociate address&lt;br /&gt;
* From command prompt (the same machine you used the pcluster commands), run the command below to delete the cluster:&lt;br /&gt;
: &#039;&#039;&#039;pcluster delete mycluster&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &#039;&#039;&#039;mycluster&#039;&#039;&#039; with the previously create cluster name&lt;br /&gt;
&lt;br /&gt;
== Important notes regarding shared storage ==&lt;br /&gt;
* Long term data must be stored inside S3 bucket&lt;br /&gt;
* The Amazon FSx for Lustre storage (mount &#039;&#039;&#039;/fsx&#039;&#039;&#039;) will be used for the duration of the compute job&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* Getting started with AWS ParallelCluster:&lt;br /&gt;
: https://aws-parallelcluster.readthedocs.io/en/latest/getting_started.html#&lt;br /&gt;
* Setting Up AWS ParallelCluster&lt;br /&gt;
: https://docs.aws.amazon.com/parallelcluster/latest/ug/getting_started.html&lt;br /&gt;
* Install AWS ParallelCluster in a Virtual Environment&lt;br /&gt;
: https://docs.aws.amazon.com/parallelcluster/latest/ug/install-virtualenv.html&lt;br /&gt;
* A Scientist&#039;s Guide to Cloud-HPC: Example with AWS ParallelCluster, Slurm, Spack, and WRF&lt;br /&gt;
: https://jiaweizhuang.github.io/blog/aws-hpc-guide/&lt;br /&gt;
* Launch your first sample HPC environment on AWS and review important concepts along the way&lt;br /&gt;
: https://aws.amazon.com/getting-started/use-cases/hpc/&lt;br /&gt;
* AWS ParallelCluster Wiki:&lt;br /&gt;
: https://github.com/aws/aws-parallelcluster&lt;br /&gt;
* Deploying an Elastic HPC Cluster&lt;br /&gt;
: https://d1.awsstatic.com/Projects/P4114756/deploy-elastic-hpc-cluster_project.pdf&lt;br /&gt;
* Scale HPC Workloads with Elastic Fabric Adapter and AWS ParallelCluster&lt;br /&gt;
: https://idk.dev/scale-hpc-workloads-with-elastic-fabric-adapter-and-aws-parallelcluster/&lt;br /&gt;
* Best Practices for Running Ansys Fluent Using AWS ParallelCluster&lt;br /&gt;
: https://aws.amazon.com/blogs/opensource/best-practices-running-ansys-fluent-aws-parallelcluster/&lt;br /&gt;
* AWS ParallelCluster with AWS Directory Services Authentication&lt;br /&gt;
: https://aws.amazon.com/blogs/opensource/aws-parallelcluster-aws-directory-services-authentication/&lt;br /&gt;
* Adding support for FSx for Lustre:&lt;br /&gt;
: https://aws-parallelcluster.readthedocs.io/en/develop/configuration.html#fsx-section&lt;br /&gt;
* Getting Started with Amazon FSx for Lustre&lt;br /&gt;
: https://docs.aws.amazon.com/fsx/latest/LustreGuide/getting-started.html&lt;br /&gt;
* Amazon FSx for Lustre Lustre User Guide&lt;br /&gt;
: https://docs.aws.amazon.com/fsx/latest/LustreGuide/LustreGuide.pdf&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=How_to_create_AWS_ParallelCluster_with_Slurm_scheduler&amp;diff=942</id>
		<title>How to create AWS ParallelCluster with Slurm scheduler</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=How_to_create_AWS_ParallelCluster_with_Slurm_scheduler&amp;diff=942"/>
		<updated>2019-07-29T13:24:31Z</updated>

		<summary type="html">&lt;p&gt;Eyales: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Environment preparation phase within AWS Management Console ==&lt;br /&gt;
* Login the AWS IAM console:&lt;br /&gt;
: https://console.aws.amazon.com/iam/&lt;br /&gt;
* From the left pane, click on Policies -&amp;gt; click on Users -&amp;gt; Add User -&amp;gt; specify the name &#039;&#039;&#039;parallelcluster-user&#039;&#039;&#039; -&amp;gt; Access type: Programmatic access -&amp;gt; click Next: Permissions -&amp;gt; Set permissions -&amp;gt; select a group with &#039;&#039;&#039;“AdministratorAccess”&#039;&#039;&#039; role -&amp;gt; click Next: Tags -&amp;gt; click Next: Review -&amp;gt; click on Create user -&amp;gt; click on Download .csv and keep it in a secured location -&amp;gt; click on Close&lt;br /&gt;
* Follow the instructions below to create a key pair to access the cluster machines:&lt;br /&gt;
: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html#having-ec2-create-your-key-pair&lt;br /&gt;
* Follow the instructions below to create S3 bucket (with unique name) for storing data to export and import data to/from the FSx Lustre storage:&lt;br /&gt;
: https://docs.aws.amazon.com/AmazonS3/latest/gsg/CreatingABucket.html&lt;br /&gt;
: Note 1: Document the S3 bucket name for use inside the ParallelCluster config file&lt;br /&gt;
: Note 2: Create a folder called &#039;&#039;&#039;export&#039;&#039;&#039; (in small letters), inside the S3 bucket&lt;br /&gt;
* In-case you wish to create a dedicate VPC and subnet for the HPC cluster, follow the instructions below:&lt;br /&gt;
: https://docs.aws.amazon.com/directoryservice/latest/admin-guide/gsg_create_vpc.html&lt;br /&gt;
* Logoff the AWS console&lt;br /&gt;
&lt;br /&gt;
== Python installation phase on Linux (Debian / Ubuntu) ==&lt;br /&gt;
* Login to a Linux machine using SSH, and follow the instructions below to install Python 3:&lt;br /&gt;
: https://docs.aws.amazon.com/cli/latest/userguide/install-linux-python.html&lt;br /&gt;
: Note: In-case you already have Python 3 install, use the command below to upgrade to the latest build:&lt;br /&gt;
: &#039;&#039;&#039;sudo apt-get upgrade python3&#039;&#039;&#039;&lt;br /&gt;
* To install pip3, run the command below:&lt;br /&gt;
: &#039;&#039;&#039;sudo apt install python3-pip&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Python installation phase on CentOS 7 ==&lt;br /&gt;
* Login to the CentOS machine using SSH, and follow the instructions below to install Python3 and Python3-PIP:&lt;br /&gt;
: https://www.rosehosting.com/blog/how-to-install-python-3-6-4-on-centos-7/&lt;br /&gt;
&lt;br /&gt;
== Python installation phase on Windows ==&lt;br /&gt;
* Login to a Windows machine using privileged account, and follow the instructions below to install Python 3 and PIP:&lt;br /&gt;
: https://docs.aws.amazon.com/cli/latest/userguide/install-windows.html&lt;br /&gt;
&lt;br /&gt;
== AWS ParallelCluster installation phase ==&lt;br /&gt;
* Run the commands below to install the AWS ParallelCluster:&lt;br /&gt;
:* Linux:&lt;br /&gt;
:: &#039;&#039;&#039;sudo pip install aws-parallelcluster&#039;&#039;&#039;&lt;br /&gt;
:* Windows:&lt;br /&gt;
:: &#039;&#039;&#039;pip install aws-parallelcluster&#039;&#039;&#039;&lt;br /&gt;
* Run the command below to verify the installed version:&lt;br /&gt;
: &#039;&#039;&#039;pcluster version&#039;&#039;&#039;&lt;br /&gt;
* Follow the instructions below to install the AWS CLI:&lt;br /&gt;
: https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html&lt;br /&gt;
* Run the command below in-order to configure AWS CLI:&lt;br /&gt;
: &#039;&#039;&#039;aws configure&#039;&#039;&#039;&lt;br /&gt;
:* &#039;&#039;&#039;AWS Access Key ID&#039;&#039;&#039; – Specify the value from the CSV of the previously created IAM user &#039;&#039;&#039;parallelcluster-user&#039;&#039;&#039;&lt;br /&gt;
:* &#039;&#039;&#039;AWS Secret Access Key&#039;&#039;&#039; – Specify the value from the CSV of the previously created IAM user &#039;&#039;&#039;parallelcluster-user&#039;&#039;&#039;&lt;br /&gt;
:* &#039;&#039;&#039;Default region name&#039;&#039;&#039; – specify a region such as &#039;&#039;&#039;eu-west-1&#039;&#039;&#039;&lt;br /&gt;
:: Full list: https://docs.aws.amazon.com/general/latest/gr/rande.html&lt;br /&gt;
:* &#039;&#039;&#039;Default output format&#039;&#039;&#039;: JSON&lt;br /&gt;
* Run the command below to setup the initial configuration:&lt;br /&gt;
: &#039;&#039;&#039;pcluster configure&#039;&#039;&#039;&lt;br /&gt;
:* &#039;&#039;&#039;Cluster Template&#039;&#039;&#039;: Specify here a custom name for the HPC template (such as HPC Cluster)&lt;br /&gt;
:* &#039;&#039;&#039;AWS Region ID&#039;&#039;&#039;: Specify the same region you specified for the aws configure command (such as &#039;&#039;&#039;eu-west-1&#039;&#039;&#039;)&lt;br /&gt;
:* &#039;&#039;&#039;VPC Name&#039;&#039;&#039;: Specify the same name as the Cluster Template (such as &#039;&#039;&#039;HPC Cluster&#039;&#039;&#039;)&lt;br /&gt;
:* &#039;&#039;&#039;Key Name&#039;&#039;&#039;: Specify the name of the EC2 Key pair previously created&lt;br /&gt;
:* &#039;&#039;&#039;VPC ID&#039;&#039;&#039;: Specify the name of the target VPC ID to deploy the HPC cluster into&lt;br /&gt;
:: Note: The full list of VPC’s can be found within the AWS management console: https://console.aws.amazon.com/vpc&lt;br /&gt;
:* &#039;&#039;&#039;Master Subnet ID&#039;&#039;&#039;: Specify here the name of the target subnet ID to deploy the HPC cluster into&lt;br /&gt;
:: Note: The full list of subnets can be found within the AWS management console: https://console.aws.amazon.com/vpc&lt;br /&gt;
* Edit the ParallelCluster &#039;&#039;&#039;config&#039;&#039;&#039; file:&lt;br /&gt;
:* Linux: The file is located inside &#039;&#039;&#039;~/.parallelcluster/config&#039;&#039;&#039;&lt;br /&gt;
:* Windows: The file is located inside &#039;&#039;&#039;%UserProfile%\.parallelcluster\config&#039;&#039;&#039;&lt;br /&gt;
* Add the following parameters to the &#039;&#039;&#039;[cluster]&#039;&#039;&#039; section (for a large cluster):&lt;br /&gt;
: &#039;&#039;&#039;base_os = centos7&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;master_instance_type = c5n.xlarge&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;compute_instance_type = c5n.18xlarge&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;cluster_type = ondemand&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;initial_queue_size = 2&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;scheduler = slurm&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;placement_group = DYNAMIC&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;enable_efa = compute&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;fsx_settings = fs&#039;&#039;&#039;&lt;br /&gt;
: Note: For small cluster, add the following parameters to the &#039;&#039;&#039;[cluster]&#039;&#039;&#039; section:&lt;br /&gt;
: &#039;&#039;&#039;base_os = centos7&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;master_instance_type = m4.large&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;compute_instance_type = m4.large&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;cluster_type = ondemand&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;initial_queue_size = 2&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;max_queue_size = 3&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;scheduler = slurm&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;placement_group = DYNAMIC&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;fsx_settings = fs&#039;&#039;&#039;&lt;br /&gt;
* Add the following entire section to the &#039;&#039;&#039;config&#039;&#039;&#039; file:&lt;br /&gt;
: &#039;&#039;&#039;[fsx fs]&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;shared_dir = /fsx&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;storage_capacity = 3600&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;imported_file_chunk_size = 1024&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;export_path = s3://bucket/export&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;import_path = s3://bucket&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;weekly_maintenance_start_time = 1:00:00&#039;&#039;&#039;&lt;br /&gt;
: Note 1: The storage_capacity is the size of the FSx Lustre storage in GB&lt;br /&gt;
: Note 2: Replace the value of &#039;&#039;&#039;bucket&#039;&#039;&#039; with the previously S3 bucket name&lt;br /&gt;
* Run the command below to deploy the new cluster:&lt;br /&gt;
: &#039;&#039;&#039;pcluster create mycluster&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &#039;&#039;&#039;mycluster&#039;&#039;&#039; with your target HPC cluster name (without spaces)&lt;br /&gt;
* Go to the CloudFormation console to view the deployment status:&lt;br /&gt;
: https://eu-west-1.console.aws.amazon.com/cloudformation/home&lt;br /&gt;
* Wait for the cluster deployment to complete.&lt;br /&gt;
* Document the &#039;&#039;&#039;MasterPublicIP&#039;&#039;&#039; and &#039;&#039;&#039;ClusterUser&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Increase EC2 service limit ==&lt;br /&gt;
* In-case you need to increase the EC2 service limit (for example number of EC2 instances from a specific instance type), follow the instructions below:&lt;br /&gt;
: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-resource-limits.html#request-increase&lt;br /&gt;
&lt;br /&gt;
== Connecting to the HPC cluster (from Linux Machine) ==&lt;br /&gt;
* Run the command below to connect using SSH to the master server:&lt;br /&gt;
: &#039;&#039;&#039;pcluster ssh mycluster -i /path/to/keyfile.pem&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;mycluster&#039;&#039;&#039; with the previously create cluster name&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;/path/to/keyfile.pem&#039;&#039;&#039; with the actual path and key file name&lt;br /&gt;
* Run the command below to verify the state of the cluster:&lt;br /&gt;
: &#039;&#039;&#039;sinfo&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Connecting to the HPC cluster (from Windows Machine) ==&lt;br /&gt;
* Download &#039;&#039;&#039;puttygen.exe&#039;&#039;&#039; from:&lt;br /&gt;
: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html&lt;br /&gt;
* Run the &#039;&#039;&#039;puttygen.exe&#039;&#039;&#039;&lt;br /&gt;
* Click on “Load” -&amp;gt; change the file extension from “Putty Private key files” to “All Files” -&amp;gt; locate the private key pair and click on Open -&amp;gt; click on OK -&amp;gt; click on “Save private key” -&amp;gt; click on “Yes” -&amp;gt; save the private key file with PPK extension -&amp;gt; close &#039;&#039;&#039;puttygen.exe&#039;&#039;&#039;&lt;br /&gt;
* Download &#039;&#039;&#039;Putty&#039;&#039;&#039; from:&lt;br /&gt;
: https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html&lt;br /&gt;
* Run &#039;&#039;&#039;putty.exe&#039;&#039;&#039;&lt;br /&gt;
* From the left pane, under “Connection” -&amp;gt; expand SSH -&amp;gt; click on “Auth” -&amp;gt; from the main pane, under “Authentication parameters”, click on “Browse” -&amp;gt; locate the SSH private key generated by &#039;&#039;&#039;puttygen.exe&#039;&#039;&#039;&lt;br /&gt;
* From the left pane, click on “Session” -&amp;gt; from the main pane, under “Host Name (or IP address)” specify the following:&lt;br /&gt;
: &#039;&#039;&#039;user@IP_Address&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;user&#039;&#039;&#039; with the previously documented &#039;&#039;&#039;ClusterUser&#039;&#039;&#039; value&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;IP_Address&#039;&#039;&#039; with the previously documented &#039;&#039;&#039;MasterPublicIP&#039;&#039;&#039;&lt;br /&gt;
* Under “Saved Sessions”, specify a name for this newly created connection.&lt;br /&gt;
* Click on Save&lt;br /&gt;
* Click on Open&lt;br /&gt;
* Run the command below to verify the state of the cluster:&lt;br /&gt;
: &#039;&#039;&#039;sinfo&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Common actions to control the cluster ==&lt;br /&gt;
* Displays a list of stacks that are associated with AWS ParallelCluster:&lt;br /&gt;
: &#039;&#039;&#039;pcluster list&#039;&#039;&#039;&lt;br /&gt;
* Displays a list of all instances in a cluster:&lt;br /&gt;
: &#039;&#039;&#039;pcluster instances mycluster&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &#039;&#039;&#039;mycluster&#039;&#039;&#039; with the previously create cluster name&lt;br /&gt;
* View the current status of the cluster:&lt;br /&gt;
: &#039;&#039;&#039;pcluster status mycluster&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &#039;&#039;&#039;mycluster&#039;&#039;&#039; with the previously create cluster name&lt;br /&gt;
* Updates a running cluster by using the values in the configuration file:&lt;br /&gt;
: &#039;&#039;&#039;pcluster update mycluster -c  ~/.parallelcluster/config&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;mycluster&#039;&#039;&#039; with the previously create cluster name&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;~/.parallelcluster/config&#039;&#039;&#039; with the target config file location&lt;br /&gt;
* Stops the compute fleet, leaving the master node running:&lt;br /&gt;
: &#039;&#039;&#039;pcluster stop mycluster&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &#039;&#039;&#039;mycluster&#039;&#039;&#039; with the previously create cluster name&lt;br /&gt;
* Starts the compute fleet for a cluster that has been stopped:&lt;br /&gt;
: &#039;&#039;&#039;pcluster start mycluster&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &#039;&#039;&#039;mycluster&#039;&#039;&#039; with the previously create cluster name&lt;br /&gt;
&lt;br /&gt;
== Delete AWS ParallelCluster ==&lt;br /&gt;
* In-case you wish to keep the AWS ParallelCluster master node static IP, login to the AWS console:&lt;br /&gt;
: https://console.aws.amazon.com/ec2/&lt;br /&gt;
* From the left pane, click on Elastic IPs -&amp;gt; select the public IP of the master node -&amp;gt; Actions -&amp;gt; Disassociate address&lt;br /&gt;
* From command prompt (the same machine you used the pcluster commands), run the command below to delete the cluster:&lt;br /&gt;
: &#039;&#039;&#039;pcluster delete mycluster&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &#039;&#039;&#039;mycluster&#039;&#039;&#039; with the previously create cluster name&lt;br /&gt;
&lt;br /&gt;
== Important notes regarding shared storage ==&lt;br /&gt;
* Long term data must be stored inside S3 bucket&lt;br /&gt;
* The Amazon FSx for Lustre storage (mount &#039;&#039;&#039;/fsx&#039;&#039;&#039;) will be used for the duration of the compute job&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* Getting started with AWS ParallelCluster:&lt;br /&gt;
: https://aws-parallelcluster.readthedocs.io/en/latest/getting_started.html#&lt;br /&gt;
* Setting Up AWS ParallelCluster&lt;br /&gt;
: https://docs.aws.amazon.com/parallelcluster/latest/ug/getting_started.html&lt;br /&gt;
* Install AWS ParallelCluster in a Virtual Environment&lt;br /&gt;
: https://docs.aws.amazon.com/parallelcluster/latest/ug/install-virtualenv.html&lt;br /&gt;
* A Scientist&#039;s Guide to Cloud-HPC: Example with AWS ParallelCluster, Slurm, Spack, and WRF&lt;br /&gt;
: https://jiaweizhuang.github.io/blog/aws-hpc-guide/&lt;br /&gt;
* Launch your first sample HPC environment on AWS and review important concepts along the way&lt;br /&gt;
: https://aws.amazon.com/getting-started/use-cases/hpc/&lt;br /&gt;
* AWS ParallelCluster Wiki:&lt;br /&gt;
: https://github.com/aws/aws-parallelcluster&lt;br /&gt;
* Deploying an Elastic HPC Cluster&lt;br /&gt;
: https://d1.awsstatic.com/Projects/P4114756/deploy-elastic-hpc-cluster_project.pdf&lt;br /&gt;
* Scale HPC Workloads with Elastic Fabric Adapter and AWS ParallelCluster&lt;br /&gt;
: https://idk.dev/scale-hpc-workloads-with-elastic-fabric-adapter-and-aws-parallelcluster/&lt;br /&gt;
* Adding support for FSx for Lustre:&lt;br /&gt;
: https://aws-parallelcluster.readthedocs.io/en/develop/configuration.html#fsx-section&lt;br /&gt;
* Getting Started with Amazon FSx for Lustre&lt;br /&gt;
: https://docs.aws.amazon.com/fsx/latest/LustreGuide/getting-started.html&lt;br /&gt;
* Amazon FSx for Lustre Lustre User Guide&lt;br /&gt;
: https://docs.aws.amazon.com/fsx/latest/LustreGuide/LustreGuide.pdf&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
	<entry>
		<id>http://public-wiki.iucc.ac.il/index.php?title=How_to_create_AWS_ParallelCluster_with_Slurm_scheduler&amp;diff=941</id>
		<title>How to create AWS ParallelCluster with Slurm scheduler</title>
		<link rel="alternate" type="text/html" href="http://public-wiki.iucc.ac.il/index.php?title=How_to_create_AWS_ParallelCluster_with_Slurm_scheduler&amp;diff=941"/>
		<updated>2019-07-29T12:16:37Z</updated>

		<summary type="html">&lt;p&gt;Eyales: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Environment preparation phase within AWS Management Console ==&lt;br /&gt;
* Login the AWS IAM console:&lt;br /&gt;
: https://console.aws.amazon.com/iam/&lt;br /&gt;
* From the left pane, click on Policies -&amp;gt; click on Users -&amp;gt; Add User -&amp;gt; specify the name &#039;&#039;&#039;parallelcluster-user&#039;&#039;&#039; -&amp;gt; Access type: Programmatic access -&amp;gt; click Next: Permissions -&amp;gt; Set permissions -&amp;gt; select a group with &#039;&#039;&#039;“AdministratorAccess”&#039;&#039;&#039; role -&amp;gt; click Next: Tags -&amp;gt; click Next: Review -&amp;gt; click on Create user -&amp;gt; click on Download .csv and keep it in a secured location -&amp;gt; click on Close&lt;br /&gt;
* Follow the instructions below to create a key pair to access the cluster machines:&lt;br /&gt;
: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html#having-ec2-create-your-key-pair&lt;br /&gt;
* Follow the instructions below to create S3 bucket (with unique name) for storing data to export and import data to/from the FSx Lustre storage:&lt;br /&gt;
: https://docs.aws.amazon.com/AmazonS3/latest/gsg/CreatingABucket.html&lt;br /&gt;
: Note 1: Document the S3 bucket name for use inside the ParallelCluster config file&lt;br /&gt;
: Note 2: Create a folder called &#039;&#039;&#039;export&#039;&#039;&#039; (in small letters), inside the S3 bucket&lt;br /&gt;
* In-case you wish to create a dedicate VPC and subnet for the HPC cluster, follow the instructions below:&lt;br /&gt;
: https://docs.aws.amazon.com/directoryservice/latest/admin-guide/gsg_create_vpc.html&lt;br /&gt;
* Logoff the AWS console&lt;br /&gt;
&lt;br /&gt;
== Python installation phase on Linux (Debian / Ubuntu) ==&lt;br /&gt;
* Login to a Linux machine using SSH, and follow the instructions below to install Python 3:&lt;br /&gt;
: https://docs.aws.amazon.com/cli/latest/userguide/install-linux-python.html&lt;br /&gt;
: Note: In-case you already have Python 3 install, use the command below to upgrade to the latest build:&lt;br /&gt;
: &#039;&#039;&#039;sudo apt-get upgrade python3&#039;&#039;&#039;&lt;br /&gt;
* To install pip3, run the command below:&lt;br /&gt;
: &#039;&#039;&#039;sudo apt install python3-pip&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Python installation phase on Windows ==&lt;br /&gt;
* Login to a Windows machine using privileged account, and follow the instructions below to install Python 3 and PIP:&lt;br /&gt;
: https://docs.aws.amazon.com/cli/latest/userguide/install-windows.html&lt;br /&gt;
&lt;br /&gt;
== AWS ParallelCluster installation phase ==&lt;br /&gt;
* Run the commands below to install the AWS ParallelCluster:&lt;br /&gt;
:* Linux:&lt;br /&gt;
:: &#039;&#039;&#039;sudo pip install aws-parallelcluster&#039;&#039;&#039;&lt;br /&gt;
:* Windows:&lt;br /&gt;
:: &#039;&#039;&#039;pip install aws-parallelcluster&#039;&#039;&#039;&lt;br /&gt;
* Run the command below to verify the installed version:&lt;br /&gt;
: &#039;&#039;&#039;pcluster version&#039;&#039;&#039;&lt;br /&gt;
* Follow the instructions below to install the AWS CLI:&lt;br /&gt;
: https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html&lt;br /&gt;
* Run the command below in-order to configure AWS CLI:&lt;br /&gt;
: &#039;&#039;&#039;aws configure&#039;&#039;&#039;&lt;br /&gt;
:* &#039;&#039;&#039;AWS Access Key ID&#039;&#039;&#039; – Specify the value from the CSV of the previously created IAM user &#039;&#039;&#039;parallelcluster-user&#039;&#039;&#039;&lt;br /&gt;
:* &#039;&#039;&#039;AWS Secret Access Key&#039;&#039;&#039; – Specify the value from the CSV of the previously created IAM user &#039;&#039;&#039;parallelcluster-user&#039;&#039;&#039;&lt;br /&gt;
:* &#039;&#039;&#039;Default region name&#039;&#039;&#039; – specify a region such as &#039;&#039;&#039;eu-west-1&#039;&#039;&#039;&lt;br /&gt;
:: Full list: https://docs.aws.amazon.com/general/latest/gr/rande.html&lt;br /&gt;
:* &#039;&#039;&#039;Default output format&#039;&#039;&#039;: JSON&lt;br /&gt;
* Run the command below to setup the initial configuration:&lt;br /&gt;
: &#039;&#039;&#039;pcluster configure&#039;&#039;&#039;&lt;br /&gt;
:* &#039;&#039;&#039;Cluster Template&#039;&#039;&#039;: Specify here a custom name for the HPC template (such as HPC Cluster)&lt;br /&gt;
:* &#039;&#039;&#039;AWS Region ID&#039;&#039;&#039;: Specify the same region you specified for the aws configure command (such as &#039;&#039;&#039;eu-west-1&#039;&#039;&#039;)&lt;br /&gt;
:* &#039;&#039;&#039;VPC Name&#039;&#039;&#039;: Specify the same name as the Cluster Template (such as &#039;&#039;&#039;HPC Cluster&#039;&#039;&#039;)&lt;br /&gt;
:* &#039;&#039;&#039;Key Name&#039;&#039;&#039;: Specify the name of the EC2 Key pair previously created&lt;br /&gt;
:* &#039;&#039;&#039;VPC ID&#039;&#039;&#039;: Specify the name of the target VPC ID to deploy the HPC cluster into&lt;br /&gt;
:: Note: The full list of VPC’s can be found within the AWS management console: https://console.aws.amazon.com/vpc&lt;br /&gt;
:* &#039;&#039;&#039;Master Subnet ID&#039;&#039;&#039;: Specify here the name of the target subnet ID to deploy the HPC cluster into&lt;br /&gt;
:: Note: The full list of subnets can be found within the AWS management console: https://console.aws.amazon.com/vpc&lt;br /&gt;
* Edit the ParallelCluster &#039;&#039;&#039;config&#039;&#039;&#039; file:&lt;br /&gt;
:* Linux: The file is located inside &#039;&#039;&#039;~/.parallelcluster/config&#039;&#039;&#039;&lt;br /&gt;
:* Windows: The file is located inside &#039;&#039;&#039;%UserProfile%\.parallelcluster\config&#039;&#039;&#039;&lt;br /&gt;
* Add the following parameters to the &#039;&#039;&#039;[cluster]&#039;&#039;&#039; section (for a large cluster):&lt;br /&gt;
: &#039;&#039;&#039;base_os = centos7&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;master_instance_type = c5n.xlarge&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;compute_instance_type = c5n.18xlarge&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;cluster_type = ondemand&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;initial_queue_size = 2&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;scheduler = slurm&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;placement_group = DYNAMIC&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;enable_efa = compute&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;fsx_settings = fs&#039;&#039;&#039;&lt;br /&gt;
: Note: For small cluster, add the following parameters to the &#039;&#039;&#039;[cluster]&#039;&#039;&#039; section:&lt;br /&gt;
: &#039;&#039;&#039;base_os = centos7&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;master_instance_type = m4.large&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;compute_instance_type = m4.large&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;cluster_type = ondemand&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;initial_queue_size = 2&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;max_queue_size = 3&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;scheduler = slurm&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;placement_group = DYNAMIC&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;fsx_settings = fs&#039;&#039;&#039;&lt;br /&gt;
* Add the following entire section to the &#039;&#039;&#039;config&#039;&#039;&#039; file:&lt;br /&gt;
: &#039;&#039;&#039;[fsx fs]&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;shared_dir = /fsx&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;storage_capacity = 3600&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;imported_file_chunk_size = 1024&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;export_path = s3://bucket/export&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;import_path = s3://bucket&#039;&#039;&#039;&lt;br /&gt;
: &#039;&#039;&#039;weekly_maintenance_start_time = 1:00:00&#039;&#039;&#039;&lt;br /&gt;
: Note 1: The storage_capacity is the size of the FSx Lustre storage in GB&lt;br /&gt;
: Note 2: Replace the value of &#039;&#039;&#039;bucket&#039;&#039;&#039; with the previously S3 bucket name&lt;br /&gt;
* Run the command below to deploy the new cluster:&lt;br /&gt;
: &#039;&#039;&#039;pcluster create mycluster&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &#039;&#039;&#039;mycluster&#039;&#039;&#039; with your target HPC cluster name (without spaces)&lt;br /&gt;
* Go to the CloudFormation console to view the deployment status:&lt;br /&gt;
: https://eu-west-1.console.aws.amazon.com/cloudformation/home&lt;br /&gt;
* Wait for the cluster deployment to complete.&lt;br /&gt;
* Document the &#039;&#039;&#039;MasterPublicIP&#039;&#039;&#039; and &#039;&#039;&#039;ClusterUser&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Increase EC2 service limit ==&lt;br /&gt;
* In-case you need to increase the EC2 service limit (for example number of EC2 instances from a specific instance type), follow the instructions below:&lt;br /&gt;
: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-resource-limits.html#request-increase&lt;br /&gt;
&lt;br /&gt;
== Connecting to the HPC cluster (from Linux Machine) ==&lt;br /&gt;
* Run the command below to connect using SSH to the master server:&lt;br /&gt;
: &#039;&#039;&#039;pcluster ssh mycluster -i /path/to/keyfile.pem&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;mycluster&#039;&#039;&#039; with the previously create cluster name&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;/path/to/keyfile.pem&#039;&#039;&#039; with the actual path and key file name&lt;br /&gt;
* Run the command below to verify the state of the cluster:&lt;br /&gt;
: &#039;&#039;&#039;sinfo&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Connecting to the HPC cluster (from Windows Machine) ==&lt;br /&gt;
* Download &#039;&#039;&#039;puttygen.exe&#039;&#039;&#039; from:&lt;br /&gt;
: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html&lt;br /&gt;
* Run the &#039;&#039;&#039;puttygen.exe&#039;&#039;&#039;&lt;br /&gt;
* Click on “Load” -&amp;gt; change the file extension from “Putty Private key files” to “All Files” -&amp;gt; locate the private key pair and click on Open -&amp;gt; click on OK -&amp;gt; click on “Save private key” -&amp;gt; click on “Yes” -&amp;gt; save the private key file with PPK extension -&amp;gt; close &#039;&#039;&#039;puttygen.exe&#039;&#039;&#039;&lt;br /&gt;
* Download &#039;&#039;&#039;Putty&#039;&#039;&#039; from:&lt;br /&gt;
: https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html&lt;br /&gt;
* Run &#039;&#039;&#039;putty.exe&#039;&#039;&#039;&lt;br /&gt;
* From the left pane, under “Connection” -&amp;gt; expand SSH -&amp;gt; click on “Auth” -&amp;gt; from the main pane, under “Authentication parameters”, click on “Browse” -&amp;gt; locate the SSH private key generated by &#039;&#039;&#039;puttygen.exe&#039;&#039;&#039;&lt;br /&gt;
* From the left pane, click on “Session” -&amp;gt; from the main pane, under “Host Name (or IP address)” specify the following:&lt;br /&gt;
: &#039;&#039;&#039;user@IP_Address&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;user&#039;&#039;&#039; with the previously documented &#039;&#039;&#039;ClusterUser&#039;&#039;&#039; value&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;IP_Address&#039;&#039;&#039; with the previously documented &#039;&#039;&#039;MasterPublicIP&#039;&#039;&#039;&lt;br /&gt;
* Under “Saved Sessions”, specify a name for this newly created connection.&lt;br /&gt;
* Click on Save&lt;br /&gt;
* Click on Open&lt;br /&gt;
* Run the command below to verify the state of the cluster:&lt;br /&gt;
: &#039;&#039;&#039;sinfo&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Common actions to control the cluster ==&lt;br /&gt;
* Displays a list of stacks that are associated with AWS ParallelCluster:&lt;br /&gt;
: &#039;&#039;&#039;pcluster list&#039;&#039;&#039;&lt;br /&gt;
* Displays a list of all instances in a cluster:&lt;br /&gt;
: &#039;&#039;&#039;pcluster instances mycluster&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &#039;&#039;&#039;mycluster&#039;&#039;&#039; with the previously create cluster name&lt;br /&gt;
* View the current status of the cluster:&lt;br /&gt;
: &#039;&#039;&#039;pcluster status mycluster&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &#039;&#039;&#039;mycluster&#039;&#039;&#039; with the previously create cluster name&lt;br /&gt;
* Updates a running cluster by using the values in the configuration file:&lt;br /&gt;
: &#039;&#039;&#039;pcluster update mycluster -c  ~/.parallelcluster/config&#039;&#039;&#039;&lt;br /&gt;
: Note 1: Replace &#039;&#039;&#039;mycluster&#039;&#039;&#039; with the previously create cluster name&lt;br /&gt;
: Note 2: Replace &#039;&#039;&#039;~/.parallelcluster/config&#039;&#039;&#039; with the target config file location&lt;br /&gt;
* Stops the compute fleet, leaving the master node running:&lt;br /&gt;
: &#039;&#039;&#039;pcluster stop mycluster&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &#039;&#039;&#039;mycluster&#039;&#039;&#039; with the previously create cluster name&lt;br /&gt;
* Starts the compute fleet for a cluster that has been stopped:&lt;br /&gt;
: &#039;&#039;&#039;pcluster start mycluster&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &#039;&#039;&#039;mycluster&#039;&#039;&#039; with the previously create cluster name&lt;br /&gt;
&lt;br /&gt;
== Delete AWS ParallelCluster ==&lt;br /&gt;
* In-case you wish to keep the AWS ParallelCluster master node static IP, login to the AWS console:&lt;br /&gt;
: https://console.aws.amazon.com/ec2/&lt;br /&gt;
* From the left pane, click on Elastic IPs -&amp;gt; select the public IP of the master node -&amp;gt; Actions -&amp;gt; Disassociate address&lt;br /&gt;
* From command prompt (the same machine you used the pcluster commands), run the command below to delete the cluster:&lt;br /&gt;
: &#039;&#039;&#039;pcluster delete mycluster&#039;&#039;&#039;&lt;br /&gt;
: Note: Replace &#039;&#039;&#039;mycluster&#039;&#039;&#039; with the previously create cluster name&lt;br /&gt;
&lt;br /&gt;
== Important notes regarding shared storage ==&lt;br /&gt;
* Long term data must be stored inside S3 bucket&lt;br /&gt;
* The Amazon FSx for Lustre storage (mount &#039;&#039;&#039;/fsx&#039;&#039;&#039;) will be used for the duration of the compute job&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* Getting started with AWS ParallelCluster:&lt;br /&gt;
: https://aws-parallelcluster.readthedocs.io/en/latest/getting_started.html#&lt;br /&gt;
* Setting Up AWS ParallelCluster&lt;br /&gt;
: https://docs.aws.amazon.com/parallelcluster/latest/ug/getting_started.html&lt;br /&gt;
* Install AWS ParallelCluster in a Virtual Environment&lt;br /&gt;
: https://docs.aws.amazon.com/parallelcluster/latest/ug/install-virtualenv.html&lt;br /&gt;
* A Scientist&#039;s Guide to Cloud-HPC: Example with AWS ParallelCluster, Slurm, Spack, and WRF&lt;br /&gt;
: https://jiaweizhuang.github.io/blog/aws-hpc-guide/&lt;br /&gt;
* Launch your first sample HPC environment on AWS and review important concepts along the way&lt;br /&gt;
: https://aws.amazon.com/getting-started/use-cases/hpc/&lt;br /&gt;
* AWS ParallelCluster Wiki:&lt;br /&gt;
: https://github.com/aws/aws-parallelcluster&lt;br /&gt;
* Deploying an Elastic HPC Cluster&lt;br /&gt;
: https://d1.awsstatic.com/Projects/P4114756/deploy-elastic-hpc-cluster_project.pdf&lt;br /&gt;
* Scale HPC Workloads with Elastic Fabric Adapter and AWS ParallelCluster&lt;br /&gt;
: https://idk.dev/scale-hpc-workloads-with-elastic-fabric-adapter-and-aws-parallelcluster/&lt;br /&gt;
* Adding support for FSx for Lustre:&lt;br /&gt;
: https://aws-parallelcluster.readthedocs.io/en/develop/configuration.html#fsx-section&lt;br /&gt;
* Getting Started with Amazon FSx for Lustre&lt;br /&gt;
: https://docs.aws.amazon.com/fsx/latest/LustreGuide/getting-started.html&lt;br /&gt;
* Amazon FSx for Lustre Lustre User Guide&lt;br /&gt;
: https://docs.aws.amazon.com/fsx/latest/LustreGuide/LustreGuide.pdf&lt;/div&gt;</summary>
		<author><name>Eyales</name></author>
	</entry>
</feed>