Commit 660c306e by e0d

adding iam role association to launch configurations

parent 95993075
...@@ -1449,6 +1449,78 @@ ...@@ -1449,6 +1449,78 @@
] ]
} }
}, },
"EdxappRole": {
"Type": "AWS::IAM::Role",
"Properties": {
"AssumeRolePolicyDocument": {
"Statement": [ {
"Effect": "Allow",
"Principal": {
"Service": [ "ec2.amazonaws.com" ]
},
"Action": [ "sts:AssumeRole" ]
} ]
},
"Path": "/"
}
},
"EdxappInstanceProfile": {
"Type": "AWS::IAM::InstanceProfile",
"Properties": {
"Path": "/",
"Roles": [ {
"Ref": "EdxappRole"
} ]
}
},
"XqueueRole": {
"Type": "AWS::IAM::Role",
"Properties": {
"AssumeRolePolicyDocument": {
"Statement": [ {
"Effect": "Allow",
"Principal": {
"Service": [ "ec2.amazonaws.com" ]
},
"Action": [ "sts:AssumeRole" ]
} ]
},
"Path": "/"
}
},
"XqueueInstanceProfile": {
"Type": "AWS::IAM::InstanceProfile",
"Properties": {
"Path": "/",
"Roles": [ {
"Ref": "XqueueRole"
} ]
}
},
"XServerRole": {
"Type": "AWS::IAM::Role",
"Properties": {
"AssumeRolePolicyDocument": {
"Statement": [ {
"Effect": "Allow",
"Principal": {
"Service": [ "ec2.amazonaws.com" ]
},
"Action": [ "sts:AssumeRole" ]
} ]
},
"Path": "/"
}
},
"XServerInstanceProfile": {
"Type": "AWS::IAM::InstanceProfile",
"Properties": {
"Path": "/",
"Roles": [ {
"Ref": "XServerRole"
} ]
}
},
"EdxServerUser":{ "EdxServerUser":{
"Type":"AWS::IAM::User", "Type":"AWS::IAM::User",
"Properties":{ "Properties":{
...@@ -1537,6 +1609,7 @@ ...@@ -1537,6 +1609,7 @@
} }
}, },
"Properties":{ "Properties":{
"IamInstanceProfile":{ "Ref":"EdxappInstanceProfile" },
"SecurityGroups":[ "SecurityGroups":[
{ {
"Ref":"EdxappServerSecurityGroup" "Ref":"EdxappServerSecurityGroup"
...@@ -1924,6 +1997,7 @@ ...@@ -1924,6 +1997,7 @@
} }
}, },
"Properties":{ "Properties":{
"IamInstanceProfile":{ "Ref":"XqueueInstanceProfile" },
"SecurityGroups":[ "SecurityGroups":[
{ {
"Ref":"XqueueServerSecurityGroup" "Ref":"XqueueServerSecurityGroup"
...@@ -2685,6 +2759,7 @@ ...@@ -2685,6 +2759,7 @@
} }
}, },
"Properties":{ "Properties":{
"IamInstanceProfile":{ "Ref":"XServerInstanceProfile" },
"SecurityGroups":[ "SecurityGroups":[
{ {
"Ref":"XServerSecurityGroup" "Ref":"XServerSecurityGroup"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment