This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Security; | |
using System.Runtime.InteropServices; | |
namespace BlueDogeTools.AWS.Framework.Utilities | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM mcr.microsoft.com/dotnet/sdk:7.0-alpine | |
#build out our structure, git will populate 'src' later | |
RUN mkdir -p /buildenv/bin | |
RUN mkdir -p /buildenv/pkg | |
WORKDIR /buildenv | |
#pull down the source | |
RUN git clone https://github.com/cinderblocks/libremetaverse.git src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Created by Elizabeth Clements in 2022 | |
#License MIT | |
$AWSRegion = 'us-west-2' | |
$AWSProfileLocation = ("$env:USERPROFILE\.aws\credentials") | |
$AWSProfileName = 'default' | |
# grab clipboard, let it parse it to an array if multilined | |
$ClipboardData = Get-Clipboard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Created by Elizabeth Clements in 2022 | |
#License MIT | |
$AWSRegion = 'us-west-2' | |
$AWSProfileLocation = ("$env:USERPROFILE\.aws\credentials") | |
$AWSProfileName = 'default' | |
#Should resolve to <working_directory>\plink-commands.txt | |
$PLink_CommandFilePath = ((Get-Location | Select-Object Path -ExpandProperty Path) + "\plink-commands.txt") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Originally created by Liz Clements in 2022 | |
#License: MIT | |
$AWSRegion = 'us-west-2' | |
$AWSProfileLocation = ("$env:USERPROFILE\.aws\credentials") | |
$AWSProfileName = 'default' | |
#Grab Composites | |
$AlarmData_Composite = Get-CWAlarm ` | |
-ProfileLocation $AWSProfileLocation -ProfileName $AWSProfileName -Region $AWSRegion ` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Originally created by Liz Clements in 2022 | |
#License: MIT | |
$AWSRegion = 'us-west-2' | |
$AWSProfileLocation = ("$env:USERPROFILE\.aws\credentials") | |
$AWSProfileName = 'default' | |
#Grab all alarms, that have instance ids directly associated with them | |
$AlarmData = (Get-CWAlarm ` | |
-ProfileLocation $AWSProfileLocation -ProfileName $AWSProfileName -Region $AWSRegion) ` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Originally created by Liz Clements in 2022 | |
#License: MIT | |
$AWSRegion = 'us-west-2' | |
$AWSProfileLocation = ("$env:USERPROFILE\.aws\credentials") | |
$AWSProfileName = 'default' | |
$ListOfInstances = (Get-EC2Instance -Region $AWSRegion -ProfileLocation $AWSProfileLocation -ProfileName $AWSProfileName).Instances ` | |
| Select-Object ` | |
@{Name="ServerAlias"; Expression={$_.Tags | Where-Object Key -eq "Name" | Select-Object Value -ExpandProperty Value}} ` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Created by Elizabeth Clements in 2022 | |
#License MIT | |
#Change this to the packages you want installed... | |
[String[]]$ModulesToInstall = ` | |
"EC2", "S3" ` | |
, "ElasticLoadBalancingV2", "SecretsManager" ` | |
, "Route53", "CloudWatch", "CloudWatchLogs", "RDS" ` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Created by Elizabeth Clements in 2022 | |
#License MIT | |
$AWSRegion = 'us-west-2' | |
$AWSProfileLocation = ("$env:USERPROFILE\.aws\credentials") | |
$AWSProfileName = 'default' | |
$ListOfInstances = (Get-EC2Instance -Region $AWSRegion -ProfileLocation $AWSProfileLocation -ProfileName $AWSProfileName).Instances ` | |
| Select-Object ` | |
@{Name="ServerAlias"; Expression={$_.Tags | Where-Object Key -eq "Name" | Select-Object Value -ExpandProperty Value}} ` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from diagrams import Cluster, Diagram | |
from diagrams.aws.compute import LambdaFunction | |
from diagrams.aws.database import DDB | |
from diagrams.aws.storage import SimpleStorageServiceS3BucketWithObjects, S3Glacier | |
from diagrams.aws.network import Route53, APIGateway, APIGatewayEndpoint, ElasticLoadBalancing | |
from diagrams.aws.integration import Eventbridge, SQS | |
with Diagram("Second Life Marketplace ANS Processor on AWS", show=False): | |
with Cluster("Data Control"): | |
dns = Route53("DNS Records") |