GithubHelp home page GithubHelp logo

Comments (4)

linjmeyer avatar linjmeyer commented on June 26, 2024 1

I like this idea a lot, I think if we could support changing the formats option from:

'formats': {
        'domain': 'acme.com`
}

to:

'formats': {
     'domains': [ 'acme.com', 'example.com' ]
}

then update the code hitting DNS/Route53 to create both, this could be do-able. I think both would be CNAMEs pointing to the aws resource, rather than acme.com CNAME -> example.com but that would work the same as you describe. Only down side I can think of is that this would enable the second domain for ALL pipelines, but if you are migrating off that may be desired anyway.

from foremast.

jvasallo avatar jvasallo commented on June 26, 2024 1

@c0debreaker I saw a response in email, but didn't see it here, but for where formats section is located at is in your config.py settings:
https://github.com/foremast/foremast-template-examples/blob/master/configs/config.py#L59

To address the issue @linjmeyer mentioned:
Only down side I can think of is that this would enable the second domain for ALL pipelines, but if you are migrating off that may be desired anyway.

My thought in the pipeline.json (or application-.json), you can have a section like domains, where engineers are able to specify what domains to create DNS records in (default: if not provided create in all domains listed in config.py). If you specify domains in the pipeline.json file, they are evaluated against the config.py list to ensure they are "supported."

This enables both parties to both:

  1. Support multiple domains
  2. Limit domain if you don't need/want it.

Hope this helps!

from foremast.

c0debreaker avatar c0debreaker commented on June 26, 2024

That is awesome! Thank you for responding right away! :)

from foremast.

c0debreaker avatar c0debreaker commented on June 26, 2024

Hey Joel. Neil Camara here. 😊 Yes, I deleted my question because I figured out "formats" property after looking at the code.

Really glad to see your solutions. Looks like putting it in the pipeline.json is nice because developer teams will have the final say on when their applications are ready to be migrated.

Thank you both for keeping this project alive! 💪

from foremast.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.