Closed mwpolcik closed 6 years ago
AWSTemplateFormatVersion: "2010-09-09"
Parameters:
VPCStackName:
Type: String
Resources:
ICMPPublicSecurityGroup:
Type: AWS::EC2::SecurityGroup
Properties:
GroupDescription: Allow ICMP from outside world
VpcId:
Fn::ImportValue: !Sub '${VPCStackName}-vpcId'
SecurityGroupIngress:
- IpProtocol: icmp
FromPort: '-1'
ToPort: '-1'
CidrIp: 0.0.0.0/0
Tags:
- Key: Name
Value: !Join ["-",[PUBLIC, ICMP, SG]]
This template also throws an error with the !Sub function, but it is valid
Perun should report template as valid, but is throwing an error: