Comments (4)
Hi @emiioan, it looks like the problem here is that you're not creating a fully qualified domain name inside of the asg:hostname_pattern
tag, which is preventing the Route 53 record from being created. Here is an example of how this would work -
resource "aws_autoscaling_group" "asg" {
...
tag {
key = "asg:hostname_pattern"
value = "#instanceid.${var.vpc_name}.asg-testing.internal@${aws_route53_zone.test.id}"
propagate_at_launch = true
}
}
resource "aws_route53_zone" "test" {
name = "asg-testing.internal"
vpc {
vpc_id = data.terraform_remote_state.vpc.outputs.vpc_id
}
}
It's worth noting as well that #instanceid
is interpolated by the lambda function to the instance_id of the AWS instance that is created. I will update the documentation to make this more clear.
from terraform-aws-asg-dns-handler.
Additional documentation added in 498537e.
from terraform-aws-asg-dns-handler.
Hi @cmckeen, thanks a lot for the response, yes indeed it worked after adding the FQDN including the R53 zone name in asg:hostname_pattern value.
from terraform-aws-asg-dns-handler.
I had that error, too. The module mismatches foo.id, foo.name and foo.arn at some places. Check the generated policy, I think you'll find a wrong ARN like arn:aws:route53::: arn:aws:route53:::foo/bar. (When you have fixed that, you'll find the next mistake where the module expects a zone id but the module's description says you need an ARN.
(sorry, I mismatched this with a different error.)
from terraform-aws-asg-dns-handler.
Related Issues (8)
- IndexError: list index out of range HOT 4
- Documentation on registry.terraform.io outdated HOT 1
- Add possibility to use public IP HOT 3
- Feature idea: maintain a sequence of CNAMEs per ASG HOT 1
- Using the same DNS name for all instances in an ASG? HOT 1
- [Feature] Allow users to set TTL on route53 records HOT 1
- [Bug] Broken Lambda in v2.1.8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-aws-asg-dns-handler.