You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
terraform/internal/configs/testdata/valid-modules/with-mocks/test_case_one.tftest.hcl

49 lines
707 B

mock_provider "aws" {
mock_resource "aws_instance" {
defaults = {
arn = "aws:instance"
}
}
mock_data "aws_secretsmanager_secret" {}
override_resource {
target = aws_instance.second
values = {}
}
override_data {
target = data.aws_secretsmanager_secret.creds
values = {
arn = "aws:secretsmanager"
}
}
}
override_module {
target = module.child
outputs = {
string = "testfile"
number = -1
}
}
run "test" {
override_resource {
target = aws_instance.first
values = {
arn = "aws:instance:first"
}
}
override_module {
target = module.child
outputs = {
string = "testrun"
number = -1
}
}
}