Skip to content

Commit

Permalink
remove example and add test
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Aug 27, 2024
1 parent 6fe9643 commit 47db1e9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 45 deletions.
12 changes: 0 additions & 12 deletions example/main.tf

This file was deleted.

10 changes: 0 additions & 10 deletions example/providers.tf

This file was deleted.

3 changes: 0 additions & 3 deletions example/variables.tf

This file was deleted.

32 changes: 12 additions & 20 deletions test/main.tf
Original file line number Diff line number Diff line change
@@ -1,26 +1,19 @@

/*
* TODO: complete these basic instantiations of the module, with the base purpose of
* validating the syntax of module code automatically when pushed to version control.
* One instance should use the minimum allowable set of inputs. The other should have
* the full complement of inputs. You may also wish to include module outputs to
* enforce the presence of module outputs.
*/

module "minimal" {
source = "../"

variable_name = "foo"
source = "../"
app_name = "minimal"
app_env = "test"
source_arns = ["arn:aws:rds:us-east-1:123456789012:db:my-db"]
}

module "full" {
source = "../"

variable_name = "foo"
}

output "an_output" {
value = module.minimal.output_name
source = "../"
app_name = "full"
app_env = "test"
source_arns = ["arn:aws:rds:us-east-1:123456789012:db:my-db"]
backup_schedule = "cron(11 1 * * ? *)"
notification_events = ["BACKUP_JOB_STARTED", "BACKUP_JOB_COMPLETED", "BACKUP_JOB_FAILED", "RESTORE_JOB_COMPLETED"]
sns_topic_arn = "arn:aws:sns:us-east-1:123456789012:backup-vault-events"
}

provider "aws" {
Expand All @@ -29,11 +22,10 @@ provider "aws" {

terraform {
required_version = ">= 1.0"

required_providers {
aws = {
version = "~> 4.0"
source = "hashicorp/aws"
version = "~> 5.0"
}
}
}

0 comments on commit 47db1e9

Please sign in to comment.