Update your DNS records via phone!
- Press 1 - Get current IP
- Press 2 - Update IP. When prompted, enter in a new IP. Press # when complete
- Create a new AWS Lambda function via the AWS console
- Add a rest API by adding an API Gateway Trigger
- Configure proxy integration
- Configure the following environmental variables for the Lambda function
DTMF_DOMAIN_NAME
is the Route53 A record to update via dtmfHOSTED_ZONE_ID
is the Route53 zone ID whereDTMF_DOMAIN_NAME
resides
- Create IAM policy for Route53
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": "route53:ChangeResourceRecordSets",
"Resource": "arn:aws:route53:::hostedzone/XXXXXXXXXXXXXX"
},
{
"Sid": "VisualEditor1",
"Effect": "Allow",
"Action": "route53:ListHostedZones",
"Resource": "*"
},
{
"Sid": "VisualEditor2",
"Effect": "Allow",
"Action": "route53:ListResourceRecordSets",
"Resource": "arn:aws:route53:::hostedzone/XXXXXXXXXXXXXX"
}
]
}
- Attach policy to Lambda Role
- Provision new number
- Point to API endpoint for lambda function
Download project from github and install node dependencies.
git clone https://github.com/karlcswanson/dtmf.git
cd dtmf/
npm install
Compress and upload to AWS Lambda.
npm run pack
npm run push
- Script IAM Policy creation and attachment to Lambda role
- Script API trigger creation
- Fax confirmation usig Twilio fax API
- IP input validation
- Use Webpack to pack for upload