Skip to content

Commit

Permalink
Change to indices in set for ebs_block_device
Browse files Browse the repository at this point in the history
Fixes #30 as described in hashicorp/terraform#24527 which was discovered and reported by @grp06 (thank you!)
  • Loading branch information
Rayraegah committed Jan 18, 2021
1 parent 09141d6 commit 4f64f02
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ data "aws_route53_zone" "hasura" {

resource "aws_route53_record" "hasura_validation" {
depends_on = [aws_acm_certificate.hasura]
name = aws_acm_certificate.hasura.domain_validation_options[0]["resource_record_name"]
type = aws_acm_certificate.hasura.domain_validation_options[0]["resource_record_type"]
zone_id = data.aws_route53_zone.hasura.zone_id
records = [aws_acm_certificate.hasura.domain_validation_options[0]["resource_record_value"]]
ttl = 300
name = element(tolist(aws_acm_certificate.hasura.domain_validation_options), 0)["resource_record_name"]
type = element(tolist(aws_acm_certificate.hasura.domain_validation_options), 0)["resource_record_type"]
zone_id = data.aws_route53_zone.hasura.zone_id
records = [element(tolist(aws_acm_certificate.hasura.domain_validation_options), 0)["resource_record_value"]]
ttl = 300
}

resource "aws_acm_certificate_validation" "hasura" {
Expand Down

0 comments on commit 4f64f02

Please sign in to comment.