From b01086fe792d123123d6ad4ef4dc9d25e8dcc3ec Mon Sep 17 00:00:00 2001 From: Casey Lee Date: Fri, 10 Aug 2018 17:42:17 +0000 Subject: [PATCH] remove internal ELB --- custom-iam-policy/env-iam.yml | 21 --------- custom-iam-policy/mu-extension.yml | 8 ---- internal-alb/elb.yml | 73 ------------------------------ internal-alb/mu-extension.yml | 8 ---- mu.yml | 5 +- 5 files changed, 1 insertion(+), 114 deletions(-) delete mode 100644 custom-iam-policy/env-iam.yml delete mode 100644 custom-iam-policy/mu-extension.yml delete mode 100644 internal-alb/elb.yml delete mode 100644 internal-alb/mu-extension.yml diff --git a/custom-iam-policy/env-iam.yml b/custom-iam-policy/env-iam.yml deleted file mode 100644 index b97f17a..0000000 --- a/custom-iam-policy/env-iam.yml +++ /dev/null @@ -1,21 +0,0 @@ ---- -Resources: - CloudFormationRoleAddlPolicy: - Type: AWS::IAM::Policy - Properties: - PolicyName: - Fn::Sub: ${Namespace}-update-route53-additional-${EnvironmentName} - PolicyDocument: - Version: '2012-10-17' - Statement: - - Action: - - route53:CreateHostedZone - - route53:GetHostedZone - - route53:DeleteHostedZone - - route53:UpdateHostedZoneComment - - route53:ListQueryLoggingConfigs - - iam:CreateServiceLinkedRole - Resource: '*' - Effect: Allow - Roles: - - Fn::Sub: ${Namespace}-cloudformation-common-${AWS::Region} diff --git a/custom-iam-policy/mu-extension.yml b/custom-iam-policy/mu-extension.yml deleted file mode 100644 index 0515350..0000000 --- a/custom-iam-policy/mu-extension.yml +++ /dev/null @@ -1,8 +0,0 @@ -name: custom-iam-policy -version: 1.0 - -templateUpdateMode: merge - -# Note: the filename must match the asset being extended. -# see https://github.com/stelligent/mu/tree/develop/templates/assets for -# filenames. diff --git a/internal-alb/elb.yml b/internal-alb/elb.yml deleted file mode 100644 index 1a01a7a..0000000 --- a/internal-alb/elb.yml +++ /dev/null @@ -1,73 +0,0 @@ ---- -Resources: - DnsBackend: - Type: "AWS::Route53::HostedZone" - Properties: - Name: "internal.service" - VPCs: - - - VPCRegion: - Fn::Sub: ${AWS::Region} - VPCId: - Fn::ImportValue: - Fn::Sub: ${VpcId} - BackendLB: - Type: AWS::ElasticLoadBalancingV2::LoadBalancer - Properties: - Scheme: internal - SecurityGroups: - - Ref: ElbSG - Subnets: - Fn::Split: - - ',' - - Fn::ImportValue: - Fn::Sub: ${ElbSubnetIds} - Tags: - - Key: Name - Value: - Ref: AWS::StackName - BackendLBHttpListener: - Type: AWS::ElasticLoadBalancingV2::Listener - Properties: - DefaultActions: - - TargetGroupArn: - Ref: BackendLBTargetGroup - Type: forward - LoadBalancerArn: - Ref: BackendLB - Port: "80" - Protocol: HTTP - BackendLBTargetGroup: - Type: AWS::ElasticLoadBalancingV2::TargetGroup - Properties: - Port: "8080" - Protocol: HTTP - Tags: - - Key: Name - Value: internal - VpcId: - Fn::ImportValue: - Fn::Sub: ${VpcId} - BackendLBDns: - Type: AWS::Route53::RecordSetGroup - Properties: - Comment: DNS for Internal ELB in ${AWS::StackName} - HostedZoneId: - Ref: DnsBackend - RecordSets: - - AliasTarget: - DNSName: - Fn::GetAtt: BackendLB.DNSName - EvaluateTargetHealth: true - HostedZoneId: - Fn::GetAtt: BackendLB.CanonicalHostedZoneID - Name: api.internal.service. - Type: A -Outputs: - BackendLBHttpListenerArn: - Description: Arn of the Backend ELB HTTP Listener. - Export: - Name: - Fn::Sub: ${AWS::StackName}-BackendLBHttpListenerArn - Value: - Ref: BackendLBHttpListener diff --git a/internal-alb/mu-extension.yml b/internal-alb/mu-extension.yml deleted file mode 100644 index 563ca13..0000000 --- a/internal-alb/mu-extension.yml +++ /dev/null @@ -1,8 +0,0 @@ -name: internal-alb -version: 1.0 - -templateUpdateMode: merge - -# Note: the filename must match the asset being extended. -# see https://github.com/stelligent/mu/tree/develop/templates/assets for -# filenames. diff --git a/mu.yml b/mu.yml index 68bb426..e2062f5 100644 --- a/mu.yml +++ b/mu.yml @@ -8,7 +8,4 @@ service: acceptance: disabled: true production: - disabled: true -extensions: - - url: custom-iam-policy - - url: internal-alb + disabled: true \ No newline at end of file