Prechádzať zdrojové kódy

Adds s3_binaries policy to portal instance profile

Should be tagged v2.1.15
Duane Waddle 3 rokov pred
rodič
commit
c4faf2a12d
1 zmenil súbory, kde vykonal 11 pridanie a 0 odobranie
  1. 11 0
      base/customer_portal/ecr.tf

+ 11 - 0
base/customer_portal/ecr.tf

@@ -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
+}
+