Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support adding a hosted internal route53 zone #252

Closed
brentley opened this issue Dec 29, 2017 · 6 comments
Closed

Support adding a hosted internal route53 zone #252

brentley opened this issue Dec 29, 2017 · 6 comments
Projects

Comments

@brentley
Copy link
Contributor

This is useful when creating an internal ALB to route traffic to backend services. I'm able to do this in my example services using this custom cloudformation, but it would be nice to roll it up into a single parameter:

  mu-iam-common:
    Resources:
      CloudFormationRole:
        Type: AWS::IAM::Role
        Properties:
          Policies:
            - PolicyName: update-route53-backend
              PolicyDocument:
                Version: '2012-10-17'
                Statement:
                - Action:
                  - route53:CreateHostedZone
                  - route53:UpdateHostedZoneComment
                  - route53:ListQueryLoggingConfigs
                  Resource: '*'
                  Effect: Allow
  mu-target-backend:
    Resources:
      DnsBackend:
        Type: "AWS::Route53::HostedZone"
        Properties:
          Name: "internal.service"
          VPCs:
            -
              VPCRegion:
                Fn::Sub: ${AWS::Region}
              VPCId:
                Ref: VpcId
@cplee cplee added this to To do in 1.4.1 Jan 9, 2018
@cplee
Copy link
Contributor

cplee commented Jan 15, 2018

@brentley can you share more details about how this hosted zone is used in the rest of the application? Just want to understand a bit more about the use case.

@brentley
Copy link
Contributor Author

Sure!

Basically, I'm trying to build this:

web app fargate ecs architecture

The Internal DNS domain is used to give the Backend ALB an easy to reference DNS domain. I happen to be using api.internal.service. So my frontend would reference it's backend by talking to api.internal.service/whatever and ALB would direct the traffic to the appropriate set of services.

@cplee
Copy link
Contributor

cplee commented Jan 18, 2018

Makes perfect sense, thanks!

@brentley
Copy link
Contributor Author

I ended up moving this into an extension: https://github.com/brentley/example-demo/blob/master/backend-service/common-iam.yml

along with setting up a 2nd ALB for the backend services: https://github.com/brentley/example-demo/blob/master/backend-service/elb.yml

@cplee cplee added this to To do in 1.5.1 via automation Jan 24, 2018
@cplee cplee removed this from To do in 1.4.1 Jan 24, 2018
@cplee
Copy link
Contributor

cplee commented Jul 31, 2018

@brentley would this still be necessary if #299 was implemented (Native ECS Service Discovery)?

@cplee
Copy link
Contributor

cplee commented Aug 1, 2018

Addressed in #299

@cplee cplee closed this as completed Aug 1, 2018
1.5.1 automation moved this from To do to Done Aug 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
1.5.1
  
Done
Development

No branches or pull requests

2 participants