{"action":"created","issue":{"url":"https://api.github.com/repos/fpco/terraform-aws-foundation/issues/165","repository_url":"https://api.github.com/repos/fpco/terraform-aws-foundation","labels_url":"https://api.github.com/repos/fpco/terraform-aws-foundation/issues/165/labels{/name}","comments_url":"https://api.github.com/repos/fpco/terraform-aws-foundation/issues/165/comments","events_url":"https://api.github.com/repos/fpco/terraform-aws-foundation/issues/165/events","html_url":"https://github.com/fpco/terraform-aws-foundation/pull/165","id":345385239,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0NTU0NDU4","number":165,"title":"Vpc scenario 3","user":{"login":"lpaulmp","id":4852949,"node_id":"MDQ6VXNlcjQ4NTI5NDk=","avatar_url":"https://avatars3.githubusercontent.com/u/4852949?v=4","gravatar_id":"","url":"https://api.github.com/users/lpaulmp","html_url":"https://github.com/lpaulmp","followers_url":"https://api.github.com/users/lpaulmp/followers","following_url":"https://api.github.com/users/lpaulmp/following{/other_user}","gists_url":"https://api.github.com/users/lpaulmp/gists{/gist_id}","starred_url":"https://api.github.com/users/lpaulmp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpaulmp/subscriptions","organizations_url":"https://api.github.com/users/lpaulmp/orgs","repos_url":"https://api.github.com/users/lpaulmp/repos","events_url":"https://api.github.com/users/lpaulmp/events{/privacy}","received_events_url":"https://api.github.com/users/lpaulmp/received_events","type":"User","site_admin":false},"labels":[{"id":909610431,"node_id":"MDU6TGFiZWw5MDk2MTA0MzE=","url":"https://api.github.com/repos/fpco/terraform-aws-foundation/labels/new%20example","name":"new example","color":"f4a290","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-27T22:35:58Z","updated_at":"2018-08-06T01:38:32Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/fpco/terraform-aws-foundation/pulls/165","html_url":"https://github.com/fpco/terraform-aws-foundation/pull/165","diff_url":"https://github.com/fpco/terraform-aws-foundation/pull/165.diff","patch_url":"https://github.com/fpco/terraform-aws-foundation/pull/165.patch"},"body":"This scenario deploys VPC with both public and private-vpn subnets spanning one or more availability zones, an internet gateway for the public subnets.\r\n\r\n#### TODO\r\n- [x] Setup VPN server\r\n- [x]  Configure ipsec\r\n- [x] Updae Makefile workflow\r\n- [x] Update Readme"},"comment":{"url":"https://api.github.com/repos/fpco/terraform-aws-foundation/issues/comments/410565973","html_url":"https://github.com/fpco/terraform-aws-foundation/pull/165#issuecomment-410565973","issue_url":"https://api.github.com/repos/fpco/terraform-aws-foundation/issues/165","id":410565973,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDU2NTk3Mw==","user":{"login":"lpaulmp","id":4852949,"node_id":"MDQ6VXNlcjQ4NTI5NDk=","avatar_url":"https://avatars3.githubusercontent.com/u/4852949?v=4","gravatar_id":"","url":"https://api.github.com/users/lpaulmp","html_url":"https://github.com/lpaulmp","followers_url":"https://api.github.com/users/lpaulmp/followers","following_url":"https://api.github.com/users/lpaulmp/following{/other_user}","gists_url":"https://api.github.com/users/lpaulmp/gists{/gist_id}","starred_url":"https://api.github.com/users/lpaulmp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpaulmp/subscriptions","organizations_url":"https://api.github.com/users/lpaulmp/orgs","repos_url":"https://api.github.com/users/lpaulmp/repos","events_url":"https://api.github.com/users/lpaulmp/events{/privacy}","received_events_url":"https://api.github.com/users/lpaulmp/received_events","type":"User","site_admin":false},"created_at":"2018-08-06T01:38:32Z","updated_at":"2018-08-06T01:38:32Z","author_association":"MEMBER","body":"These are outputs of the execution of the scripts to create the environment.\r\n\r\n`terraform-aws-foundation/examples/vpc-scenario-3 § make init-remote-vpc`\r\n```bash\r\n...\r\naws_instance.vpn-machine (remote-exec): Connecting to remote host via SSH...\r\naws_instance.vpn-machine (remote-exec):   Host: 54.189.152.82\r\naws_instance.vpn-machine (remote-exec):   User: openvpnas\r\naws_instance.vpn-machine (remote-exec):   Password: false\r\naws_instance.vpn-machine (remote-exec):   Private key: true\r\naws_instance.vpn-machine (remote-exec):   SSH Agent: true\r\naws_instance.vpn-machine (remote-exec):   Checking Host Key: false\r\naws_instance.vpn-machine (remote-exec): Connected!\r\naws_instance.vpn-machine: Creation complete after 32s (ID: i-07a33eba614062202)\r\n\r\nApply complete! Resources: 16 added, 0 changed, 0 destroyed.\r\n\r\nOutputs:\r\n\r\nopenvpn-public-eip = 54.189.152.82\r\n```\r\n\r\n`terraform-aws-foundation/examples/vpc-scenario-3 § make vpc`\r\n```bash\r\nmodule.vpc.module.vpc.aws_vpc_dhcp_options.main: Creation complete after 1s (ID: dopt-63ad8c08)\r\nmodule.vpc.module.vpc.aws_vpc.main: Creation complete after 7s (ID: vpc-e4a1808f)\r\nmodule.vpc.module.vpc.aws_vpc_dhcp_options_association.main: Creating...\r\n  dhcp_options_id: \"\" => \"dopt-63ad8c08\"\r\n  vpc_id:          \"\" => \"vpc-e4a1808f\"\r\nmodule.vpc.module.vpc.aws_vpc_dhcp_options_association.main: Creation complete after 0s (ID: dopt-63ad8c08-vpc-e4a1808f)\r\n\r\nApply complete! Resources: 3 added, 0 changed, 0 destroyed.\r\n\r\nOutputs:\r\n\r\nvpc_cidr = 10.24.0.0/16\r\n```\r\n\r\n`terraform-aws-foundation/examples/vpc-scenario-3 § make subnets`\r\n```bash\r\n...\r\nmodule.vpc.module.private-subnets.aws_subnet.main[1]: Creation complete after 3s (ID: subnet-c5dc9bb8)\r\nmodule.vpc.module.private-subnets.aws_subnet.main[0]: Creation complete after 3s (ID: subnet-bed4dcd5)\r\nmodule.vpc.module.private-subnets.aws_subnet.main[2]: Creation complete after 3s (ID: subnet-dbc38996)\r\nmodule.vpc.module.public-subnets.aws_subnet.main[0]: Creation complete after 4s (ID: subnet-d7ebe3bc)\r\nmodule.vpc.module.public-subnets.aws_subnet.main[1]: Creation complete after 4s (ID: subnet-31de994c)\r\nmodule.vpc.module.public-subnets.aws_subnet.main[2]: Creation complete after 4s (ID: subnet-0ec38943)\r\n\r\nApply complete! Resources: 6 added, 0 changed, 0 destroyed.\r\n\r\nOutputs:\r\n\r\nvpc_cidr = 10.24.0.0/16\r\n```\r\n\r\n`terraform-aws-foundation/examples/vpc-scenario-3 § make plan`\r\n```bash\r\n....\r\nPlan: 27 to add, 0 to change, 0 to destroy.\r\n\r\n------------------------------------------------------------------------\r\n\r\nThis plan was saved to: tf.out\r\n\r\nTo perform exactly these actions, run the following command to apply:\r\n    terraform apply \"tf.out\"\r\n```\r\n\r\n`terraform-aws-foundation/examples/vpc-scenario-3 § make apply`\r\n```bash\r\n...\r\nmodule.vpc.module.vpn.aws_vpn_connection_route.main: Creating...\r\n  destination_cidr_block: \"\" => \"0.0.0.0/0\"\r\n  vpn_connection_id:      \"\" => \"vpn-35f4195c\"\r\nmodule.vpc.module.vpn.aws_vpn_connection_route.main: Creation complete after 2s (ID: 0.0.0.0/0:vpn-35f4195c)\r\n\r\nApply complete! Resources: 27 added, 0 changed, 0 destroyed.\r\n\r\nOutputs:\r\n\r\nelb_dns = pm-vpc-3-public-elb-981656882.eu-central-1.elb.amazonaws.com\r\nvpc_cidr = 10.24.0.0/16\r\nvpn_tun1_ip = <sensitive>\r\nvpn_tun1_key = <sensitive>\r\nvpn_tun2_ip = <sensitive>\r\nvpn_tun2_key = <sensitive>\r\n```\r\n\r\n`openvpnas@openvpnas2:~$ sudo ipsec status`\r\n```bash\r\nSecurity Associations (2 up, 0 connecting):\r\nVPC-CUST-GW2[2]: ESTABLISHED 110 seconds ago, 10.130.10.131[10.130.10.131]...52.57.158.190[52.57.158.190]\r\nVPC-CUST-GW2{1}:  INSTALLED, TUNNEL, reqid 1, ESP in UDP SPIs: c28bc323_i 86825385_o\r\nVPC-CUST-GW2{1}:   0.0.0.0/0 === 10.24.0.0/16\r\nVPC-CUST-GW1[1]: ESTABLISHED 110 seconds ago, 10.130.10.131[10.130.10.131]...52.28.187.22[52.28.187.22]\r\nVPC-CUST-GW1{2}:  INSTALLED, TUNNEL, reqid 1, ESP in UDP SPIs: c130c17c_i 719e2caf_o\r\nVPC-CUST-GW1{2}:   0.0.0.0/0 === 10.24.0.0/16\r\n```\r\nFrom my machine I can connect to the remote instance belongs to vpc-scenario\r\n`[vpc-scenario-3(vpc-scenario-3●)]§ ssh ubuntu@10.24.21.21 -i id_rsa` \r\n```\r\nWelcome to Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-153-generic x86_64)\r\n\r\n * Documentation:  https://help.ubuntu.com/\r\n\r\n  System information as of Mon Aug  6 01:34:39 UTC 2018\r\n\r\n  System load:  0.0               Processes:           96\r\n  Usage of /:   10.2% of 7.74GB   Users logged in:     0\r\n  Memory usage: 11%               IP address for eth0: 10.24.21.21\r\n  Swap usage:   0%\r\n\r\n  Graph this data and manage this system at:\r\n    https://landscape.canonical.com/\r\n\r\n  Get cloud support with Ubuntu Advantage Cloud Guest:\r\n    http://www.ubuntu.com/business/services/cloud\r\n\r\n2 packages can be updated.\r\n0 updates are security updates.\r\n\r\n\r\nLast login: Mon Aug  6 01:34:40 2018 from ip-10-130-10-131.eu-central-1.compute.internal\r\nubuntu@ip-10-24-21-21:~$ \r\n```"}}
{"actor":{"display_login":"lpaulmp"}}