#This solution, non-production-ready template describes AWS Codepipeline based CICD Pipeline for terraform code deployment. #© 2023 Amazon Web Services, Inc. or its affiliates. All Rights Reserved. #This AWS Content is provided subject to the terms of the AWS Customer Agreement available at #http://aws.amazon.com/agreement or other written agreement between Customer and either #Amazon Web Services, Inc. or Amazon Web Services EMEA SARL or both. data "aws_region" "current" {} data "aws_caller_identity" "current" {} data "aws_partition" "current" {} # To be used only in case of an Existing Repository data "aws_iam_role" "existing_codepipeline_role" { count = var.create_new_role ? 0 : 1 name = var.codepipeline_iam_role_name }