FortiInstance: Type: "AWS::EC2::Instance" Properties: IamInstanceProfile: Ref: InstanceProfile ImageId: "ami-06f4dce9c3ae2c504" # for eu-west-3 paris InstanceType: t2.small AvailabilityZone: !GetAtt FortiVPCFrontNet.AvailabilityZone KeyName: Ref: KeyName NetworkInterfaces: - DeviceIndex: 0 NetworkInterfaceId: Ref: fgteni1 - DeviceIndex: 1 NetworkInterfaceId: Ref: fgteni2 UserData: Fn::Base64: Fn::Join: - '' - - "{\n" - '"bucket"' - ' : "' - Ref: S3Bucketname - '"' - ",\n" - '"region"' - ' : ' - '"' - Ref: S3Region - '"' - ",\n" - '"license"' - ' : ' - '"' - / - Ref: LicenseFileName - '"' - ",\n" - '"config"' - ' : ' - '"' - /fg.txt - '"' - "\n" - '}' InternetGateway: Type: AWS::EC2::InternetGateway AttachGateway: Properties: InternetGatewayId: Ref: InternetGateway VpcId: Ref: FortiVPC Type: AWS::EC2::VPCGatewayAttachment RouteTablePub: Type: AWS::EC2::RouteTable Properties: VpcId: Ref: FortiVPC DefRoutePub: DependsOn: AttachGateway Properties: DestinationCidrBlock: 0.0.0.0/0 GatewayId: Ref: InternetGateway RouteTableId: Ref: RouteTablePub Type: AWS::EC2::Route RouteTablePriv: [...] DefRoutePriv: [...] SubnetRouteTableAssociationPub: Properties: RouteTableId: Ref: RouteTablePub SubnetId: Ref: FortiVPCFrontNet Type: AWS::EC2::SubnetRouteTableAssociation SubnetRouteTableAssociationPriv: [...]