You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
563 B
Terraform
29 lines
563 B
Terraform
2 years ago
|
data "aws_vpc" "selected" {
|
||
|
id = var.vpc_id
|
||
|
}
|
||
|
|
||
|
data "aws_subnet" "selected" {
|
||
|
id = var.subnet_id
|
||
|
}
|
||
|
|
||
|
|
||
|
data "aws_ami" "selected" {
|
||
|
most_recent = true
|
||
|
owners = ["amazon"]
|
||
|
|
||
|
filter {
|
||
|
name = "name"
|
||
|
values = ["amzn2-ami-*"]
|
||
|
}
|
||
|
}
|
||
|
|
||
|
data "http" "relay_auth_key_response" {
|
||
|
url = "https://api.tailscale.com/api/v2/tailnet/${var.tailscale_domain}/keys/${tailscale_tailnet_key.relay_auth.id}"
|
||
|
|
||
|
# Optional request headers
|
||
|
request_headers = {
|
||
|
Accept = "application/json"
|
||
|
Authorization = "Basic ${local.tailscale_auth_token}"
|
||
|
}
|
||
|
}
|