Skip to content

Commit

Permalink
add sg rule to allow ssh access to packer instances
Browse files Browse the repository at this point in the history
  • Loading branch information
Guslington committed Sep 22, 2021
1 parent 27796de commit 2fb6f3a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions jenkins-ec2-agents.cfndsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@
])
Tags agent_tags
}

EC2_SecurityGroupIngress(:SelfSSHIngressRule) {
Description 'ssh access for packer instances'
FromPort 22
ToPort 22
IpProtocol 'TCP'
SourceSecurityGroupId Ref(:SecurityGroup)
}

Resource(:LinuxAmiFinder) {
Type 'Custom::LinuxAmiFinder'
Expand Down

0 comments on commit 2fb6f3a

Please sign in to comment.