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.
stelligent#416 Setting UTF-8 encoding for cfn_nag_executor, creating …
…rspec tests for file encodings, and upgrading version of cfn-model with dependencies.
- Loading branch information
Patrick Shelby
committed
Mar 26, 2020
1 parent
2f814b3
commit ac3a6af
Showing
5 changed files
with
93 additions
and
12 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
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 |
---|---|---|
|
@@ -121,6 +121,7 @@ def argf_close | |
end | ||
|
||
def argf_read | ||
ARGF.set_encoding(Encoding::UTF_8) | ||
ARGF.file.read | ||
end | ||
|
||
|
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
46 changes: 46 additions & 0 deletions
46
spec/test_templates/yaml/template_with_non-US-ASCII_characters.yml
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,46 @@ | ||
--- | ||
AWSTemplateFormatVersion: 2010-09-09 | ||
Description: Create a GameLift Fleet with individual pörts open. | ||
|
||
Parameters: | ||
Owner: | ||
Type: String | ||
Description: Owñer of these resources. | ||
# Default: pshelby | ||
Project: | ||
Type: String | ||
Description: For what these resources were created. | ||
# Default: gamelift-testing | ||
|
||
Resources: | ||
# Instructions to SSH to GameLift fleet servers | ||
# https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-remote-access.html | ||
SecureGameLiftFleet: | ||
Type: AWS::GameLift::Fleet | ||
Properties: | ||
EC2InboundPermissions: | ||
- FromPort: 22 | ||
IpRange: 10.1.0.0/24 | ||
Protocol: TCP | ||
ToPort: 22 | ||
- FromPort: 10623 | ||
IpRange: 10.1.0.0/24 | ||
Protocol: TCP | ||
ToPort: 10623 | ||
EC2InstanceType: t2.micro | ||
Name: SecureGameLiftFleet | ||
RuntimeConfiguration: | ||
ServerProcesses: | ||
- ConcurrentExecutions: 2 | ||
LaunchPath: /local/game/rt_servers.js | ||
ScriptId: !GetAtt RealTimeScript.Id | ||
|
||
RealTimeScript: | ||
Type: AWS::GameLift::Script | ||
Properties: | ||
StorageLocation: | ||
Bucket: | ||
Fn::ImportValue: !Sub ${Owner}-${Project}-GameLiftSourceCodeBucketName | ||
Key: rt_servers.zip | ||
RoleArn: | ||
Fn::ImportValue: !Sub ${Owner}-${Project}-GameLiftSupportRoleArn |