<commit_before>module Enscalator

  module Templates

    # Amazon AWS Virtual Private Cloud template
    class VPC < Enscalator::RichTemplateDSL
      include Enscalator::Helpers

      # Template method
      def tpl

        nat_key_name = 'vpc-nat'

        pre_run { create_ssh_key nat_key_name, region, force_create: false }

        value :Description => [
                'AWS CloudFormation for en-japan vpc: template creating en japan environment in a VPC.',
                'The stack contains 2 subnets: the first subnet is public and contains the',
                'load balancer, a NAT device for internet access from the private subnet and a',
                'bastion host to allow SSH access to the Elastic Beanstalk hosts.',
                'The second subnet is private and contains the Elastic Beanstalk instances.',
                'You will be billed for the AWS resources used if you create a stack from this template.'
              ].join(' ')

        parameter_instance_type 'NAT', type: 't2.small'

        mapping 'AWSNATAMI',
                :'us-east-1' => {
                  :AMI => 'ami-303b1458'
                },
                :'us-west-1' => {
                  :AMI => 'ami-7da94839'
                },
                :'us-west-2' => {
                  :AMI => 'ami-69ae8259'
                },
                :'eu-west-1' => {
                  :AMI => 'ami-6975eb1e'
                },
                :'eu-central-1' => {
                  :AMI => 'ami-46073a5b'
                },
                :'ap-northeast-1' => {
                  :AMI => 'ami-03cf3903'
                },
                :'ap-southeast-1' => {
                  :AMI => 'ami-b49dace6'<commit_msg>Enabled ip forwarding and postrouting for clients connected to vpn gateway<commit_after>module Enscalator

  module Templates

    # Amazon AWS Virtual Private Cloud template
    class VPC < Enscalator::RichTemplateDSL
      include Enscalator::Helpers

      # Template method
      def tpl

        nat_key_name = 'vpc-nat'

        pre_run { create_ssh_key nat_key_name, region, force_create: false }

        value Description: [
                'AWS CloudFormation for en-japan vpc: template creating en japan environment in a VPC.',
                'The stack contains for each availability zone: the public subnet, NAT device for',
                'internet access from the private subnets, internet gateway, routing configuration for',
                'corresponding subnets and security groups.'
              ].join(' ')

        parameter_instance_type 'NAT', type: 't2.small'

        mapping 'AWSNATAMI',
                :'us-east-1' => {
                  :AMI => 'ami-303b1458'
                },
                :'us-west-1' => {
                  :AMI => 'ami-7da94839'
                },
                :'us-west-2' => {
                  :AMI => 'ami-69ae8259'
                },
                :'eu-west-1' => {
                  :AMI => 'ami-6975eb1e'
                },
                :'eu-central-1' => {
                  :AMI => 'ami-46073a5b'
                },
                :'ap-northeast-1' => {
                  :AMI => 'ami-03cf3903'
                },
                :'ap-southeast-1' => {
                  :AMI => 'ami-b49dace6'
{'fraction_non_alphanumeric': 0.10340632603406326, 'fraction_numerical': 0.02889294403892944, 'mean_word_length': 1.3850616388687456, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 32, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3703339', 'n_tokens_mistral': 1029, 'n_tokens_neox': 891, 'n_words': 244}