Small Terraform deployment

Job ID: 35096574

Budget: $10 – $30 USD

Hi, I need a small terraform snippet that basically goes into 2 AWS Accounts, and authorizes zones, as well as create a rule. In AWS CLI it would look like this:

aws route53 create-vpc-association-authorization --hosted-zone-id Z04125R2352525322UX --vpc VPCRegion=us-east-1,VPCId=vpc-11111111111111 --region us-east-1

In other AWS Account:

aws route53 associate-vpc-with-hosted-zone --hosted-zone-id Z04125R2352525322UX --vpc VPCRegion=us-east-1,VPCId=vpc-22222222222 --region us-east-1

create rule:

aws route53resolver create-resolver-rule \
--creator-request-id 2020-01-02-18:47 \
--domain-name example.com \
--name my-rule \
--resolver-endpoint-id rslvr-out-d5e5920e37example \
--rule-type FORWARD \
--target-ips="Ip=10.24.8.75" "Ip=10.24.8.156"
Related categories: Amazon CloudFormation Terraform