diff --git a/example/main.tf b/example/main.tf deleted file mode 100644 index 5697465..0000000 --- a/example/main.tf +++ /dev/null @@ -1,12 +0,0 @@ -/* - * TODO: This example folder is a place to provide a fully-functional example, proving any other required - * resources and typical root module outputs with appropriate `sensitive` flags. It can be removed - * entirely if time does not allow for making it complete. - */ - -module "this" { - source = "silinternational/module_name/aws" - version = ">= 0.1.0" - - variable_name = "a variable value" -} diff --git a/example/providers.tf b/example/providers.tf deleted file mode 100644 index 324dc92..0000000 --- a/example/providers.tf +++ /dev/null @@ -1,10 +0,0 @@ -provider "aws" { - region = var.aws_region - - default_tags { - tags = { - managed_by = "terraform" - workspace = terraform.workspace - } - } -} diff --git a/example/variables.tf b/example/variables.tf deleted file mode 100644 index 2cdb1b7..0000000 --- a/example/variables.tf +++ /dev/null @@ -1,3 +0,0 @@ -variable "aws_region" { - default = "us-east-1" -} diff --git a/test/main.tf b/test/main.tf index 939673e..55c8c6e 100644 --- a/test/main.tf +++ b/test/main.tf @@ -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" { @@ -29,11 +22,10 @@ provider "aws" { terraform { required_version = ">= 1.0" - required_providers { aws = { + version = "~> 4.0" source = "hashicorp/aws" - version = "~> 5.0" } } }