InternalServiceErrorException when trying to create an aws_route53_resolver_endpoint ressource

194 views
Skip to first unread message

Michael Zoet

unread,
May 20, 2019, 10:04:29 AM5/20/19
to Terraform
Hello terraform group,

I am using terraform for a while now and experiencing a problem by
trying to create an aws_route53_resolver_endpoint resource. Maybe
someone can explain to me what this means? I never had this for other
resources. For details see below. I am using the latest AWS provider
version 2.11.
And is there a way to use terraform to create this resource? Or do I
have to set this up manually and import it?

When doing a terraform apply I get the following message on the console:
=====================================================
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.

Enter a value: yes

aws_route53_resolver_endpoint.outbound_XXX: Creating...
arn: "" => "<computed>"
direction: "" => "OUTBOUND"
host_vpc_id: "" => "<computed>"
ip_address.#: "" => "2"
ip_address.3535719968.ip: "" => "10.AAA.BBB.250>"
ip_address.3535719968.ip_id: "" => "<computed>"
ip_address.3535719968.subnet_id: "" => "subnet-xxxxxxxxxxxxxxxxx"
ip_address.4035092634.ip: "" => "10.AAA.CCC.250"
ip_address.4035092634.ip_id: "" => "<computed>"
ip_address.4035092634.subnet_id: "" => "subnet-yyyyyyyyyyyyyyyyy"
name: "" => "outbound_XXX"
security_group_ids.#: "" => "1"
security_group_ids.657611388: "" => "sg-zzzzzzzzzzzzzzzzzzz"
tags.%: "" => "5"
tags.Name: "" => "outbound DNS endpoint XX <-> YY"
tags.VPC: "" => "eu-central-1-mgmt"
tags.region: "" => "eu-central-1"
tags.system_stage: "" => "mgmt"
tags.terraform: "" => "true"

Error: Error applying plan:

1 error(s) occurred:

* aws_route53_resolver_endpoint.outbound_aws_cronon: 1 error(s) occurred:

* aws_route53_resolver_endpoint.outbound_aws_cronon: error creating
Route53 Resolver endpoint: InternalServiceErrorException:
[RSLVR-00201] Internal Service Error, please retry your request. Trace
ID: "AAAAAAAAAAAAAAAAAAAAAAAAA"
status code: 400, request id: BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB

Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.
=====================================================

My corresponding code for this is:

=====================================================
resource "aws_route53_resolver_endpoint" "outbound_XXX" {
name = "outbound_XXX"
direction = "OUTBOUND"

security_group_ids = [
"${aws_security_group.outbound_security_group.id}",
]

ip_address {
subnet_id = "${element(module.vpc.private_subnets, 0)}"
}
ip_address {
subnet_id = "${element(module.vpc.private_subnets, 1)}"
}

tags {
Name = "outbound DNS endpoint XX <-> YY"
terraform = "true"
system_stage = "${var.system_stage}"
region = "${var.region}"
VPC = "${var.vpc_name}"
}
}
=====================================================

Michael Zoet

unread,
May 23, 2019, 3:37:00 AM5/23/19
to terrafo...@googlegroups.com
To answer my own question in case someone stumbles over it by a search:

I gave the resource a name attribute and also a tag called Name. Seems
the resource aws_route53_resolver_endpoint
can not handle this. After removing the tag Name everything works as
expected. Interestingly there are other resources where I can set the
tag Name and also set the name attribute.


----- Nachricht von Michael Zoet <Michae...@zoet.de> ---------
Datum: Mon, 20 May 2019 16:04:24 +0200
Von: Michael Zoet <Michae...@zoet.de>
Antwort an: terrafo...@googlegroups.com
Betreff: [terraform] InternalServiceErrorException when trying to
create an aws_route53_resolver_endpoint ressource
An: Terraform <terrafo...@googlegroups.com>
> --
> This mailing list is governed under the HashiCorp Community
> Guidelines - https://www.hashicorp.com/community-guidelines.html.
> Behavior in violation of those guidelines may result in your removal
> from this mailing list.
>
> GitHub Issues: https://github.com/hashicorp/terraform/issues
> IRC: #terraform-tool on Freenode
> ---You received this message because you are subscribed to the
> Google Groups "Terraform" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to terraform-too...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/terraform-tool/20190520160424.Horde.XH2TJ0Yzn2jHdb7z9JrRrw1%40server06.zoet.de.
> For more options, visit https://groups.google.com/d/optout.


----- Ende der Nachricht von Michael Zoet <Michae...@zoet.de> -----



Reply all
Reply to author
Forward
0 new messages