File tree 1 file changed +12
-39
lines changed
1 file changed +12
-39
lines changed Original file line number Diff line number Diff line change 1964
1964
"Properties" : {
1965
1965
"Path" : " /" ,
1966
1966
"Roles" : [
1967
- {
1968
- "Ref" : " RootRole"
1969
- }
1967
+ {"Fn::If" : [
1968
+ " UseEC2IAMRole" ,
1969
+ {
1970
+ "Ref" : " EC2IAMRoleName"
1971
+ },
1972
+ {
1973
+ "Ref" : " RootRole"
1974
+ }
1975
+ ]}
1970
1976
]
1971
1977
},
1972
- "Condition" : " CreateEC2IAMRole" ,
1973
1978
"Metadata" : {
1974
1979
"AWS::CloudFormation::Designer" : {
1975
1980
"id" : " 2522b048-2b7c-44ed-9d35-6cc66069ca5b"
1976
1981
}
1977
1982
}
1978
- },
1979
- "NewInstanceProfile" : {
1980
- "Type" : " AWS::IAM::InstanceProfile" ,
1981
- "Properties" : {
1982
- "Path" : " /" ,
1983
- "Roles" : [
1984
- {
1985
- "Ref" : " EC2IAMRoleName"
1986
- }
1987
- ]
1988
- },
1989
- "Condition" : " UseEC2IAMRole"
1990
- },
1983
+ },
1991
1984
"CfnClusterPolicies" : {
1992
1985
"Type" : " AWS::IAM::Policy" ,
1993
1986
"Properties" : {
2435
2428
false
2436
2429
]
2437
2430
},
2438
- "IamInstanceProfile" : {
2439
- "Fn::If" : [
2440
- " UseEC2IAMRole" ,
2441
- {
2442
- "Ref" : " NewInstanceProfile"
2443
- },
2444
- {
2445
- "Ref" : " RootInstanceProfile"
2446
- }
2447
- ]
2448
- },
2431
+ "IamInstanceProfile" : {"Ref" : " RootInstanceProfile" },
2449
2432
"PlacementGroupName" : {
2450
2433
"Fn::If" : [
2451
2434
" UseClusterPlacement" ,
3009
2992
"KeyName" : {
3010
2993
"Ref" : " KeyName"
3011
2994
},
3012
- "IamInstanceProfile" : {
3013
- "Fn::If" : [
3014
- " UseEC2IAMRole" ,
3015
- {
3016
- "Ref" : " NewInstanceProfile"
3017
- },
3018
- {
3019
- "Ref" : " RootInstanceProfile"
3020
- }
3021
- ]
3022
- },
2995
+ "IamInstanceProfile" : {"Ref" : " RootInstanceProfile" },
3023
2996
"SpotPrice" : {
3024
2997
"Fn::If" : [
3025
2998
" UseSpotInstances" ,
You can’t perform that action at this time.
0 commit comments