forked from stelligent/cfn_nag
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/352 allow novalue in password rules (stelligent#353)
* stelligent#352 adding check to verify if reference is to NoValue * stelligent#352 adding corresponding template file and spec test * stelligent#352 using more descriptive template file name and ensuring that the proper reference is returned from the !If intrinsic function * stelligent#352 swapping to use the True return value from the !If intrinsic function * stelligent#352 satisfying rubocop and splitting up if statements
- Loading branch information
Peter Helewski
authored
Jan 29, 2020
1 parent
16ef4c6
commit 9d31c5c
Showing
3 changed files
with
45 additions
and
10 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
16 changes: 16 additions & 0 deletions
16
.../yaml/rds_dbcluster/rds_dbcluster_master_user_password_with_novalue_pseudo_parameter.yaml
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,16 @@ | ||
--- | ||
Parameters: | ||
DBClusterMasterUserPassword: | ||
Type: String | ||
NoEcho: True | ||
Conditions: | ||
Foobar: foobar | ||
Resources: | ||
RDSDBCluster: | ||
Type: AWS::RDS::DBCluster | ||
Properties: | ||
DeletionProtection: True | ||
Engine: aurora-mysql | ||
MasterUserPassword: !If [ Foobar, !Ref 'AWS::NoValue', !Ref DBClusterMasterUserPassword ] | ||
MasterUsername: !If [ Foobar, !Ref 'AWS::NoValue', admin ] | ||
Port: 3306 |
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