在 AWS 上使用 Universal 安装工具的可替换管理节点

在 AWS 上使用 Universal 安装工具的可替换管理节点

Prerequisites

Fully Managed Replaceable Masters

  1. provider "aws" {
  2. # Change your default region here
  3. region = "us-east-1"
  4. }
  5. # Used to determine your public IP for forwarding rules
  6. data "http" "whatismyip" {
  7. url = "http://whatismyip.akamai.com/"
  8. }
  9. source = "dcos-terraform/dcos/aws"
  10. version = "~> 0.2.0"
  11. providers = {
  12. aws = "aws"
  13. }
  14. cluster_name = "my-dcos-demo"
  15. ssh_public_key_file = "<path-to-public-key-file>"
  16. admin_ips = ["${data.http.whatismyip.body}/32"]
  17. num_masters = "3"
  18. num_private_agents = "2"
  19. num_public_agents = "1"
  20. dcos_version = "1.13.3"
  21. dcos_variant = "ee"
  22. dcos_license_key_contents = "${file("./license.txt")}"
  23. # Make sure to set your credentials if you do not want the default EE
  24. # dcos_superuser_username = "superuser-name"
  25. # dcos_superuser_password_hash = "${file("./dcos_superuser_password_hash.sha512")}"
  26. with_replaceable_masters = true
  27. }
  28. output "cluster-address" {
  29. value = "${module.dcos.masters-loadbalancer}"