Skip to content
This repository has been archived by the owner on Sep 25, 2020. It is now read-only.

Commit

Permalink
[CloudFormation] Add SSHKey setting to EndpointInstance
Browse files Browse the repository at this point in the history
  • Loading branch information
taichi.amano committed Jun 9, 2017
1 parent 0c680e1 commit 7fa9df7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions infrastructure/cloudformation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ Resources:
IamInstanceProfile: !Ref EndpointInstanceProfile
ImageId: ami-923d12f5
InstanceType: t2.micro
KeyName: !If [ SSHKeySpecified, !Ref SSHKey, !Ref "AWS::NoValue" ]
SecurityGroupIds:
- !GetAtt RevieeeAppServerSecurityGroup.GroupId
SubnetId: !Ref RevieeeAppSubnet1c
Expand All @@ -203,9 +204,16 @@ Parameters:
SSHPort:
Default: 22
Type: Number
SSHKey:
Default: ""
Type: String
AcceptCidrIp:
Type: String

Conditions:
SSHKeySpecified:
!Not [ !Equals [ !Ref SSHKey, "" ] ]

Outputs:
EcsClusterName:
Value: !Ref EcsCluster

0 comments on commit 7fa9df7

Please sign in to comment.