├── .drone.sec ├── .drone.yml ├── .gitignore ├── LICENSE.MD ├── README.md ├── main.tf ├── modules ├── base │ ├── 01-vpc.tf │ ├── 02-keypair.tf │ ├── 03-ec2-secgroups.tf │ ├── main.tf │ ├── outputs.tf │ └── variables.tf ├── etcd-bastion │ ├── 01-bastionlaunch.tf │ ├── Files │ │ ├── ansible-playbooks │ │ │ ├── fulldeploy.retry │ │ │ ├── fulldeploy.yml │ │ │ ├── inventory │ │ │ └── roles │ │ │ │ └── hello │ │ │ │ └── tasks │ │ │ │ ├── ; │ │ │ │ └── main.yml │ │ └── bastion.yml.tpl │ ├── outputs.tf │ └── variables.tf ├── etcd │ ├── 01-etcdlaunch.tf │ ├── Files │ │ ├── ansible-playbooks │ │ │ ├── fulldeploy.retry │ │ │ ├── fulldeploy.yml │ │ │ ├── inventory │ │ │ └── roles │ │ │ │ └── hello │ │ │ │ └── tasks │ │ │ │ ├── ; │ │ │ │ └── main.yml │ │ └── kubeetcd.yml.tpl │ ├── outputs.tf │ └── variables.tf ├── extract │ ├── Files │ │ ├── asgip.sh │ │ └── iplist.txt │ ├── main.tf │ ├── outputs.tf │ └── variables.tf ├── iam │ ├── main.tf │ ├── master-policy.json │ ├── master-role.json │ ├── outputs.tf │ ├── worker-policy.json │ └── worker-role.json └── tls │ ├── ca │ ├── 01-tls.tf │ ├── 02-arngen.tf │ ├── 03-s3upload.tf │ ├── Files │ │ ├── ca.pem │ │ ├── certauthkey.pem │ │ ├── kmspolicy.json.tpl │ │ ├── root_arn.txt │ │ ├── rootarn.sh │ │ ├── worker_role_arn.txt │ │ └── workerarn.sh │ ├── main.tf │ ├── outputs.tf │ └── variables.tf │ └── etcd │ ├── 01-tls.tf │ ├── 02-arngen.tf │ ├── 03-s3upload.tf │ ├── Files │ ├── etcd.pem │ ├── etcdkey.pem │ ├── kmspolicy.json.tpl │ ├── root_arn.txt │ ├── rootarn.sh │ ├── worker_role_arn.txt │ └── workerarn.sh │ ├── main.tf │ ├── outputs.tf │ └── variables.tf ├── terraform.tfvars └── variables.tf /.drone.sec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/.drone.sec -------------------------------------------------------------------------------- /.drone.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/.drone.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE.MD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/LICENSE.MD -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/README.md -------------------------------------------------------------------------------- /main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/main.tf -------------------------------------------------------------------------------- /modules/base/01-vpc.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/base/01-vpc.tf -------------------------------------------------------------------------------- /modules/base/02-keypair.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/base/02-keypair.tf -------------------------------------------------------------------------------- /modules/base/03-ec2-secgroups.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/base/03-ec2-secgroups.tf -------------------------------------------------------------------------------- /modules/base/main.tf: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /modules/base/outputs.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/base/outputs.tf -------------------------------------------------------------------------------- /modules/base/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/base/variables.tf -------------------------------------------------------------------------------- /modules/etcd-bastion/01-bastionlaunch.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/etcd-bastion/01-bastionlaunch.tf -------------------------------------------------------------------------------- /modules/etcd-bastion/Files/ansible-playbooks/fulldeploy.retry: -------------------------------------------------------------------------------- 1 | localhost 2 | -------------------------------------------------------------------------------- /modules/etcd-bastion/Files/ansible-playbooks/fulldeploy.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/etcd-bastion/Files/ansible-playbooks/fulldeploy.yml -------------------------------------------------------------------------------- /modules/etcd-bastion/Files/ansible-playbooks/inventory: -------------------------------------------------------------------------------- 1 | [test] 2 | 192.5.2.32 3 | -------------------------------------------------------------------------------- /modules/etcd-bastion/Files/ansible-playbooks/roles/hello/tasks/;: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | - shell: /bin/echo Hello World! 4 | -------------------------------------------------------------------------------- /modules/etcd-bastion/Files/ansible-playbooks/roles/hello/tasks/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/etcd-bastion/Files/ansible-playbooks/roles/hello/tasks/main.yml -------------------------------------------------------------------------------- /modules/etcd-bastion/Files/bastion.yml.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/etcd-bastion/Files/bastion.yml.tpl -------------------------------------------------------------------------------- /modules/etcd-bastion/outputs.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/etcd-bastion/outputs.tf -------------------------------------------------------------------------------- /modules/etcd-bastion/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/etcd-bastion/variables.tf -------------------------------------------------------------------------------- /modules/etcd/01-etcdlaunch.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/etcd/01-etcdlaunch.tf -------------------------------------------------------------------------------- /modules/etcd/Files/ansible-playbooks/fulldeploy.retry: -------------------------------------------------------------------------------- 1 | localhost 2 | -------------------------------------------------------------------------------- /modules/etcd/Files/ansible-playbooks/fulldeploy.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/etcd/Files/ansible-playbooks/fulldeploy.yml -------------------------------------------------------------------------------- /modules/etcd/Files/ansible-playbooks/inventory: -------------------------------------------------------------------------------- 1 | [test] 2 | 192.5.2.32 3 | -------------------------------------------------------------------------------- /modules/etcd/Files/ansible-playbooks/roles/hello/tasks/;: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | - shell: /bin/echo Hello World! 4 | -------------------------------------------------------------------------------- /modules/etcd/Files/ansible-playbooks/roles/hello/tasks/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/etcd/Files/ansible-playbooks/roles/hello/tasks/main.yml -------------------------------------------------------------------------------- /modules/etcd/Files/kubeetcd.yml.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/etcd/Files/kubeetcd.yml.tpl -------------------------------------------------------------------------------- /modules/etcd/outputs.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/etcd/outputs.tf -------------------------------------------------------------------------------- /modules/etcd/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/etcd/variables.tf -------------------------------------------------------------------------------- /modules/extract/Files/asgip.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/extract/Files/asgip.sh -------------------------------------------------------------------------------- /modules/extract/Files/iplist.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/extract/Files/iplist.txt -------------------------------------------------------------------------------- /modules/extract/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/extract/main.tf -------------------------------------------------------------------------------- /modules/extract/outputs.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/extract/outputs.tf -------------------------------------------------------------------------------- /modules/extract/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/extract/variables.tf -------------------------------------------------------------------------------- /modules/iam/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/iam/main.tf -------------------------------------------------------------------------------- /modules/iam/master-policy.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/iam/master-policy.json -------------------------------------------------------------------------------- /modules/iam/master-role.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/iam/master-role.json -------------------------------------------------------------------------------- /modules/iam/outputs.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/iam/outputs.tf -------------------------------------------------------------------------------- /modules/iam/worker-policy.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/iam/worker-policy.json -------------------------------------------------------------------------------- /modules/iam/worker-role.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/iam/worker-role.json -------------------------------------------------------------------------------- /modules/tls/ca/01-tls.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/tls/ca/01-tls.tf -------------------------------------------------------------------------------- /modules/tls/ca/02-arngen.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/tls/ca/02-arngen.tf -------------------------------------------------------------------------------- /modules/tls/ca/03-s3upload.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/tls/ca/03-s3upload.tf -------------------------------------------------------------------------------- /modules/tls/ca/Files/ca.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/tls/ca/Files/ca.pem -------------------------------------------------------------------------------- /modules/tls/ca/Files/certauthkey.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/tls/ca/Files/certauthkey.pem -------------------------------------------------------------------------------- /modules/tls/ca/Files/kmspolicy.json.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/tls/ca/Files/kmspolicy.json.tpl -------------------------------------------------------------------------------- /modules/tls/ca/Files/root_arn.txt: -------------------------------------------------------------------------------- 1 | arn:aws:iam::801551588932:user/admin 2 | -------------------------------------------------------------------------------- /modules/tls/ca/Files/rootarn.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/tls/ca/Files/rootarn.sh -------------------------------------------------------------------------------- /modules/tls/ca/Files/worker_role_arn.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/tls/ca/Files/worker_role_arn.txt -------------------------------------------------------------------------------- /modules/tls/ca/Files/workerarn.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/tls/ca/Files/workerarn.sh -------------------------------------------------------------------------------- /modules/tls/ca/main.tf: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /modules/tls/ca/outputs.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/tls/ca/outputs.tf -------------------------------------------------------------------------------- /modules/tls/ca/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/tls/ca/variables.tf -------------------------------------------------------------------------------- /modules/tls/etcd/01-tls.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/tls/etcd/01-tls.tf -------------------------------------------------------------------------------- /modules/tls/etcd/02-arngen.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/tls/etcd/02-arngen.tf -------------------------------------------------------------------------------- /modules/tls/etcd/03-s3upload.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/tls/etcd/03-s3upload.tf -------------------------------------------------------------------------------- /modules/tls/etcd/Files/etcd.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/tls/etcd/Files/etcd.pem -------------------------------------------------------------------------------- /modules/tls/etcd/Files/etcdkey.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/tls/etcd/Files/etcdkey.pem -------------------------------------------------------------------------------- /modules/tls/etcd/Files/kmspolicy.json.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/tls/etcd/Files/kmspolicy.json.tpl -------------------------------------------------------------------------------- /modules/tls/etcd/Files/root_arn.txt: -------------------------------------------------------------------------------- 1 | arn:aws:iam::801551588932:user/admin 2 | -------------------------------------------------------------------------------- /modules/tls/etcd/Files/rootarn.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/tls/etcd/Files/rootarn.sh -------------------------------------------------------------------------------- /modules/tls/etcd/Files/worker_role_arn.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/tls/etcd/Files/worker_role_arn.txt -------------------------------------------------------------------------------- /modules/tls/etcd/Files/workerarn.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/tls/etcd/Files/workerarn.sh -------------------------------------------------------------------------------- /modules/tls/etcd/main.tf: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /modules/tls/etcd/outputs.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/tls/etcd/outputs.tf -------------------------------------------------------------------------------- /modules/tls/etcd/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/modules/tls/etcd/variables.tf -------------------------------------------------------------------------------- /terraform.tfvars: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/terraform.tfvars -------------------------------------------------------------------------------- /variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arehmandev/Terraform-etcd/HEAD/variables.tf --------------------------------------------------------------------------------