AWS Route53
This Driver generates a new subdomain for a domain that is managed in a Route53 Hosted Zone.
Property | Description |
---|---|
Resource Type | dns |
Account Type | aws |
Inputs
Values
Name | Type | Description |
---|---|---|
domain |
string | The domain under which to specify the subdomain. For example, staging.example.com |
hosted_zone_id |
string | The AWS hosted zone for the domain. |
Secrets
None
Notes
AWS credentials
As Route53 is a service of AWS, AWS credentials are required to use the service.
Example
In this example, we use the humanitec/dns-aws-route53
Driver to provision new subdomains under staging.route53-hosted-domain.com
for an app called route53-dns-example-app
.
First, the Resource Account containing the AWS Access Key and Secret must be created:
curl https://api.humanitec.io/orgs/my-org/resources/accounts \
-X POST \
-H "Authorization: Bearer $HUMANITEC_TOKEN" \
-H "Content-Type: application/json" \
--data-binary '{
"id": "aws-example-account",
"name": "AWS Example Account",
"type": "aws",
"credentials": {
"aws_access_key_id": "AAABBBCCCDDDEEEFFFGGG",
"aws_secret_access_key": "zZxXyY123456789aAbBcCdD"
}
}'
Then following Dynamic Resource Definition should be added:
curl https://api.humanitec.io/orgs/my-org/resources/defs \
-X POST \
-H "Authorization: Bearer $HUMANITEC_TOKEN" \
-H "Content-Type: application/json" \
--data-binary '{
"id": "dynamic-dns-route53",
"name": "Dynamic DNS via Route53",
"type": "dns",
"criteria": [
{
"app_id": "route53-dns-example-app"
}
],
"account_id": "aws-example-account",
"driver_type": "humanitec/dns-aws-route53",
"driver_params": {
"values": {
"domain": "staging.route53-hosted-domain.com",
"hosted_zone_id": "HKAV28SSA"
}
}
}'