Skip to content

Commit

Permalink
Merge pull request #2 from theonestack/cfhighlander_syntax
Browse files Browse the repository at this point in the history
Cfhighlander syntax, readme, travis build
  • Loading branch information
toshke authored Jun 26, 2018
2 parents 1af9765 + 2a7c47e commit 7b69870
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 24 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
language: ruby
rvm:
- 2.3
script:
- gem install cfhighlander --prerelease
- if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then cfhighlander cfcompile ; else cfhighlander cfcompile --validate; fi
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
![build-status](https://travis-ci.com/theonestack/hl-component-bastion.svg?branch=master)

### Cfhighlander bastion component

```bash

# install highlander gem
$ gem install cfhighlander

# build and validate standalone component
$ cfhighlander cfcompile --validate bastion

```

### Parameters

TBD

### Configuration options

TBD

### Outputs

TBD
28 changes: 28 additions & 0 deletions bastion.cfhighlander.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
CfhighlanderTemplate do
DependsOn '[email protected]'
Parameters do
ComponentParam 'EnvironmentName', 'dev', isGlobal: true
ComponentParam 'EnvironmentType', 'development', isGlobal: true
ComponentParam 'Ami', type: 'AWS::EC2::Image::Id'
MappingParam('InstanceType') do
map 'EnvironmentType'
attribute 'BastionInstanceType'
end
MappingParam('KeyName') do
map 'AccountId'
attribute 'KeyName'
end
MappingParam('DnsDomain') do
map 'AccountId'
attribute 'DnsDomain'
end

maximum_availability_zones.times do |az|
ComponentParam "SubnetPublic#{az}"
end

ComponentParam 'VPCId', type: 'AWS::EC2::VPC::Id'
ComponentParam 'SecurityGroupDev', type: 'AWS::EC2::SecurityGroup::Id'
ComponentParam 'SecurityGroupOps', type: 'AWS::EC2::SecurityGroup::Id'
end
end
24 changes: 0 additions & 24 deletions bastion.highlander.rb

This file was deleted.

0 comments on commit 7b69870

Please sign in to comment.