|
@@ -98,3 +98,14 @@ resource "aws_iam_role_policy_attachment" "portal_server_ecr" {
|
|
|
role = aws_iam_role.portal_server.name
|
|
|
policy_arn = aws_iam_policy.portal_server_ecr_policy.arn
|
|
|
}
|
|
|
+
|
|
|
+data "aws_iam_policy" "default_instance_policy_s3_binaries" {
|
|
|
+ name = "default_instance_s3_binaries"
|
|
|
+ path_prefix = "/launchroles/"
|
|
|
+}
|
|
|
+
|
|
|
+resource "aws_iam_role_policy_attachment" "portal_server_s3_binaries" {
|
|
|
+ role = aws_iam_role.portal_server.name
|
|
|
+ policy_arn = data.aws_iam_policy.default_instance_policy_s3_binaries.arn
|
|
|
+}
|
|
|
+
|