|
1 | 1 | {
|
2 | 2 | "AWSTemplateFormatVersion" : "2010-09-09",
|
3 |
| - "Description" : "AWS CloudFormation Sample Template cfncluster.cfn.json: Sample template showing an framework for deploying master + compute type clusters on AWS. **WARNING** This template creates AWS resources. You will be billed for the AWS resources used if you create a stack from this template. Version: ami-20150415-0 cfncluster-0.0.20", |
| 3 | + "Description" : "AWS CloudFormation Sample Template cfncluster.cfn.json: Sample template showing an framework for deploying master + compute type clusters on AWS. **WARNING** This template creates AWS resources. You will be billed for the AWS resources used if you create a stack from this template. Version: ami-20150609-0 cfncluster-0.0.21", |
4 | 4 | "Parameters" : {
|
5 | 5 | "KeyName" : {
|
6 | 6 | "Description" : "Name of an existing EC2 KeyPair to enable SSH access to the instances",
|
|
46 | 46 | "d2.8xlarge",
|
47 | 47 | "d2.4xlarge",
|
48 | 48 | "d2.2xlarge",
|
49 |
| - "d2.xlarge" |
| 49 | + "d2.xlarge", |
| 50 | + "m4.large", |
| 51 | + "m4.xlarge", |
| 52 | + "m4.2xlarge", |
| 53 | + "m4.4xlarge", |
| 54 | + "m4.10xlarge" |
50 | 55 | ]
|
51 | 56 | },
|
52 | 57 | "ComputeInstanceType" : {
|
|
89 | 94 | "d2.8xlarge",
|
90 | 95 | "d2.4xlarge",
|
91 | 96 | "d2.2xlarge",
|
92 |
| - "d2.xlarge" |
| 97 | + "d2.xlarge", |
| 98 | + "m4.large", |
| 99 | + "m4.xlarge", |
| 100 | + "m4.2xlarge", |
| 101 | + "m4.4xlarge", |
| 102 | + "m4.10xlarge" |
93 | 103 | ]
|
94 | 104 | },
|
95 | 105 | "InitialQueueSize" : {
|
|
358 | 368 | "Description" : "CloudWatch Logs LogGroup",
|
359 | 369 | "Type" : "String",
|
360 | 370 | "Default" : "NONE"
|
| 371 | + }, |
| 372 | + "Tenancy" : { |
| 373 | + "Description" : "Type of placement requird in cfncluster, it can either be cluster or compute.", |
| 374 | + "Type" : "String", |
| 375 | + "Default" : "default", |
| 376 | + "AllowedValues" : [ |
| 377 | + "default", |
| 378 | + "dedicated" |
| 379 | + ] |
| 380 | + }, |
| 381 | + "EBSKMSKeyId" : { |
| 382 | + "Description" : "KMS ARN for customer created master key, will be used for EBS encryption", |
| 383 | + "Type" : "String", |
| 384 | + "Default" : "NONE" |
| 385 | + }, |
| 386 | + "EphemeralKMSKeyId" : { |
| 387 | + "Description" : "KMS ARN for customer created master key, will be used for ephemeral encryption", |
| 388 | + "Type" : "String", |
| 389 | + "Default" : "NONE" |
| 390 | + }, |
| 391 | + "ClusterReadyScript" : { |
| 392 | + "Description" : "Cluster ready script URL. This is only on the MasterServer, when the cluster reaches CREATE_COMPLETE.", |
| 393 | + "Type" : "String", |
| 394 | + "Default" : "NONE" |
361 | 395 | }
|
362 | 396 | },
|
363 | 397 | "Conditions" : {
|
|
598 | 632 | ]
|
599 | 633 | }
|
600 | 634 | ]
|
| 635 | + }, |
| 636 | + "UseEBSKMSKey" : { |
| 637 | + "Fn::And" : [ |
| 638 | + { |
| 639 | + "Fn::Not" : [ |
| 640 | + { |
| 641 | + "Fn::Equals" : [ |
| 642 | + { |
| 643 | + "Ref" : "EBSKMSKeyId" |
| 644 | + }, |
| 645 | + "NONE" |
| 646 | + ] |
| 647 | + } |
| 648 | + ] |
| 649 | + }, |
| 650 | + { |
| 651 | + "Condition" : "UseEBSEncryption" |
| 652 | + } |
| 653 | + ] |
| 654 | + }, |
| 655 | + "UseEphemeralKMSKey" : { |
| 656 | + "Fn::And" : [ |
| 657 | + { |
| 658 | + "Fn::Not" : [ |
| 659 | + { |
| 660 | + "Fn::Equals" : [ |
| 661 | + { |
| 662 | + "Ref" : "EphemeralKMSKeyId" |
| 663 | + }, |
| 664 | + "NONE" |
| 665 | + ] |
| 666 | + } |
| 667 | + ] |
| 668 | + }, |
| 669 | + { |
| 670 | + "Fn::Equals" : [ |
| 671 | + { |
| 672 | + "Ref" : "EncryptedEphemeral" |
| 673 | + }, |
| 674 | + "true" |
| 675 | + ] |
| 676 | + } |
| 677 | + ] |
| 678 | + }, |
| 679 | + "UseDedicatedTenancy" : { |
| 680 | + "Fn::Equals" : [ |
| 681 | + { |
| 682 | + "Ref" : "Tenancy" |
| 683 | + }, |
| 684 | + "dedicated" |
| 685 | + ] |
601 | 686 | }
|
602 | 687 | },
|
603 | 688 | "Mappings" : {
|
|
725 | 810 | "t2.medium" : {
|
726 | 811 | "Arch" : "64HVM",
|
727 | 812 | "EBSOpt" : "False"
|
| 813 | + }, |
| 814 | + "d2.8xlarge" : { |
| 815 | + "Arch" : "64HVM", |
| 816 | + "EBSOpt" : "True" |
| 817 | + }, |
| 818 | + "d2.4xlarge" : { |
| 819 | + "Arch" : "64HVM", |
| 820 | + "EBSOpt" : "True" |
| 821 | + }, |
| 822 | + "d2.2xlarge" : { |
| 823 | + "Arch" : "64HVM", |
| 824 | + "EBSOpt" : "True" |
| 825 | + }, |
| 826 | + "d2.xlarge" : { |
| 827 | + "Arch" : "64HVM", |
| 828 | + "EBSOpt" : "True" |
| 829 | + }, |
| 830 | + "m4.10xlarge" : { |
| 831 | + "Arch" : "64HVM", |
| 832 | + "EBSOpt" : "True" |
| 833 | + }, |
| 834 | + "m4.4xlarge" : { |
| 835 | + "Arch" : "64HVM", |
| 836 | + "EBSOpt" : "True" |
| 837 | + }, |
| 838 | + "m4.2xlarge" : { |
| 839 | + "Arch" : "64HVM", |
| 840 | + "EBSOpt" : "True" |
| 841 | + }, |
| 842 | + "m4.xlarge" : { |
| 843 | + "Arch" : "64HVM", |
| 844 | + "EBSOpt" : "True" |
| 845 | + }, |
| 846 | + "m4.large" : { |
| 847 | + "Arch" : "64HVM", |
| 848 | + "EBSOpt" : "True" |
728 | 849 | }
|
729 | 850 | },
|
730 | 851 | "AWSRegionOS2AMI" : {
|
731 | 852 | "us-west-2" : {
|
732 |
| - "centos6" : "ami-39d1fb09" |
| 853 | + "centos6" : "ami-b7bb8387" |
733 | 854 | },
|
734 | 855 | "eu-central-1" : {
|
735 |
| - "centos6" : "ami-36eed22b" |
| 856 | + "centos6" : "ami-9886bf85" |
736 | 857 | },
|
737 | 858 | "sa-east-1" : {
|
738 |
| - "centos6" : "ami-19890c04" |
| 859 | + "centos6" : "ami-853fbf98" |
739 | 860 | },
|
740 | 861 | "ap-northeast-1" : {
|
741 |
| - "centos6" : "ami-e051abe0" |
| 862 | + "centos6" : "ami-10aa7310" |
742 | 863 | },
|
743 | 864 | "eu-west-1" : {
|
744 |
| - "centos6" : "ami-6f305018" |
| 865 | + "centos6" : "ami-5d6d132a" |
745 | 866 | },
|
746 | 867 | "us-east-1" : {
|
747 |
| - "centos6" : "ami-f07f4598" |
| 868 | + "centos6" : "ami-77fe0b1c" |
748 | 869 | },
|
749 | 870 | "us-west-1" : {
|
750 |
| - "centos6" : "ami-a703e1e3" |
| 871 | + "centos6" : "ami-036f8547" |
751 | 872 | },
|
752 | 873 | "ap-southeast-2" : {
|
753 |
| - "centos6" : "ami-4709747d" |
| 874 | + "centos6" : "ami-8d6b10b7" |
754 | 875 | },
|
755 | 876 | "ap-southeast-1" : {
|
756 |
| - "centos6" : "ami-d88bb98a" |
| 877 | + "centos6" : "ami-b2d7ede0" |
757 | 878 | },
|
758 | 879 | "us-gov-west-1" : {
|
759 |
| - "centos6" : "ami-a7f99884" |
| 880 | + "centos6" : "ami-3d82e21e" |
760 | 881 | }
|
761 | 882 | },
|
762 | 883 | "ClusterUser" : {
|
|
1374 | 1495 | "Ref" : "AWS::NoValue"
|
1375 | 1496 | }
|
1376 | 1497 | ]
|
| 1498 | + }, |
| 1499 | + "Tenancy" : { |
| 1500 | + "Ref" : "Tenancy" |
1377 | 1501 | }
|
1378 | 1502 | },
|
1379 | 1503 | "Metadata" : {
|
|
1925 | 2049 | }
|
1926 | 2050 | ]
|
1927 | 2051 | },
|
1928 |
| - "InstanceMonitoring" : "false" |
| 2052 | + "InstanceMonitoring" : "false", |
| 2053 | + "PlacementTenancy" : { |
| 2054 | + "Fn::If" : [ |
| 2055 | + "UseDedicatedTenancy", |
| 2056 | + { |
| 2057 | + "Ref" : "Tenancy" |
| 2058 | + }, |
| 2059 | + { |
| 2060 | + "Ref" : "AWS::NoValue" |
| 2061 | + } |
| 2062 | + ] |
| 2063 | + } |
1929 | 2064 | },
|
1930 | 2065 | "Metadata" : {
|
1931 | 2066 | "Comment" : "cfncluster Compute server",
|
|
2439 | 2574 | "Ref" : "AWS::NoValue"
|
2440 | 2575 | }
|
2441 | 2576 | ]
|
| 2577 | + }, |
| 2578 | + "KmsKeyId" : { |
| 2579 | + "Fn::If" : [ |
| 2580 | + "UseEBSKMSKey", |
| 2581 | + { |
| 2582 | + "Ref" : "EBSKMSKeyId" |
| 2583 | + }, |
| 2584 | + { |
| 2585 | + "Ref" : "AWS::NoValue" |
| 2586 | + } |
| 2587 | + ] |
2442 | 2588 | }
|
2443 | 2589 | }
|
2444 | 2590 | },
|
|
0 commit comments