-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from aws-cloudformation/release-0.6.0
Release 0.6.0
- Loading branch information
Showing
30 changed files
with
1,376 additions
and
379 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,6 @@ cloudformation-guard.tar.gz | |
*# | ||
.idea/ | ||
*~ | ||
cmake-build-debug | ||
cmake-build-debug | ||
*gcno | ||
*gcda |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-product-attribute-reference.html | ||
AWS::DynamoDB::Table if Tags == /.*PROD.*/ then .DeletionPolicy == Retain | ||
AWS::DynamoDB::Table if Tags == /.*PROD.*/ then .DeletionPolicy != Retain |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"Resources": { | ||
"DDBTable": { | ||
"Type": "AWS::DynamoDB::Table", | ||
"UpdateReplacePolicy": "Abort", | ||
"DeletionPolicy": "Retain", | ||
"Properties": { | ||
"AttributeDefinitions": [ | ||
{ | ||
"AttributeName": "ArtistId", | ||
"AttributeType": "S" | ||
}, | ||
{ | ||
"AttributeName": "Concert", | ||
"AttributeType": "S" | ||
}, | ||
{ | ||
"AttributeName": "TicketSales", | ||
"AttributeType": "S" | ||
} | ||
], | ||
"KeySchema": [ | ||
{ | ||
"AttributeName": "ArtistId", | ||
|
||
"KeyType": "HASH" | ||
}, | ||
{ | ||
"AttributeName": "Concert", | ||
"KeyType": "RANGE" | ||
} | ||
], | ||
"GlobalSecondaryIndexes": [ | ||
{ | ||
|
||
"IndexName": "GSI", | ||
"KeySchema": [ | ||
|
||
{ | ||
|
||
"AttributeName": "TicketSales", | ||
"KeyType": "HASH" | ||
} | ||
], | ||
"Projection": { | ||
"ProjectionType": "KEYS_ONLY" | ||
}, | ||
"ProvisionedThroughput": { | ||
"ReadCapacityUnits": 5, | ||
"WriteCapacityUnits": 5 | ||
} | ||
} | ||
], | ||
"ProvisionedThroughput": { | ||
"ReadCapacityUnits": 5, | ||
"WriteCapacityUnits": 5 | ||
}, | ||
"Tags": [ | ||
{"Key": "ENV", "Value": "PROD"} | ||
] | ||
} | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"Resources": { | ||
"DDBTable": { | ||
"Type": "AWS::DynamoDB::Table", | ||
"UpdateReplacePolicy": "Abort", | ||
"DeletionPolicy": "Retain", | ||
"Properties": { | ||
"AttributeDefinitions": [ | ||
{ | ||
"AttributeName": "ArtistId", | ||
"AttributeType": "S" | ||
}, | ||
{ | ||
"AttributeName": "Concert", | ||
"AttributeType": "S" | ||
}, | ||
{ | ||
"AttributeName": "TicketSales", | ||
"AttributeType": "S" | ||
} | ||
], | ||
"KeySchema": [ | ||
{ | ||
"AttributeName": "ArtistId", | ||
|
||
"KeyType": "HASH" | ||
}, | ||
{ | ||
"AttributeName": "Concert", | ||
"KeyType": "RANGE" | ||
} | ||
], | ||
"GlobalSecondaryIndexes": [ | ||
{ | ||
|
||
"IndexName": "GSI", | ||
"KeySchema": [ | ||
|
||
{ | ||
|
||
"AttributeName": "TicketSales", | ||
"KeyType": "HASH" | ||
} | ||
], | ||
"Projection": { | ||
"ProjectionType": "KEYS_ONLY" | ||
}, | ||
"ProvisionedThroughput": { | ||
"ReadCapacityUnits": 5, | ||
"WriteCapacityUnits": 5 | ||
} | ||
} | ||
], | ||
"ProvisionedThroughput": { | ||
"ReadCapacityUnits": 5, | ||
"WriteCapacityUnits": 5 | ||
}, | ||
"Tags": [ | ||
{"Key": "ENV", "Value": "PROD"} | ||
] | ||
} | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
AWS::DynamoDB::Table if Tags == /.*PROD.*/ then .DeletionPolicy == Retain |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
let encryption_flag = true | ||
let allowed_azs = [us-east-1a,us-east-1b,us-east-1c] | ||
|
||
AWS::EC2::Volume AvailabilityZone IN %allowed_azs | ||
AWS::EC2::Volume Encrypted == %encryption_flag | ||
AWS::EC2::Volume Size == 100 | ||
AWS::EC2::Volume Size <= 100 |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "cfn-guard-lambda" | ||
version = "0.5.2" | ||
version = "0.6.0" | ||
edition = "2018" | ||
|
||
[dependencies] | ||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "cfn-guard-rulegen-lambda" | ||
version = "0.5.2" | ||
version = "0.6.0" | ||
edition = "2018" | ||
|
||
[dependencies] | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "cfn-guard-rulegen" | ||
version = "0.5.2" | ||
version = "0.6.0" | ||
edition = "2018" | ||
|
||
[dependencies] | ||
|
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
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
Oops, something went wrong.