From c64a50e3f6674e409c29fbe34803da5c66f213c0 Mon Sep 17 00:00:00 2001 From: Oleg Vaskevich Date: Sun, 16 Feb 2020 12:37:28 -0800 Subject: [PATCH] Update to use proper structure for publishing --- LICENSE | 5 +++-- main.tf | 0 modules/cdn/README.md | 13 +++++++++++++ {cdn => modules/cdn}/main.tf | 0 {cdn => modules/cdn}/outputs.tf | 0 {cdn => modules/cdn}/variables.tf | 0 {cdn => modules/cdn}/versions.tf | 0 7 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 main.tf create mode 100644 modules/cdn/README.md rename {cdn => modules/cdn}/main.tf (100%) rename {cdn => modules/cdn}/outputs.tf (100%) rename {cdn => modules/cdn}/variables.tf (100%) rename {cdn => modules/cdn}/versions.tf (100%) diff --git a/LICENSE b/LICENSE index 908e3cb..446c814 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ -MIT License +The MIT License (MIT) -Copyright (c) 2019 Oleg Vaskevich +Copyright (c) 2020 Oleg Vaskevich Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -19,3 +19,4 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + diff --git a/main.tf b/main.tf new file mode 100644 index 0000000..e69de29 diff --git a/modules/cdn/README.md b/modules/cdn/README.md new file mode 100644 index 0000000..55046d3 --- /dev/null +++ b/modules/cdn/README.md @@ -0,0 +1,13 @@ +# cdn + +CDN backed by an S3 bucket using CloudFront configured with SNI-based SSL. + +```tf +module "cdn" { + source = "github.com/vaskevich/tfdash//cdn" + name = "my-cdn" + zone_id = "${aws_route53_zone.root.zone_id}" + acm_ssl_cert_arn = "${aws_acm_certificate.root.arn}" + inaccessible_page_path = "/index.html" +} +``` diff --git a/cdn/main.tf b/modules/cdn/main.tf similarity index 100% rename from cdn/main.tf rename to modules/cdn/main.tf diff --git a/cdn/outputs.tf b/modules/cdn/outputs.tf similarity index 100% rename from cdn/outputs.tf rename to modules/cdn/outputs.tf diff --git a/cdn/variables.tf b/modules/cdn/variables.tf similarity index 100% rename from cdn/variables.tf rename to modules/cdn/variables.tf diff --git a/cdn/versions.tf b/modules/cdn/versions.tf similarity index 100% rename from cdn/versions.tf rename to modules/cdn/versions.tf