< Back

New-AwsEasyStack

Sat Jan 18, 2020 7:34 pm

NAME New-AwsEasyStack



SYNOPSIS

Create full stack from single command.





SYNTAX

New-AwsEasyStack [-serverclass] <String> [[-url] <String>] [[-amifilter] <String>] [[-amiownerid] <String>]

[[-instancetype] <String>] [[-hostedzonename] <String>] [-vpcfilter] <String> [[-instanceport] <String>]

[[-worldport] <String>] [[-subnetsids] <String[]>] [-tagkey] <String> [-tagvalue] <String> [[-userdata] <String>]

[-region] <String> [[-policyjson] <String>] [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

N/A.





PARAMETERS

-serverclass <String>



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-url <String>

name your build



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-amifilter <String>

r53 dns desired record



Required? false

Position? 3

Default value WINDOWS_2016_BASE

Accept pipeline input? false

Accept wildcard characters? false



-amiownerid <String>

make sure u know the naming here



Required? false

Position? 4

Default value self

Accept pipeline input? false

Accept wildcard characters? false



-instancetype <String>



Required? false

Position? 5

Default value t2.micro

Accept pipeline input? false

Accept wildcard characters? false



-hostedzonename <String>



Required? false

Position? 6

Default value

Accept pipeline input? false

Accept wildcard characters? false



-vpcfilter <String>

used for: $url.$hostedzonename dnsrecord



Required? true

Position? 7

Default value

Accept pipeline input? false

Accept wildcard characters? false



-instanceport <String>

use vpc name or vpcid



Required? false

Position? 8

Default value 80

Accept pipeline input? false

Accept wildcard characters? false



-worldport <String>

port that elb will redirect and allow in ec2 from



Required? false

Position? 9

Default value 80

Accept pipeline input? false

Accept wildcard characters? false



-subnetsids <String[]>

any port for elb external access



Required? false

Position? 10

Default value

Accept pipeline input? false

Accept wildcard characters? false



-tagkey <String>

if you know them use them



Required? true

Position? 11

Default value

Accept pipeline input? false

Accept wildcard characters? false



-tagvalue <String>



Required? true

Position? 12

Default value

Accept pipeline input? false

Accept wildcard characters? false



-userdata <String>



Required? false

Position? 13

Default value

Accept pipeline input? false

Accept wildcard characters? false



-region <String>



Required? true

Position? 14

Default value

Accept pipeline input? false

Accept wildcard characters? false



-policyjson <String>



Required? false

Position? 15

Default value

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>NOTES: atm is for port 80 ingress (world) to server instance port XXXXX... no 443 yet due cert restictions



$userdata = '{

$env:computername

}' # we need this for aditional ec2 config



$policyjson = '{

}' # put your verified json here



New-AwsEasyStack -serverclass mystackname -url mydns.something.com -hostedzonename IDvaluesomething -vpcfilter

myvpcnameORid -region Where-Object? -tagkey owner -tagvalue you!











RELATED LINKS