Sha256: b5fd10ea6b4ac540de17ef2ca8123e80d770639ab88c68bf4ddf86cef7ada9c1
Contents?: true
Size: 587 Bytes
Versions: 31
Compression:
Stored size: 587 Bytes
Contents
# frozen_string_literal: true CloudFormation do EC2_SecurityGroup(:webSecurityGroup) do GroupDescription 'Allow incoming HTTP traffic from anywhere' SecurityGroupIngress [ { 'CidrIp' => '0.0.0.0/0', 'IpProtocol' => 'tcp', 'FromPort' => 80, 'ToPort' => 80 } ] end EC2_Instance(:webInstance) do ImageId 'ami-59e8964e' InstanceType 'm3.large' SecurityGroups [Ref(:webSecurityGroup)] end Output(:securityGroupId) do Value FnGetAtt(:webSecurityGroup, :GroupId) Export :webSecurityGroupId end end
Version data entries
31 entries across 31 versions & 1 rubygems