mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-31 11:17:25 -06:00
b40b7ce01a
This fixes a bug where Terraform would error with the following: ``` Error loading config: Error reading /Users/rhenrichs/work/example/.#example.tf: open /Users/rhenrichs/work/example/.#example.tf: no such file or directory ``` The solution implemented here ignores the common emacs and vim temporary file formats. Note: the potential danger with merging this is that Terraform could quickly have requests to ignore other file formats.
21 lines
352 B
Plaintext
21 lines
352 B
Plaintext
provider "do" {
|
|
api_key = "${var.foo}"
|
|
}
|
|
|
|
resource "aws_security_group" "firewall" {
|
|
count = 5
|
|
}
|
|
|
|
resource aws_instance "web" {
|
|
ami = "${var.foo}"
|
|
security_groups = [
|
|
"foo",
|
|
"${aws_security_group.firewall.foo}"
|
|
]
|
|
|
|
network_interface {
|
|
device_index = 0
|
|
description = "Main network interface"
|
|
}
|
|
}
|