Skip to content

Commit

Permalink
incorporating reviewer feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
UnquietCode authored and sean-smith committed Oct 25, 2018
1 parent 7e7b9b8 commit b1714d8
Showing 1 changed file with 12 additions and 39 deletions.
51 changes: 12 additions & 39 deletions cloudformation/cfncluster.cfn.json
Original file line number Diff line number Diff line change
Expand Up @@ -1964,30 +1964,23 @@
"Properties": {
"Path": "/",
"Roles": [
{
"Ref": "RootRole"
}
{"Fn::If": [
"UseEC2IAMRole",
{
"Ref": "EC2IAMRoleName"
},
{
"Ref": "RootRole"
}
]}
]
},
"Condition": "CreateEC2IAMRole",
"Metadata": {
"AWS::CloudFormation::Designer": {
"id": "2522b048-2b7c-44ed-9d35-6cc66069ca5b"
}
}
},
"NewInstanceProfile": {
"Type": "AWS::IAM::InstanceProfile",
"Properties": {
"Path": "/",
"Roles": [
{
"Ref": "EC2IAMRoleName"
}
]
},
"Condition": "UseEC2IAMRole"
},
},
"CfnClusterPolicies": {
"Type": "AWS::IAM::Policy",
"Properties": {
Expand Down Expand Up @@ -2435,17 +2428,7 @@
false
]
},
"IamInstanceProfile": {
"Fn::If": [
"UseEC2IAMRole",
{
"Ref": "NewInstanceProfile"
},
{
"Ref": "RootInstanceProfile"
}
]
},
"IamInstanceProfile": {"Ref": "RootInstanceProfile"},
"PlacementGroupName": {
"Fn::If": [
"UseClusterPlacement",
Expand Down Expand Up @@ -3009,17 +2992,7 @@
"KeyName": {
"Ref": "KeyName"
},
"IamInstanceProfile": {
"Fn::If": [
"UseEC2IAMRole",
{
"Ref": "NewInstanceProfile"
},
{
"Ref": "RootInstanceProfile"
}
]
},
"IamInstanceProfile": {"Ref": "RootInstanceProfile"},
"SpotPrice": {
"Fn::If": [
"UseSpotInstances",
Expand Down

0 comments on commit b1714d8

Please sign in to comment.