The files in this repository are to assist with managing AWS EC2 instances. Using the examples in these scripts, you will be able to start/stop/remove/create EC2 Instances, create an image, and add/remove IP addresses from an AWS security group.
- PowerShell v7+
- AWS Powershell SDK
Prior to running any scripts on AWS you will need to setup your authentication profile in Powershell. Instructions for that can be found here.
The module file in this repository contains numerous functions to make writing other scripts easier. The first step you will need to do when creating your own script will be to import the module file as well as the AWSPowershell module (installed with the SDK).
Example:
Import-Module AWSPowershell.NetCore -Force
Import-Module -Name "C:\AWS_EC2_module.psm1" -Force
No Support and No Warranty are provided by SMA Technologies for this project and related material. The use of this project's files is on your own risk.
SMA Technologies assumes no liability for damage caused by the usage of any of the files offered here via this Github repository.
Copyright 2020 SMA Technologies
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
We love contributions, please read our Contribution Guide to get started!
SMA Technologies has adopted the Contributor Covenant as its Code of Conduct, and we expect project participants to adhere to it. Please read the full text so that you can understand what actions will and will not be tolerated.