-
Notifications
You must be signed in to change notification settings - Fork 10
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 #10 from Guslington/develop
iam, userdata, tag config options and tests
- Loading branch information
Showing
9 changed files
with
126 additions
and
34 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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
language: ruby | ||
rvm: | ||
- 2.3 | ||
- 2.5 | ||
install: | ||
- gem install cfhighlander cfn-nag | ||
before_script: | ||
- cfndsl -u 3.2.0 | ||
script: | ||
- gem install cfhighlander --prerelease | ||
- if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then cfhighlander cfcompile ; else cfhighlander cfcompile --validate; fi | ||
- if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then cfhighlander cftest --no-validate; else cfhighlander cftest; fi | ||
- cfn_nag_scan -i out/tests |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
test_metadata: | ||
type: config | ||
name: default | ||
description: with default configuration | ||
|
||
# Insert your tests here |
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,15 @@ | ||
test_metadata: | ||
type: config | ||
name: iam | ||
description: override iam policies | ||
|
||
iam_services: | ||
- ec2 | ||
- ssm | ||
|
||
iam_policies: | ||
get-bastion-secrets: | ||
action: | ||
- ssm:GetParameters | ||
resource: | ||
- Fn::Sub: arn:aws:ssm:${AWS::Region}:${AWS::AccountId}:parameter/${EnvironmentName}/bastion/* |
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,6 @@ | ||
test_metadata: | ||
type: config | ||
name: instance_name | ||
description: set the bastion name and dns record | ||
|
||
instance_name: someotherbastion |
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,18 @@ | ||
test_metadata: | ||
type: config | ||
name: security_groups | ||
description: test security group rules | ||
|
||
ip_blocks: | ||
local: | ||
- 127.0.0.1/32 | ||
|
||
securityGroups: | ||
- | ||
rules: | ||
- | ||
IpProtocol: tcp | ||
FromPort: 22 | ||
ToPort: 22 | ||
ips: | ||
- local |
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,8 @@ | ||
test_metadata: | ||
type: config | ||
name: tags | ||
description: overide an existing tag and create a new one | ||
|
||
tags: | ||
Name: overide | ||
Project: MyApp |
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,8 @@ | ||
test_metadata: | ||
type: config | ||
name: userdata | ||
description: add extra userdata | ||
|
||
userdata: | | ||
/usr/bin/bootstrap | ||
echo "userdata complete" |