# # Copyright Amazon.com, Inc. and its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT # # Licensed under the MIT License. See the LICENSE accompanying this file # for the specific language governing permissions and limitations under # the License. # ################ # IAM ROLES ################ resource "aws_iam_role" "ecs_execution_role" { count = var.import_aws_ecs_task_definition ? 0 : 1 name = "${var.tags["Project"]}-${var.ecs_cluster_name}-execution" assume_role_policy = <