Difference between revisions of "Ecs-tasks.amazonaws.com"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
  
  resource "[[aws_iam_role]]" "ecs_task_role" {
+
 
  name              = "your-ecs-task-role"
+
  {{aws_iam_role 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
 
}
 
  
  
  
 
{{aws_iam_role}}
 
{{aws_iam_role}}

Revision as of 15:44, 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
}



AWS IAM role, AWS service roles, AWS IAM Roles Anywhere: [ list-roles | get-role | create-role | put-role-policy | create-service-linked-role | attach-role-policy | update-role | add-role-to-instance-profile ], aws ec2 describe-iam-instance-profile-associations ], IAM roles for EC2 instances, AWSServiceRoleForAutoScaling

Advertising: