Skip to content

Commit

Permalink
Revert "Temporarily comment out CodeDeploy hook"
Browse files Browse the repository at this point in the history
This reverts commit 126167d.
  • Loading branch information
clareliguori committed Jun 6, 2021
1 parent 326b7db commit 6deed09
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions trivia-backend/infra/cdk/ecs-service-blue-green.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import { Alarm, AlarmRule, AlarmState, CompositeAlarm, Metric } from '@aws-cdk/aws-cloudwatch';
import { Port, SecurityGroup, SubnetType, Vpc } from '@aws-cdk/aws-ec2';
import { Repository } from '@aws-cdk/aws-ecr';
import { AwsLogDriver, CfnPrimaryTaskSet, CfnService, CfnTaskSet, Cluster, ContainerImage, DeploymentControllerType, FargateTaskDefinition, LaunchType, PropagatedTagSource } from '@aws-cdk/aws-ecs';
import { ApplicationLoadBalancer, ApplicationProtocol, ApplicationTargetGroup, HttpCodeTarget, ListenerAction, Protocol, TargetType } from '@aws-cdk/aws-elasticloadbalancingv2';
import { AwsLogDriver, CfnPrimaryTaskSet, CfnService, CfnTaskDefinition, CfnTaskSet, Cluster, ContainerImage, DeploymentControllerType, FargateTaskDefinition, LaunchType, PropagatedTagSource } from '@aws-cdk/aws-ecs';
import { ApplicationLoadBalancer, ApplicationProtocol, ApplicationTargetGroup, CfnListener, CfnTargetGroup, HttpCodeTarget, ListenerAction, Protocol, TargetType } from '@aws-cdk/aws-elasticloadbalancingv2';
import { RecordTarget, ARecord, HostedZone } from '@aws-cdk/aws-route53';
import { LoadBalancerTarget } from '@aws-cdk/aws-route53-targets';
import { StringParameter } from '@aws-cdk/aws-ssm';
Expand Down Expand Up @@ -207,7 +207,6 @@ class TriviaBackendStack extends cdk.Stack {
// code below. The next stack update will *not* deploy the ECS service changes in a blue-green fashion.
// Once the stack update is completed, uncomment the CodeDeploy transform and hook code to re-enable
// blue-green deployments.
/*
this.addTransform('AWS::CodeDeployBlueGreen');
const taskDefLogicalId = this.getLogicalId(taskDefinition.node.defaultChild as CfnTaskDefinition)
const taskSetLogicalId = this.getLogicalId(taskSet)
Expand Down Expand Up @@ -254,7 +253,6 @@ class TriviaBackendStack extends cdk.Stack {
}
}]
});
*/

// Alarms:
// These resources alarm on unhealthy hosts and HTTP 500s at the target group level.
Expand Down

0 comments on commit 6deed09

Please sign in to comment.