{"_id":"@104corp/cfn-dns-resolver-module","_rev":"5-4982ccda19adf1d2212f0aab9b3b5642","name":"@104corp/cfn-dns-resolver-module","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.1":{"name":"@104corp/cfn-dns-resolver-module","version":"1.0.1","description":"","repository":{"type":"git","url":"git+https://github.com/104corp/cfn-dns-resolver-module.git"},"author":{"name":"scott.liao"},"license":"Apache-2.0","bugs":{"url":"https://github.com/104corp/cfn-dns-resolver-module/issues"},"keywords":["cfn-dns-resolver-module"],"homepage":"https://github.com/104corp/cfn-dns-resolver-module#readme","publishConfig":{"access":"public"},"gitHead":"dc874c4e9010d3ef698529326dae5e5f1c4fb8f7","_id":"@104corp/cfn-dns-resolver-module@1.0.1","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"corp104sys","email":"corp104sys@104.com.tw"},"dist":{"integrity":"sha512-+iysHHF1JArt4r46UXO73DBq6HAYEiw1izPXiMMO/Etx356zMOjgmKrBHw3Z+KhlLc0gHtkgM5ywQbLVgCyH8Q==","shasum":"ea256041b96c62545a6be7bbadd36d33bb04c696","tarball":"https://registry.npmjs.org/@104corp/cfn-dns-resolver-module/-/cfn-dns-resolver-module-1.0.1.tgz","fileCount":14,"unpackedSize":20995,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdspaWCRA9TVsSAnZWagAA7cYQAKHy7/OJpuUo/Ui4/YsH\ny/lHNQmHoD1fK8kv9CuXgtAfB5ehwLFJ0qdUPJxot4yid1kXhsIQh2yKxgh7\n52v7Gx8Qi7FZdghQgCtNbCXLEKotk7AIIMs0XU6GDJq3zU3g6r7bnKQGYXPY\nkUmCjG6fZg8J0F1bGtctI6wzgNmLT9sEdGAS6JxlyQeL/X8Zqd6d7yAgkGK1\nIwQQTN2+pfaxvXFVMKH5VegpTNuVgHXihoxkHduUeaE7YuuRBYbuRMMoFhWM\niMNx+4xf94mdOBqI6MjMLfT5HEkQiebM0fJbA+JjQ3E8R/2aaYPhSnUXPpYw\ntOgZt83xEGhk6mNuYM9PYwFtR4AhH7PiZ+Pou/lib60IZ2hpd4NPU25EyRPE\ndhYTfTBpHsmUrfvoKI3/tBl5ghz1ezepcDB3+fkrf2oXU9zpfoSZMmxU3Abo\ny8p3Hotmzykumsl4/k+z3bfVQRPe3ImD6PFYXjQlux1qxP0H9Ui8N+2njn+S\nnGmgGzTOFQHX+5YA7XedeNM9gSJULvRB+/mb2IYjU1akkC3duLinchhCKn+6\nYr6zbzgRTtjFO63Zc+EXjjOea84zMsKQN7HrEl++8dn2PTNZfb3aUieKwjCi\nvKx2GMg2m0VodR9bFZsbkJwPXnDQGDypCE0S6u9lPoQvRXloch5wYYheLu14\nrfvG\r\n=L77/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCg9tjC6o/Zk9/WyTTWE7LGjUoexa1dzwFukTBkNKHt0gIgXIXtW51HQnfm3u+TOvIxrew84sn3lQdaqkWop0RXb8s="}]},"maintainers":[{"name":"corp104sys","email":"corp104sys@104.com.tw"},{"name":"shazi7804","email":"shazi7804@gmail.com"},{"name":"paul.chen","email":"paul.chen@104.com.tw"},{"name":"gordon.wei","email":"gordon.wei@104.com.tw"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cfn-dns-resolver-module_1.0.1_1571985046015_0.9432312901570374"},"_hasShrinkwrap":false},"2.0.0":{"name":"@104corp/cfn-dns-resolver-module","version":"2.0.0","description":"[![Build Status](https://travis-ci.com/104corp/cfn-dns-resolver-module.svg?branch=master)](https://travis-ci.com/104corp/cfn-dns-resolver-module.svg?token=XzF5xSuVcyG4W3apP4Dr&branch=master) [![NPM version](https://img.shields.io/npm/v/@104corp/cfn-dns-re","repository":{"type":"git","url":"git+https://github.com/104corp/cfn-dns-resolver-module.git"},"author":{"name":"scott.liao"},"license":"Apache-2.0","bugs":{"url":"https://github.com/104corp/cfn-dns-resolver-module/issues"},"keywords":["cfn-dns-resolver-module"],"homepage":"https://github.com/104corp/cfn-dns-resolver-module#readme","publishConfig":{"access":"public"},"gitHead":"fe5c9ff873874a4d7378a63e3ca335e5e7dc7a1f","_id":"@104corp/cfn-dns-resolver-module@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"corp104sys","email":"corp104sys@104.com.tw"},"dist":{"integrity":"sha512-FXnvKjlVO3eVvi/J1FJHQSWM+7j5irgMaY2yyQMZOAFnlr+jowa6hIJBTEZNBUPrN7buI1cjT+YZK/R5xuOu5Q==","shasum":"a108325ff95f6347c09af8cd94cfb7eef989bb09","tarball":"https://registry.npmjs.org/@104corp/cfn-dns-resolver-module/-/cfn-dns-resolver-module-2.0.0.tgz","fileCount":15,"unpackedSize":37290,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd091BCRA9TVsSAnZWagAANnAP/01jRXCT8EyhyJeblKXH\nFd4nD887H6riMCcOlA28/yHlFsSZaerzEbTyDtCFlGd2p+JeAt2WVU8jBJCv\nkawXx1E++s+8PPSKxXu6zKv8+plcZj0wnqnawxWZ9wcNnRp/vTJYFbQoYfU5\n5IAMUuklMXXluwXzhH+Ln3pZDxvE7PdgQgiv0D2Ue+ctCJeOjxWeFt4BJpFt\nxl/lF1VCiucVxpTgnnC+P/Z1CrbPSNWDnCh1OYaFh3JRm7zujKb7/8EGOZs9\nLXocz3t7Rm90niyLHWzJBjYWOiImA/1sZ6l5PT3DWtHO46Ztoz++T22A69/W\nv1DwGkckxjexXBa08ghiHltRK/MwTOTcyH5fDrW17yNVapJxCLoz5Sy2QFIM\nZ7ACUksHw/8P2H142KouHdIyrL0bO/Gl8nHzF3iCw0/BCzp6x94qlYgzjzQn\nINikkCLYnqsTwxmSEk7Dyai/19Nu6ViBtUNmoOsfDyCPkTRBlcKGpX+RQmZu\nx4LI5anccWcng0jE2cwue02p+8WYFNzlsZMlRKHhk67fTFKCuO+/Wc0uoSDi\nW1RoSki+iJoxPoAgDzgYDogozCYVagSsePZNc2vwfl+PInCzSvJHKz/hwAHm\n1YMorZw86JAYiliKOYPhm3J3M+lO1MhKqMFlhyXzonV4JDtr6/wuHhXWVU4r\nWU8L\r\n=AJG1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDnIRt7EC3nDuIFLuKn5D+KPdlmsIW3GbUP0DUzeP7E3AIgE7wte3rFmpZ9BRa58Qy92TBltiuXx7fbwmRfxO7CTK4="}]},"maintainers":[{"name":"corp104sys","email":"corp104sys@104.com.tw"},{"name":"gordon.wei","email":"gordon.wei@104.com.tw"},{"name":"paul.chen","email":"paul.chen@104.com.tw"},{"name":"shazi7804","email":"shazi7804@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cfn-dns-resolver-module_2.0.0_1574165824619_0.3140465754037083"},"_hasShrinkwrap":false}},"time":{"created":"2019-10-25T06:30:45.783Z","1.0.1":"2019-10-25T06:30:46.209Z","modified":"2022-04-04T10:30:14.564Z","2.0.0":"2019-11-19T12:17:04.739Z"},"maintainers":[{"email":"corp104sys@104.com.tw","name":"corp104sys"}],"homepage":"https://github.com/104corp/cfn-dns-resolver-module#readme","keywords":["cfn-dns-resolver-module"],"repository":{"type":"git","url":"git+https://github.com/104corp/cfn-dns-resolver-module.git"},"author":{"name":"scott.liao"},"bugs":{"url":"https://github.com/104corp/cfn-dns-resolver-module/issues"},"license":"Apache-2.0","readme":"# CloudFormation DNS Resolver Module\n\n[![Build Status](https://travis-ci.com/104corp/cfn-dns-resolver-module.svg?branch=master)](https://travis-ci.com/104corp/cfn-dns-resolver-module.svg?token=XzF5xSuVcyG4W3apP4Dr&branch=master)\n[![NPM version](https://img.shields.io/npm/v/@104corp/cfn-dns-resolver-module.svg)](https://www.npmjs.com/package/@104corp/cfn-dns-resolver-module)\n\nAWS DNS Resolver Instance deployment from CloudFromation Template\n\n## Manage Resources\n\n- AWS::EC2::SecurityGroup, LaunchTemplate\n- AWS::AutoScaling::AutoScalingGroup, ScalingPolicy\n- AWS::CloudWatch::Alarm\n- AWS::IAM::Role, InstanceProfile\n- AWS::ElasticLoadBalancingV2::LoadBalancer, Listener, TargetGroup\n- AWS::S3::Bucket, BucketPolicy\n\n## Install\n\n> Install [Node.js and npm](https://nodejs.org/) first!\n\n```\nnpm i @104corp/cfn-dns-resolver-module\n```\n\n## Usage\n\n```\n---\nAWSTemplateFormatVersion: '2010-09-09'\nDescription: 'cfn-dns-resolver-module example'\nResources:\n  Bucket:\n    Type: 'AWS::CloudFormation::Stack'\n    Properties:\n      Parameters:\n        VPCId: 'vpc-26289d41'\n        VPCSubnetIds: 'subnet-0a287552, subnet-12560638'\n        DNSResovlersSecurityGroupIngressCidr: '172.31.0.0/16'\n      TemplateURL: './node_modules/@104corp/cfn-dns-resolver-module/module.yml'\n```\n\n- Resize Auto Scaling DesiredCapacity\n\n```\n---\nAWSTemplateFormatVersion: '2010-09-09'\nDescription: 'cfn-dns-resolver-module example'\nResources:\n  Bucket:\n    Type: 'AWS::CloudFormation::Stack'\n    Properties:\n      Parameters:\n        VPCId: 'vpc-26289d41'\n        VPCSubnetIds: 'subnet-0a287552, subnet-12560638'\n        DNSResovlersSecurityGroupIngressCidr: '172.31.0.0/16'\n        DNSResovlersAMI: 'ami-023d30a246588ad11'\n        AutoScalingInstanceMinSize: \"1\"\n        AutoScalingDesiredCapacity: \"1\"\n      TemplateURL: './node_modules/@104corp/cfn-dns-resolver-module/module.yml'\n```\n\n## IAM Policy\n\n```\n{\n    \"Version\": \"2012-10-17\",\n    \"Statement\": [\n        {\n            \"Sid\": \"devops-infra-cfn-resolver-module\",\n            \"Effect\": \"Allow\",\n            \"Action\": [\n                \"ec2:TerminateInstances\",\n                \"ec2:DeleteTags\",\n                \"s3:*\",\n                \"ec2:CreateTags\",\n                \"ec2:RunInstances\",\n                \"cloudformation:*\",\n                \"ec2:StopInstances\",\n                \"ec2:Describe*\",\n                \"ec2:StartInstances\",\n                \"ec2:*SecurityGroup*\"\n            ],\n            \"Resource\": \"*\"\n        }\n    ]\n}\n```\n\n## Package\n\n```\n$ aws cloudformation package --template-file example.yml --s3-bucket <your cfn template bucket> --output-template-file packaged.yml\n```\n\n## Deploy\n\n```\n$ aws cloudformation deploy --template-file packaged.yml --stack-name <your stack name>\n```\n# templates/main\n# Description\nAWS custom DNS Resolver when use Hybrid Cloud.\n\n## Parameters\nThe list of parameters for this template:\n\n### EnvType \nType: String \nDefault: Dev \nDescription: Environment Type for this Stack. \n### StackOwner \nType: String \nDefault: StackOwnerDefault \nDescription: Owner \n### VPCId \nType: AWS::EC2::VPC::Id  \nDescription: (Require) VPC Id for instances. \n### VPCSubnetIds \nType: List<AWS::EC2::Subnet::Id>  \nDescription: (Require) VPC Subnet Id for DNS Resolver \n### DNSResovlersAMI \nType: AWS::EC2::Image::Id  \nDescription: (Require) Custom EC2 AMI for DNS Resolver Servers. \n### DNSResovlersSecurityGroupIngressCidr \nType: String \nDefault: 0.0.0.0/0 \nDescription: (Require) VPC CIDR for ingress security group. \n### AutoScalingOutPolicyHighCPU \nType: String \nDefault: 80 \nDescription: (Optional) How many percent cpu usage need to scaling up instance, default is 80 percent. \n### AutoScalingInPolicyLowCPU \nType: String \nDefault: 30 \nDescription: (Optional) How many percent cpu usage need to scaling down instance, default is 30 percent. \n### AutoScalingLaunchTemplateDefaultVersion \nType: String \nDefault: 1 \nDescription: (Optional) Launch template default version for Autoscaling Group, default is 1. \n### AutoScalingInstanceMinSize \nType: String \nDefault: 2 \nDescription: (Optional) minimum instance capacity, default is 2. \n### AutoScalingInstanceMaxSize \nType: String \nDefault: 4 \nDescription: (Optional) maximum instance capacity, default is 4. \n### AutoScalingDesiredCapacity \nType: String \nDefault: 2 \nDescription: (Optional) maximum instance capacity, default is 2. \n### DNSResovlersInstanceType \nType: String \nDefault: t3.nano \nDescription: (Optional) EC2 instances type for DNS Resolver Servers. default `t3.nano` \n### NlbAccessLogExpirationDays \nType: String \nDefault: 30 \nDescription: (Optional) NLB access log Lifecycle expiration days. default `30` \n\n## Resources\nThe list of resources this template creates:\n\n### DNSResolverInstanceSG \nType: AWS::EC2::SecurityGroup  \n### DnsResolverLaunchTemplate \nType: AWS::EC2::LaunchTemplate  \n### DnsResolverASGroup \nType: AWS::AutoScaling::AutoScalingGroup  \n### DnsResolverScaleOutPolicy \nType: AWS::AutoScaling::ScalingPolicy  \n### DnsResolverScaleInPolicy \nType: AWS::AutoScaling::ScalingPolicy  \n### DnsResolverCPUAlarmHigh \nType: AWS::CloudWatch::Alarm  \n### DnsResolverCPUAlarmLow \nType: AWS::CloudWatch::Alarm  \n### DnsResolverRole \nType: AWS::IAM::Role  \n### DnsResolverInstanceProfile \nType: AWS::IAM::InstanceProfile  \n### DNSResolverNlb \nType: AWS::ElasticLoadBalancingV2::LoadBalancer  \n### DNSResolverNlbListener \nType: AWS::ElasticLoadBalancingV2::Listener  \n### DNSResolverNlbTargetGroup \nType: AWS::ElasticLoadBalancingV2::TargetGroup  \n### ResolverNlbLogS3Bucket \nType: AWS::S3::Bucket  \n### S3BucketPolicy \nType: AWS::S3::BucketPolicy  \n\n## Outputs\nThe list of outputs this template exposes:\n\n## Maintenance\n\nMaintainers:\n  - `104corp`","readmeFilename":"README.md","description":"[![Build Status](https://travis-ci.com/104corp/cfn-dns-resolver-module.svg?branch=master)](https://travis-ci.com/104corp/cfn-dns-resolver-module.svg?token=XzF5xSuVcyG4W3apP4Dr&branch=master) [![NPM version](https://img.shields.io/npm/v/@104corp/cfn-dns-re"}