Roger Foss
07/01/2024, 2:42 PMTroy Knapp
07/01/2024, 3:12 PMClemens Jütte
07/01/2024, 4:44 PMTroy Knapp
07/01/2024, 4:47 PMTroy Knapp
07/01/2024, 4:53 PMTeddy
07/02/2024, 1:14 PMLuca Galante
Troy Knapp
07/02/2024, 1:29 PMTroy Knapp
07/02/2024, 1:30 PMClemens Jütte
07/02/2024, 1:31 PMTroy Knapp
07/02/2024, 1:33 PMClemens Jütte
07/02/2024, 8:34 PMTroy Knapp
07/02/2024, 8:40 PMClemens Jütte
07/03/2024, 11:49 AMSoren Martius
07/03/2024, 4:20 PMSoren Martius
07/03/2024, 4:24 PMSoren Martius
07/03/2024, 4:27 PMSoren Martius
07/03/2024, 4:30 PMYeah, the OpenTofu contributors have signaled that they are happy to merge the code bases as long as the end result is something that will be owned by the CNCF. IMO, that would be what's best for everyone.That'd be my preferred scenario too. Merging both projects under the umbrella of the Linux Foundation to guarantee a decentralized, independent and proven governance model.
Roger Foss
07/03/2024, 4:32 PMSoren Martius
07/03/2024, 4:34 PMSoren Martius
07/03/2024, 4:34 PMTroy Knapp
07/03/2024, 4:34 PMTroy Knapp
07/03/2024, 4:36 PMSoren Martius
07/03/2024, 4:36 PMSoren Martius
07/03/2024, 4:54 PMnull_resources
to delay the execution of data sources to the apply phase.
data "aws_subnet" "subnet" {
filter {
name = "tag:Name"
values = [
"us-east-1a",
]
}
depends_on = [
null_resource.initial_deployment_trigger,
]
}
resource "null_resource" "initial_deployment_trigger" {}
Troy Knapp
07/03/2024, 5:18 PMTroy Knapp
07/04/2024, 4:05 PM# Output the path to the local file
# @public
output "local_file_path" {
description = "Filename of the local file"
value = local_file.my_local_file.filename
}
• it pulls the provider schema
• looks up the corresponding data source
• finds the required attributes for said source
• pulls the attributes from the state
• creates a new module with data sources, providers, and outputs that can be consumed by other stacks
The problem is that when you include a module like the one above, it'll only work if the apply in the parent has already happened. I want to be able to validate and not throw an error. So the problem here isn't delaying it until the apply phase (which your solution definitely fixes) but not throwing an error when a parent stack's resource isn't created yet and I want to generate a plan or something.
I ran into the issue I described in the PR a lot when I was really fresh in IAC and trying to migrate from clickops. Things in the cloud were applied inconsistently in different environments. I tried to use as much of the same code everywhere as possible, but I was constantly trying to import resource after resource. So having some way to normalize everything and get a good starting point would have been really helpful.Soren Martius
07/04/2024, 6:02 PMTroy Knapp
07/04/2024, 6:10 PM