Skip to content
This repository has been archived by the owner on Jun 14, 2023. It is now read-only.

Update Domain Name #86

Open
dempti opened this issue Jul 22, 2021 · 6 comments
Open

Update Domain Name #86

dempti opened this issue Jul 22, 2021 · 6 comments

Comments

@dempti
Copy link

dempti commented Jul 22, 2021

Hi All,

Can I update the domain which is set on cdk.json after applying all the changes.
The infra for SDLC has been created along with all the route 53 registration by the cdk itself.
Now, if I want to change it to some other doman, can I go ahead and do it

I dont want to mess the current setup right now, so it would be great if anycone can help me out on this..

@flochaz
Copy link
Contributor

flochaz commented Jul 22, 2021

Update will work with the following procedure a caveat:

  1. Update 1-SDLC-Organization/cdk.json file with the new domain_name, commit, push and approve the pipeline in Main account.
    [ISSUE] as soon as the landing zone pipeline succeed to deploy, your old dns won't work anymore so your apps behind it won't be accessible anymore (for ~ 30mins if you chain properly those steps)
  2. Update your apps cdk.json with the new domain_name, commit and push
    As soon as the app pipeline successfully run in CICD account your app will be accessible through the new domain name

I created an issue to mitigate this issue (#87).

@dempti
Copy link
Author

dempti commented Jul 22, 2021

Hi flochaz,

Thank you for your response. Right now I have only deployed SDLC-organization, so I don't think I need step2 right?
Also, do I need to run npm run deploy command again to deploy the changes or will it be handled once I push the changes to the github repository

@dempti
Copy link
Author

dempti commented Jul 22, 2021

Hi @flochaz

The system I deployed is based on the this commit commit.
Will there be any issue if new changes of SDLC are included during the domain update as well?

@flochaz
Copy link
Contributor

flochaz commented Jul 23, 2021 via email

@dempti
Copy link
Author

dempti commented Jul 26, 2021

Hi @flochaz ,

Is there any documentation on how those route53 domains interact with different organization, how they are accessed from one organization to another?

@flochaz
Copy link
Contributor

flochaz commented Jul 26, 2021

Hi @dempti,

This diagram shows how the mechanism of assume role works. But we lack documentation on how this hierarchy is created but here is the code creating the roles and zones and here is the simple logic enabling to create one role per account, those are instanciated (Root Zone and dedicated update role per workload account) by the SDLC-Organization/LandingZone stack. And last but not least, here is the custom resource used by the different app to create the Cross account delegated zone . I hope it helps.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants