|
614 | 614 | "Priority": 1 |
615 | 615 | } |
616 | 616 | }, |
| 617 | + "EcsTaskExecutionRoleC0B6A84D": { |
| 618 | + "Type": "AWS::IAM::Role", |
| 619 | + "Properties": { |
| 620 | + "AssumeRolePolicyDocument": { |
| 621 | + "Statement": [ |
| 622 | + { |
| 623 | + "Action": "sts:AssumeRole", |
| 624 | + "Effect": "Allow", |
| 625 | + "Principal": { |
| 626 | + "Service": "ecs-tasks.amazonaws.com" |
| 627 | + } |
| 628 | + } |
| 629 | + ], |
| 630 | + "Version": "2012-10-17" |
| 631 | + }, |
| 632 | + "ManagedPolicyArns": [ |
| 633 | + { |
| 634 | + "Fn::Join": [ |
| 635 | + "", |
| 636 | + [ |
| 637 | + "arn:", |
| 638 | + { |
| 639 | + "Ref": "AWS::Partition" |
| 640 | + }, |
| 641 | + ":iam::aws:policy/service-role/AmazonECSTaskExecutionRolePolicy" |
| 642 | + ] |
| 643 | + ] |
| 644 | + } |
| 645 | + ] |
| 646 | + } |
| 647 | + }, |
| 648 | + "ServiceRole4288B192": { |
| 649 | + "Type": "AWS::IAM::Role", |
| 650 | + "Properties": { |
| 651 | + "AssumeRolePolicyDocument": { |
| 652 | + "Statement": [ |
| 653 | + { |
| 654 | + "Action": "sts:AssumeRole", |
| 655 | + "Effect": "Allow", |
| 656 | + "Principal": { |
| 657 | + "Service": "ecs.amazonaws.com" |
| 658 | + } |
| 659 | + } |
| 660 | + ], |
| 661 | + "Version": "2012-10-17" |
| 662 | + }, |
| 663 | + "ManagedPolicyArns": [ |
| 664 | + { |
| 665 | + "Fn::Join": [ |
| 666 | + "", |
| 667 | + [ |
| 668 | + "arn:", |
| 669 | + { |
| 670 | + "Ref": "AWS::Partition" |
| 671 | + }, |
| 672 | + ":iam::aws:policy/service-role/AmazonEC2ContainerServiceRole" |
| 673 | + ] |
| 674 | + ] |
| 675 | + } |
| 676 | + ], |
| 677 | + "Policies": [ |
| 678 | + { |
| 679 | + "PolicyDocument": { |
| 680 | + "Statement": [ |
| 681 | + { |
| 682 | + "Action": "lambda:InvokeFunction", |
| 683 | + "Effect": "Allow", |
| 684 | + "Resource": "*" |
| 685 | + } |
| 686 | + ], |
| 687 | + "Version": "2012-10-17" |
| 688 | + }, |
| 689 | + "PolicyName": "LambdaInvokePolicy" |
| 690 | + }, |
| 691 | + { |
| 692 | + "PolicyDocument": { |
| 693 | + "Statement": [ |
| 694 | + { |
| 695 | + "Action": [ |
| 696 | + "elasticloadbalancing:ModifyListener", |
| 697 | + "elasticloadbalancing:ModifyRule" |
| 698 | + ], |
| 699 | + "Effect": "Allow", |
| 700 | + "Resource": { |
| 701 | + "Ref": "ALBProductionListenerRule243D0687" |
| 702 | + } |
| 703 | + } |
| 704 | + ], |
| 705 | + "Version": "2012-10-17" |
| 706 | + }, |
| 707 | + "PolicyName": "ELBPolicy" |
| 708 | + } |
| 709 | + ] |
| 710 | + } |
| 711 | + }, |
| 712 | + "ServiceRoleDefaultPolicy94CF55F6": { |
| 713 | + "Type": "AWS::IAM::Policy", |
| 714 | + "Properties": { |
| 715 | + "PolicyDocument": { |
| 716 | + "Statement": [ |
| 717 | + { |
| 718 | + "Action": "lambda:InvokeFunction", |
| 719 | + "Effect": "Allow", |
| 720 | + "Resource": [ |
| 721 | + { |
| 722 | + "Fn::GetAtt": [ |
| 723 | + "LambdaHookBF1BC8B4", |
| 724 | + "Arn" |
| 725 | + ] |
| 726 | + }, |
| 727 | + { |
| 728 | + "Fn::Join": [ |
| 729 | + "", |
| 730 | + [ |
| 731 | + { |
| 732 | + "Fn::GetAtt": [ |
| 733 | + "LambdaHookBF1BC8B4", |
| 734 | + "Arn" |
| 735 | + ] |
| 736 | + }, |
| 737 | + ":*" |
| 738 | + ] |
| 739 | + ] |
| 740 | + } |
| 741 | + ] |
| 742 | + } |
| 743 | + ], |
| 744 | + "Version": "2012-10-17" |
| 745 | + }, |
| 746 | + "PolicyName": "ServiceRoleDefaultPolicy94CF55F6", |
| 747 | + "Roles": [ |
| 748 | + { |
| 749 | + "Ref": "ServiceRole4288B192" |
| 750 | + } |
| 751 | + ] |
| 752 | + } |
| 753 | + }, |
617 | 754 | "LambdaHookServiceRole9AAAD33B": { |
618 | 755 | "Type": "AWS::IAM::Role", |
619 | 756 | "Properties": { |
|
719 | 856 | } |
720 | 857 | ], |
721 | 858 | "Cpu": "256", |
| 859 | + "ExecutionRoleArn": { |
| 860 | + "Fn::GetAtt": [ |
| 861 | + "EcsTaskExecutionRoleC0B6A84D", |
| 862 | + "Arn" |
| 863 | + ] |
| 864 | + }, |
722 | 865 | "Family": "awsecsbluegreendeploymentTaskDef51D80572", |
723 | 866 | "Memory": "512", |
724 | 867 | "NetworkMode": "awsvpc", |
|
740 | 883 | "Ref": "FargateCluster7CCD5F93" |
741 | 884 | }, |
742 | 885 | "DeploymentConfiguration": { |
| 886 | + "BakeTimeInMinutes": 0, |
| 887 | + "DeploymentCircuitBreaker": { |
| 888 | + "Enable": false, |
| 889 | + "Rollback": false |
| 890 | + }, |
743 | 891 | "LifecycleHooks": [ |
744 | 892 | { |
745 | 893 | "HookTargetArn": { |
|
748 | 896 | "Arn" |
749 | 897 | ] |
750 | 898 | }, |
751 | | - "LifecycleStages": [ |
752 | | - "PRE_SCALE_UP" |
753 | | - ], |
754 | 899 | "RoleArn": { |
755 | 900 | "Fn::GetAtt": [ |
756 | | - "ServicePreScaleUpRoleD002A553", |
| 901 | + "ServiceRole4288B192", |
757 | 902 | "Arn" |
758 | 903 | ] |
759 | | - } |
| 904 | + }, |
| 905 | + "LifecycleStages": [ |
| 906 | + "POST_TEST_TRAFFIC_SHIFT" |
| 907 | + ] |
760 | 908 | } |
761 | 909 | ], |
762 | 910 | "MaximumPercent": 200, |
763 | | - "MinimumHealthyPercent": 50, |
| 911 | + "MinimumHealthyPercent": 100, |
764 | 912 | "Strategy": "BLUE_GREEN" |
765 | 913 | }, |
| 914 | + "DeploymentController": { |
| 915 | + "Type": "ECS" |
| 916 | + }, |
766 | 917 | "EnableECSManagedTags": false, |
767 | 918 | "HealthCheckGracePeriodSeconds": 60, |
768 | 919 | "LaunchType": "FARGATE", |
|
772 | 923 | "AlternateTargetGroupArn": { |
773 | 924 | "Ref": "GreenTG71A27F2F" |
774 | 925 | }, |
775 | | - "ProductionListenerRule": { |
776 | | - "Ref": "ALBProductionListenerRule243D0687" |
777 | | - }, |
778 | 926 | "RoleArn": { |
779 | 927 | "Fn::GetAtt": [ |
780 | | - "ServiceLBAlternateOptionsRole06C91D94", |
| 928 | + "ServiceRole4288B192", |
781 | 929 | "Arn" |
782 | 930 | ] |
| 931 | + }, |
| 932 | + "ProductionListenerRule": { |
| 933 | + "Ref": "ALBProductionListenerRule243D0687" |
783 | 934 | } |
784 | 935 | }, |
785 | 936 | "ContainerName": "nginx", |
|
818 | 969 | "ALBProductionListenerRule243D0687", |
819 | 970 | "TaskDefTaskRole1EDB4A67" |
820 | 971 | ] |
821 | | - }, |
822 | | - "ServiceLBAlternateOptionsRole06C91D94": { |
823 | | - "Type": "AWS::IAM::Role", |
824 | | - "Properties": { |
825 | | - "AssumeRolePolicyDocument": { |
826 | | - "Statement": [ |
827 | | - { |
828 | | - "Action": "sts:AssumeRole", |
829 | | - "Effect": "Allow", |
830 | | - "Principal": { |
831 | | - "Service": "ecs.amazonaws.com" |
832 | | - } |
833 | | - } |
834 | | - ], |
835 | | - "Version": "2012-10-17" |
836 | | - }, |
837 | | - "ManagedPolicyArns": [ |
838 | | - { |
839 | | - "Fn::Join": [ |
840 | | - "", |
841 | | - [ |
842 | | - "arn:", |
843 | | - { |
844 | | - "Ref": "AWS::Partition" |
845 | | - }, |
846 | | - ":iam::aws:policy/AmazonECSInfrastructureRolePolicyForLoadBalancers" |
847 | | - ] |
848 | | - ] |
849 | | - } |
850 | | - ] |
851 | | - }, |
852 | | - "DependsOn": [ |
853 | | - "TaskDefTaskRole1EDB4A67" |
854 | | - ] |
855 | | - }, |
856 | | - "ServicePreScaleUpRoleD002A553": { |
857 | | - "Type": "AWS::IAM::Role", |
858 | | - "Properties": { |
859 | | - "AssumeRolePolicyDocument": { |
860 | | - "Statement": [ |
861 | | - { |
862 | | - "Action": "sts:AssumeRole", |
863 | | - "Effect": "Allow", |
864 | | - "Principal": { |
865 | | - "Service": "ecs.amazonaws.com" |
866 | | - } |
867 | | - } |
868 | | - ], |
869 | | - "Version": "2012-10-17" |
870 | | - } |
871 | | - } |
872 | | - }, |
873 | | - "ServicePreScaleUpRoleDefaultPolicyF1032E86": { |
874 | | - "Type": "AWS::IAM::Policy", |
875 | | - "Properties": { |
876 | | - "PolicyDocument": { |
877 | | - "Statement": [ |
878 | | - { |
879 | | - "Action": "lambda:InvokeFunction", |
880 | | - "Effect": "Allow", |
881 | | - "Resource": [ |
882 | | - { |
883 | | - "Fn::GetAtt": [ |
884 | | - "LambdaHookBF1BC8B4", |
885 | | - "Arn" |
886 | | - ] |
887 | | - }, |
888 | | - { |
889 | | - "Fn::Join": [ |
890 | | - "", |
891 | | - [ |
892 | | - { |
893 | | - "Fn::GetAtt": [ |
894 | | - "LambdaHookBF1BC8B4", |
895 | | - "Arn" |
896 | | - ] |
897 | | - }, |
898 | | - ":*" |
899 | | - ] |
900 | | - ] |
901 | | - } |
902 | | - ] |
903 | | - } |
904 | | - ], |
905 | | - "Version": "2012-10-17" |
906 | | - }, |
907 | | - "PolicyName": "ServicePreScaleUpRoleDefaultPolicyF1032E86", |
908 | | - "Roles": [ |
909 | | - { |
910 | | - "Ref": "ServicePreScaleUpRoleD002A553" |
911 | | - } |
912 | | - ] |
913 | | - } |
914 | 972 | } |
915 | 973 | }, |
916 | 974 | "Parameters": { |
|
0 commit comments