Skip to content

bamcis-io/AwsUtilities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aws Utilities

Usage

AWS CloudTrail Logs

$End = [System.DateTime]::Parse("7/1/2017 11:59:59 PM")
$Results = Get-AWSCloudTrailLogs -Bucket "ct-logging" -ProfileName myprofile -Start ([System.DateTime]::Parse("7/1/2017")) -End $End -APIs @("DescribeInstances")
$Grouping = $Results | Group-Object -Property { $_.Group.userIdentity.arn } -NoElement
$Grouping | FT -AutoSize

This example retrieves the user identities that ran DescribeInstances on the date 7/1/2017. CloudTrail is configured to deliver logs to the bucket ct-logging.

Revision History

1.0.6.2

Added improved error handling for Get-AWSVpcEndpointsByLocation.

1.0.6.1

Added support for server core, added UseBasicParsing to Invoke-WebRequest calls.

1.0.6.0

Added a filtering capability to Get-EC2CurrentImageIds.

1.0.5.0

All cmdlets have been refactored and optimized.

Added Get-AWSVPCEndpointsByLocation cmdlet. Updated Get-AWSAmiMappings. Added Get-AWSAccountId and Get-AWSIAMPrincipalId. Changed parameter names for Get-S3ETagCalculation. Removed price list API cmdlets and moved to a separate module.

1.0.4.1

Updated dependencies in the manifest.

1.0.4.0

Added cmdlets: Move-EC2Instance, Invoke-AWSTemporaryLogin, Invoke-AWSCrossAccountCommand, Get-AWSSupportCaseList, Get-AWSVpcPeeringSummary, and Get-AWSIAMRoleSummary.

1.0.3.5

Fixed typo bug in mounting copied volumes.

1.0.3.4

Removed the default parameter set from Copy-EBSVolume and allowed you to make encrypted EBS volume copies in the same AZ and region as the source. Added parameters to specify volume type and size and to copy tags from source to destination.

1.0.3.3

Fixed minor bugs in the Get-AWSCloudTrailLogs cmdlet that didn't correctly convert the DateTime for an S3 CloudTrail log file to the actual UTC time.

1.0.3.2

Fixed typos in examples.

1.0.3.1

Updated the manifest file to include the HostUtilities module. Fixed setting AWS credentials in Get-AWSCloudTrailLogs if no credential information provided. Added a Filter parameter to the Get-AWSCloudTrailLogs cmdlet.

1.0.3.0

Added the Get-AWSCloudTrailLogs cmdlet.

1.0.2.0

Added the Get-AWSPublicIPRanges cmdlet.

1.0.1.1

Updated the Invoke-AWSNetworkAdapterFixOnOfflineDisk and Invoke-AWSNetworkAdapterFixOnRemoteInstance cmdlets.

1.0.1.0

Added Invoke-AWSNetworkAdapterFixOnOfflineDisk, Invoke-AWSNetworkAdapterFixOnRemoteInstance, Update-EC2InstanceAmiId, Set-EC2InstanceState, Get-AWSAmiMappings, Invoke-EnableCloudWatch, Invoke-AWSKMSEncryptString, Invoke-AWSKMSDecryptString, and Get-AWSFederationLogonUrl cmdlets.

1.0.0.7

Fixed minor bugs on mounting volumes with Copy-EBSVolume.

1.0.0.6

Added the New-AWSUtilitiesSplat cmdlet to be used with the cmdlets in the module and fixed a bug the previous version introduced with the splats.

1.0.0.5

Added Mount-EBSVolumes and Get-EC2InstanceByNameOrId cmdlets to remove code duplication throughout.

1.0.0.4

Updated Get-AWSProductInformation so the output is more useable.

1.0.0.3

Fixed a bug with Get-AWSProductInformation.

1.0.0.2

Updated exported variable AWSRegions.

1.0.0.1

Updated manifest file and minor updates to fix issues found in PSScriptAnalyzer.

1.0.0.0

Initial Release.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published