Amazon EC2

From DevOps Notebook
Revision as of 00:09, 7 November 2021 by MilosZ (talk | contribs)

Initialize disks in Amazon EC2 in Windows

PS C:\> C:\ProgramData\Amazon\EC2-Windows\Launch\Scripts\InitializeDisks.ps1

Check if instance returns meta-data info and fix routes on windows server

ps> Invoke-RestMethod -uri http://169.254.169.254/latest/meta-data/
ps> Import-Module c:\ProgramData\Amazon\EC2-Windows\Launch\Module\Ec2Launch.psm1 ; Add-Routes

Unable to resolve package source 'https://www.powershellgallery.com/api/v2'

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12