Difference between revisions of "Template:Aws iam role ecs task role"

From wikieduonline
Jump to navigation Jump to search
(Created page with " resource "aws_iam_role" "ecs_task_role" { name = "your-ecs-task-role" assume_role_policy = <<-EOF { "Version": "2012-10-17", "Statement":...")
 
 
Line 9: Line 9:
 
         "Effect": "Allow",
 
         "Effect": "Allow",
 
         "Principal": {
 
         "Principal": {
           "Service": "ecs-tasks.amazonaws.com"
+
           "Service": "[[ecs-tasks.amazonaws.com]]"
 
         },
 
         },
 
         "Action": [
 
         "Action": [

Latest revision as of 15:45, 29 May 2023

resource "aws_iam_role" "ecs_task_role" {
 name               = "your-ecs-task-role"
 assume_role_policy = <<-EOF
 {
   "Version": "2012-10-17",
   "Statement": [
     {
       "Sid": "",
       "Effect": "Allow",
       "Principal": {
         "Service": "ecs-tasks.amazonaws.com"
       },
       "Action": [
         "sts:AssumeRole"
       ]
     }
   ]
 }
 EOF
}

Advertising: