Skip to content

Commit

Permalink
Fix references
Browse files Browse the repository at this point in the history
  • Loading branch information
snemetz committed May 28, 2022
1 parent 983c7a1 commit e4fe208
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,13 @@ resource "null_resource" "transfer_server_dns_tags" {
aws_region = data.aws_region.current.name
hostname = var.domain_name
zone_id = var.zone_id
transfer_server_arn = aws_transfer_server.default.arn
transfer_server_arn = aws_transfer_server.default[0].arn
}

provisioner "local-exec" {
command = <<EOF
aws --profile ${var.aws_profile} --region ${data.aws_region.current.name} transfer tag-resource \
--arn '${aws_transfer_server.default.arn}' \
--arn '${aws_transfer_server.default[0].arn}' \
--tags \
Key=aws:transfer:route53HostedZoneId,Value=/hostedzone/${var.zone_id} \
Key=aws:transfer:customHostname,Value=${var.domain_name}
Expand Down

0 comments on commit e4fe208

Please sign in to comment.