Skip to content
This repository has been archived by the owner on Oct 21, 2023. It is now read-only.

Commit

Permalink
!deploy 2.12.1 - 2020-05-05
Browse files Browse the repository at this point in the history
## 2.12.1 - 2020-05-05

* Miscellaneous
    * Fixed: `Watch-Stack` colorization bleed on BackgroundColor changes
    * Fixed: `Watch-Stack` now exits when all stacks are in a stable state, not early if one stack stablizes before the rest.
  • Loading branch information
scrthq authored May 5, 2020
2 parents 8ca62c6 + eb7abe1 commit a1c5a14
Show file tree
Hide file tree
Showing 329 changed files with 1,769 additions and 1,206 deletions.
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Changelog <!-- omit in toc -->

<!-- TOC -->

* [2.12.1 - 2020-05-05](#2121---2020-05-05)
* [2.12.0 - 2020-05-03](#2120---2020-05-03)
* [2.11.1 - 2020-03-09](#2111---2020-03-09)
* [2.11.0 - 2020-03-04](#2110---2020-03-04)
Expand Down Expand Up @@ -57,6 +56,12 @@

<!-- /TOC -->

## 2.12.1 - 2020-05-05

* Miscellaneous
* Fixed: `Watch-Stack` colorization bleed on BackgroundColor changes
* Fixed: `Watch-Stack` now exits when all stacks are in a stable state, not early if one stack stablizes before the rest.

## 2.12.0 - 2020-05-03

* [Issue #74](https://github.com/SCRT-HQ/VaporShell/issues/74)
Expand Down
107 changes: 62 additions & 45 deletions VaporShell/Private/Colorize.ps1
Original file line number Diff line number Diff line change
@@ -1,58 +1,75 @@
function Colorize {
Param
(
[parameter(Mandatory = $false,Position = 0,ValueFromPipeline = $true)]
[parameter(Mandatory = $false, Position = 0, ValueFromPipeline = $true)]
[String[]]
$Strings
)

Process {
foreach ($row in $Strings) {
if ($row -like "*STACK NAME *" -or $row -like "*REFRESH *") {
Write-Host -ForegroundColor Black -BackgroundColor Cyan $row
$hostParams = @{
Object = $row
NoNewLine = $true
}
elseif ($row -like "*_FAILED*") {
Write-Host -ForegroundColor Black -BackgroundColor Red $row
}
elseif ($row -like "*REVIEW_IN_PROGRESS*") {
Write-Host -ForegroundColor Black -BackgroundColor Gray $row
}
elseif ($row -like "*ROLLBACK_IN_PROGRESS*") {
Write-Host -ForegroundColor Cyan $row
}
elseif ($row -like "*ROLLBACK_COMPLETE*") {
Write-Host -BackgroundColor Cyan -ForegroundColor Black $row
}
elseif ($row -like "*UPDATE_IN_PROGRESS*") {
Write-Host -ForegroundColor Green $row
}
elseif ($row -like "*UPDATE_COMPLETE*") {
Write-Host -BackgroundColor Green -ForegroundColor Black $row
}
elseif ($row -like "*CREATE_IN_PROGRESS*") {
Write-Host -ForegroundColor Green $row
}
elseif ($row -like "*CREATE_COMPLETE*") {
Write-Host -BackgroundColor Green -ForegroundColor Black $row
}
elseif ($row -like "*DELETE_IN_PROGRESS*") {
Write-Host -ForegroundColor Yellow $row
}
elseif ($row -like "*DELETE_COMPLETE*") {
Write-Host -BackgroundColor Yellow -ForegroundColor Black $row
}
elseif ($row -like "*DELETE_SKIPPED*") {
Write-Host -BackgroundColor Magenta -ForegroundColor Black $row
}
elseif ($row -like "*DELETE_SKIPPED*") {
Write-Host -BackgroundColor Magenta -ForegroundColor Black $row
}
elseif ($row -like "Timestamp*" -or $row -like "---------*") {
Write-Host $row
}
else {
Write-Host $row
switch -Regex -CaseSensitive ($row) {
"(STACK NAME|REFRESH)" {
$hostParams['ForegroundColor'] = 'Black'
$hostParams['BackgroundColor'] = 'Cyan'
}
"_FAILED" {
if ($row -match 'AWS::CloudFormation::Stack') {
$hostParams['ForegroundColor'] = 'White'
$hostParams['BackgroundColor'] = 'DarkRed'
}
else {
$hostParams['ForegroundColor'] = 'Black'
$hostParams['BackgroundColor'] = 'Red'
}
}
"REVIEW_IN_PROGRESS" {
$hostParams['ForegroundColor'] = 'Black'
$hostParams['BackgroundColor'] = 'Red'
}
"ROLLBACK_IN_PROGRESS" {
$hostParams['ForegroundColor'] = 'Cyan'
}
"ROLLBACK_COMPLETE" {
$hostParams['ForegroundColor'] = 'Black'
$hostParams['BackgroundColor'] = 'Cyan'
}
"(UPDATE_IN_PROGRESS|CREATE_IN_PROGRESS|IMPORT_IN_PROGRESS)" {
if ($row -match 'AWS::CloudFormation::Stack') {
$hostParams['ForegroundColor'] = 'White'
$hostParams['BackgroundColor'] = 'DarkMagenta'
}
else {
$hostParams['ForegroundColor'] = 'Green'
}
}
"(UPDATE_COMPLETE|CREATE_COMPLETE|IMPORT_COMPLETE)" {
if ($row -match 'AWS::CloudFormation::Stack') {
$hostParams['ForegroundColor'] = 'White'
$hostParams['BackgroundColor'] = 'DarkGreen'
}
else {
$hostParams['ForegroundColor'] = 'Black'
$hostParams['BackgroundColor'] = 'Green'
}
}
"DELETE_IN_PROGRESS" {
$hostParams['ForegroundColor'] = 'Yellow'
}
"DELETE_COMPLETE" {
$hostParams['ForegroundColor'] = 'Black'
$hostParams['BackgroundColor'] = 'Yellow'
}
"DELETE_SKIPPED" {
$hostParams['ForegroundColor'] = 'Black'
$hostParams['BackgroundColor'] = 'Magenta'
}
}
Write-Host @hostParams
Write-Host ''
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ function Add-VSACMPCACertificateAuthorityCrlConfiguration {
Adds an AWS::ACMPCA::CertificateAuthority.CrlConfiguration resource property to the template.
Contains configuration information for a certificate revocation list (CRL. Your private certificate authority (CA creates base CRLs. Delta CRLs are not supported. You can enable CRLs for your new or an existing private CA by setting the **Enabled** parameter to true. Your private CA writes CRLs to an S3 bucket that you specify in the **S3BucketName** parameter. You can hide the name of your bucket by specifying a value for the **CustomCname** parameter. Your private CA copies the CNAME or the S3 bucket name to the **CRL Distribution Points** extension of each certificate it issues. Your S3 bucket policy must give write permission to ACM Private CA.
ACM Private CA assets that are stored in Amazon S3 can be protected with encryption. For more information, see Encrypting Your CRLs: https://docs.aws.amazon.com/acm-pca/latest/userguide/PcaCreateCa.html#crl-encryption.
Your private CA uses the value in the **ExpirationInDays** parameter to calculate the **nextUpdate** field in the CRL. The CRL is refreshed at 1/2 the age of next update or when a certificate is revoked. When a certificate is revoked, it is recorded in the next CRL that is generated and in the next audit report. Only time valid certificates are listed in the CRL. Expired certificates are not included.
CRLs contain the following fields:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The JWTConfiguration property specifies the configuration of a JWT authorizer. R
UpdateType: Mutable
.PARAMETER Audience
A list of the intended recipients of the JWT. A valid JWT must provide an aud that matches at least one entry in this list. See RFC 7519: https://tools.ietf.org/html/rfc7519#section-4.1.3. Supported only for HTTP APIs.
A list of the intended recipients of the JWT. A valid JWT must provide an aud that matches at least one entry in this list. See RFC 7519: https://tools.ietf.org/html/rfc7519#section-4.1.3. Required for the JWT authorizer type. Supported only for HTTP APIs.
PrimitiveItemType: String
Type: List
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
function Add-VSApiGatewayV2IntegrationTlsConfig {
<#
.SYNOPSIS
Adds an AWS::ApiGatewayV2::Integration.TlsConfig resource property to the template.
Adds an AWS::ApiGatewayV2::Integration.TlsConfig resource property to the template. The TlsConfig property specifies the TLS configuration for a private integration. If you specify a TLS configuration, private integration traffic uses the HTTPS protocol. Supported only for HTTP APIs.
.DESCRIPTION
Adds an AWS::ApiGatewayV2::Integration.TlsConfig resource property to the template.
The TlsConfig property specifies the TLS configuration for a private integration. If you specify a TLS configuration, private integration traffic uses the HTTPS protocol. Supported only for HTTP APIs.
.LINK
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-integration-tlsconfig.html
.PARAMETER ServerNameToVerify
If you specify a server name, API Gateway uses it to verify the hostname on the integration's certificate. The server name is also included in the TLS handshake to support Server Name Indication SNI or virtual hosting.
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-integration-tlsconfig.html#cfn-apigatewayv2-integration-tlsconfig-servernametoverify
PrimitiveType: String
UpdateType: Mutable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Represents a collection of route settings.
UpdateType: Mutable
.PARAMETER ThrottlingBurstLimit
Specifies the throttling burst limit. Supported only for WebSocket APIs.
Specifies the throttling burst limit.
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-stage-routesettings.html#cfn-apigatewayv2-stage-routesettings-throttlingburstlimit
PrimitiveType: Integer
Expand All @@ -39,7 +39,7 @@ Represents a collection of route settings.
UpdateType: Mutable
.PARAMETER ThrottlingRateLimit
Specifies the throttling rate limit. Supported only for WebSocket APIs.
Specifies the throttling rate limit.
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-stage-routesettings.html#cfn-apigatewayv2-stage-routesettings-throttlingratelimit
PrimitiveType: Double
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
function Add-VSAppMeshVirtualNodeBackendDefaults {
<#
.SYNOPSIS
Adds an AWS::AppMesh::VirtualNode.BackendDefaults resource property to the template.
Adds an AWS::AppMesh::VirtualNode.BackendDefaults resource property to the template. An object that represents the default properties for a backend.
.DESCRIPTION
Adds an AWS::AppMesh::VirtualNode.BackendDefaults resource property to the template.
An object that represents the default properties for a backend.
.LINK
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-backenddefaults.html
.PARAMETER ClientPolicy
A reference to an object that represents a client policy.
Type: ClientPolicy
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-backenddefaults.html#cfn-appmesh-virtualnode-backenddefaults-clientpolicy
UpdateType: Mutable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
function Add-VSAppMeshVirtualNodeClientPolicy {
<#
.SYNOPSIS
Adds an AWS::AppMesh::VirtualNode.ClientPolicy resource property to the template.
Adds an AWS::AppMesh::VirtualNode.ClientPolicy resource property to the template. An object that represents a client policy.
.DESCRIPTION
Adds an AWS::AppMesh::VirtualNode.ClientPolicy resource property to the template.
An object that represents a client policy.
.LINK
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-clientpolicy.html
.PARAMETER TLS
A reference to an object that represents a Transport Layer Security TLS client policy.
Type: ClientPolicyTls
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-clientpolicy.html#cfn-appmesh-virtualnode-clientpolicy-tls
UpdateType: Mutable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,26 +1,32 @@
function Add-VSAppMeshVirtualNodeClientPolicyTls {
<#
.SYNOPSIS
Adds an AWS::AppMesh::VirtualNode.ClientPolicyTls resource property to the template.
Adds an AWS::AppMesh::VirtualNode.ClientPolicyTls resource property to the template. A reference to an object that represents a Transport Layer Security (TLS client policy.
.DESCRIPTION
Adds an AWS::AppMesh::VirtualNode.ClientPolicyTls resource property to the template.
A reference to an object that represents a Transport Layer Security (TLS client policy.
.LINK
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-clientpolicytls.html
.PARAMETER Validation
A reference to an object that represents a TLS validation context.
Type: TlsValidationContext
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-clientpolicytls.html#cfn-appmesh-virtualnode-clientpolicytls-validation
UpdateType: Mutable
.PARAMETER Enforce
Whether the policy is enforced. The default is True, if a value isn't specified.
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-clientpolicytls.html#cfn-appmesh-virtualnode-clientpolicytls-enforce
PrimitiveType: Boolean
UpdateType: Mutable
.PARAMETER Ports
One or more ports that the policy is enforced for.
PrimitiveItemType: Integer
Type: List
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-clientpolicytls.html#cfn-appmesh-virtualnode-clientpolicytls-ports
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ An object that represents a listener for a virtual node.
UpdateType: Mutable
.PARAMETER TLS
*Update requires*: No interruption: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt
A reference to an object that represents the Transport Layer Security TLS properties for a listener.
Type: ListenerTls
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listener.html#cfn-appmesh-virtualnode-listener-tls
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
function Add-VSAppMeshVirtualNodeListenerTls {
<#
.SYNOPSIS
Adds an AWS::AppMesh::VirtualNode.ListenerTls resource property to the template.
Adds an AWS::AppMesh::VirtualNode.ListenerTls resource property to the template. An object that represents the Transport Layer Security (TLS properties for a listener.
.DESCRIPTION
Adds an AWS::AppMesh::VirtualNode.ListenerTls resource property to the template.
An object that represents the Transport Layer Security (TLS properties for a listener.
.LINK
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertls.html
.PARAMETER Mode
Specify one of the following modes.
+ ****STRICT – Listener only accepts connections with TLS enabled.
+ ****PERMISSIVE – Listener accepts connections with or without TLS enabled.
+ ****DISABLED – Listener only accepts connections without TLS.
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertls.html#cfn-appmesh-virtualnode-listenertls-mode
PrimitiveType: String
UpdateType: Mutable
.PARAMETER Certificate
A reference to an object that represents a listener's TLS certificate.
Type: ListenerTlsCertificate
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertls.html#cfn-appmesh-virtualnode-listenertls-certificate
UpdateType: Mutable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
function Add-VSAppMeshVirtualNodeListenerTlsAcmCertificate {
<#
.SYNOPSIS
Adds an AWS::AppMesh::VirtualNode.ListenerTlsAcmCertificate resource property to the template.
Adds an AWS::AppMesh::VirtualNode.ListenerTlsAcmCertificate resource property to the template. An object that represents an AWS Certicate Manager (ACM certificate.
.DESCRIPTION
Adds an AWS::AppMesh::VirtualNode.ListenerTlsAcmCertificate resource property to the template.
An object that represents an AWS Certicate Manager (ACM certificate.
.LINK
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertlsacmcertificate.html
.PARAMETER CertificateArn
The Amazon Resource Name ARN for the certificate. The certificate must meet specific requirements and you must have proxy authorization enabled. For more information, see Transport Layer Security TLS: https://docs.aws.amazon.com/app-mesh/latest/userguide/tls.html#virtual-node-tls-prerequisites.
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertlsacmcertificate.html#cfn-appmesh-virtualnode-listenertlsacmcertificate-certificatearn
PrimitiveType: String
UpdateType: Mutable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
function Add-VSAppMeshVirtualNodeListenerTlsCertificate {
<#
.SYNOPSIS
Adds an AWS::AppMesh::VirtualNode.ListenerTlsCertificate resource property to the template.
Adds an AWS::AppMesh::VirtualNode.ListenerTlsCertificate resource property to the template. An object that represents a listener's Transport Layer Security (TLS certificate.
.DESCRIPTION
Adds an AWS::AppMesh::VirtualNode.ListenerTlsCertificate resource property to the template.
An object that represents a listener's Transport Layer Security (TLS certificate.
.LINK
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertlscertificate.html
.PARAMETER ACM
A reference to an object that represents an AWS Certicate Manager ACM certificate.
Type: ListenerTlsAcmCertificate
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertlscertificate.html#cfn-appmesh-virtualnode-listenertlscertificate-acm
UpdateType: Mutable
.PARAMETER File
A reference to an object that represents a local file certificate.
Type: ListenerTlsFileCertificate
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertlscertificate.html#cfn-appmesh-virtualnode-listenertlscertificate-file
UpdateType: Mutable
Expand Down
Loading

0 comments on commit a1c5a14

Please sign in to comment.