21855: Update URL path for RPMs
[arvados.git] / tools / salt-install / terraform / aws / services / data.tf
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: CC-BY-SA-3.0
4
5 data "terraform_remote_state" "vpc" {
6   backend = "local"
7   config = {
8     path = "../vpc/terraform.tfstate"
9   }
10 }
11
12 data "terraform_remote_state" "data-storage" {
13   backend = "local"
14   config = {
15     path = "../data-storage/terraform.tfstate"
16   }
17 }
18
19 # https://wiki.debian.org/Cloud/AmazonEC2Image/Bullseye
20 data "aws_ami" "debian-11" {
21   most_recent = true
22   owners = ["136693071363"]
23   filter {
24     name   = "name"
25     values = ["debian-11-amd64-*"]
26   }
27   filter {
28     name   = "virtualization-type"
29     values = ["hvm"]
30   }
31 }
32
33 data "aws_vpc" "arvados_vpc" {
34   id = data.terraform_remote_state.vpc.outputs.arvados_vpc_id
35 }