Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matalus/aws.automation
Messing around with AWSPowerShell Module
https://github.com/matalus/aws.automation
Last synced: 3 days ago
JSON representation
Messing around with AWSPowerShell Module
- Host: GitHub
- URL: https://github.com/matalus/aws.automation
- Owner: Matalus
- Created: 2018-10-27T22:36:46.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-14T00:50:52.000Z (almost 6 years ago)
- Last Synced: 2024-10-11T06:43:39.317Z (26 days ago)
- Language: PowerShell
- Size: 11.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
This module assumes you have the AWSPowerShell Module already installed
if you need to install "install-module AWSPowerShell" (PS5.0 and up)
you'll need to have your .PEM file in the root directory for your keypair
EC2.Builder.ps1 - Programatically builds EC2 Instances based on aws.json
- verifies if instances with name already exists, if not creates
- Inserts Any Scripts from the USERDATA directory as bootstraped Base64 encoded to run persistently so scripts should be Idempotent
- current PS Bootstrap script
-verifies / creates WinRM HTTPS Listener
-Self Signed Cert
-Firewall rule for 5986
- retrieves information on instances and waits for running status
- Tests WSMan by remote invoking Instances and retrieving WinRM Service informationpopulate the Instances object in the following format
{
"Name": "",
"Type": "t2.micro",
"Image": ""
}Breakdown of keys
-Region : default region to use, this also gets used for programatically creating the self signed cert
-defaultAWSProfile : the default aws profile you've configured from credentials.csv
-DefaultImageName : a default Windows Base image
-Keypairname : the name of the keypair to attach to your instances, if you leave this blank good luck logging in
-SecurityGroup : the name of a pre-existing security group to attach Instances to