-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: the auto attachment of an EC2 to a default private hosted zone (#…
…129)
- Loading branch information
1 parent
f802e83
commit 9d87a85
Showing
10 changed files
with
117 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
description: "Automatically attach your EC2 to a default Route53 Private Hosted Zone" | ||
icon: material/connection | ||
status: new | ||
--- | ||
|
||
# Auto Attachment of your EC2 | ||
|
||
Your EC2 can automatically be attached to a default Route53 Private Hosted Zone (PHZ) called `dns53`. | ||
|
||
```sh | ||
dns53 --auto-attach | ||
``` | ||
|
||
For this to work as intended, `dns53` handles two attachment scenarios, removing the need for any PHZ management. 👍 | ||
|
||
## You are the first Auto Attachment | ||
|
||
Congratulations, you beat everyone else in your team or organisation and auto-attached your EC2 to the default `dns53` PHZ. `dns53` will: | ||
|
||
1. Create the new `dns53` PHZ and associate the launched EC2 VPC with it. | ||
1. Broadcasts your EC2 as expected, using a custom domain name if provided. | ||
1. Tidies everything up when you exit. | ||
|
||
## Auto Attachment has already happened | ||
|
||
If someone in your team, or organisation, was super keen and already auto-attached their EC2 to the default `dns53` PHZ, your attachment will be slightly different. `dns53` will: | ||
|
||
1. Check if your launched EC2 is within a VPC associated with the PHZ. If not, it will create a new association. | ||
1. Broadcasts your EC2 as expected, using a custom domain name if provided. | ||
1. Tidies everything up when you exit. | ||
|
||
## A 10,000-foot view | ||
|
||
![Auto Attachment Flow](../static/auto-attachment-flow.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
icon: material/file-code-outline | ||
--- | ||
|
||
# Compiling from Source | ||
|
||
Download both [Go 1.19+](https://go.dev/doc/install) and [go-task](https://taskfile.dev/#/installation). Then clone the code from GitHub: | ||
|
||
```sh | ||
git clone https://github.com/purpleclay/dns53.git | ||
cd dns53 | ||
``` | ||
|
||
Build: | ||
|
||
```sh | ||
task | ||
``` | ||
|
||
And check that everything works: | ||
|
||
```sh | ||
./dns53 version | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
icon: material/file-key-outline | ||
--- | ||
|
||
MIT License | ||
|
||
Copyright (c) 2022 Purple Clay | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters