Browse Source

Updates to match modules

Adds CORS policy for S3 bucket
Brad Poulton 3 years ago
parent
commit
c5323f94ea

+ 10 - 1
prod/aws-us-gov/mdr-prod-c2/355-codebuild-splunk-docs/terragrunt.hcl

@@ -13,7 +13,7 @@ locals {
 # working directory, into a temporary folder, and execute your Terraform commands in that folder.
 # working directory, into a temporary folder, and execute your Terraform commands in that folder.
 terraform {
 terraform {
   # Double slash is intentional and required to show root of modules
   # Double slash is intentional and required to show root of modules
-  source = "git@github.xdr.accenturefederalcyber.com:mdr-engineering/xdr-terraform-modules.git//base/codebuild_splunk_docs?ref=v5.1.0"
+  source = "git@github.xdr.accenturefederalcyber.com:mdr-engineering/xdr-terraform-modules.git//base/codebuild_splunk_docs?ref=v5.1.1"
 }
 }
 
 
 #Github specific provider
 #Github specific provider
@@ -72,6 +72,15 @@ inputs = {
   source_version  = "develop"
   source_version  = "develop"
   enable_webhooks = false
   enable_webhooks = false
   repository      = "content_source"
   repository      = "content_source"
+  cors_rules = {
+    portal_access = {
+      id = "portal_access"
+      allowed_methods = ["GET"]
+      allowed_origins = ["https://portal.xdr.accenturefederalcyber.com"]
+      allowed_headers = ["*"]
+      expose_headers  = []
+    },
+  }
 }
 }
 terraform_version_constraint  = "= 1.1.6"
 terraform_version_constraint  = "= 1.1.6"
 terragrunt_version_constraint = "= 0.36.2"
 terragrunt_version_constraint = "= 0.36.2"

+ 10 - 1
test/aws-us-gov/mdr-test-c2/355-codebuild-splunk-docs/terragrunt.hcl

@@ -13,7 +13,7 @@ locals {
 # working directory, into a temporary folder, and execute your Terraform commands in that folder.
 # working directory, into a temporary folder, and execute your Terraform commands in that folder.
 terraform {
 terraform {
   # Double slash is intentional and required to show root of modules
   # Double slash is intentional and required to show root of modules
-  source = "git@github.xdr.accenturefederalcyber.com:mdr-engineering/xdr-terraform-modules.git//base/codebuild_splunk_docs?ref=v5.1.0"
+  source = "git@github.xdr.accenturefederalcyber.com:mdr-engineering/xdr-terraform-modules.git//base/codebuild_splunk_docs?ref=v5.1.1"
 }
 }
 
 
 #Github specific provider
 #Github specific provider
@@ -72,6 +72,15 @@ inputs = {
   source_version  = "develop"
   source_version  = "develop"
   enable_webhooks = false
   enable_webhooks = false
   repository      = "content_source"
   repository      = "content_source"
+  cors_rules = {
+    portal_access = {
+      id = "portal_access"
+      allowed_methods = ["GET"]
+      allowed_origins = ["https://portal.xdrtest.accenturefederalcyber.com"]
+      allowed_headers = ["*"]
+      expose_headers  = []
+    },
+  }
 }
 }
 terraform_version_constraint  = "= 1.1.6"
 terraform_version_constraint  = "= 1.1.6"
 terragrunt_version_constraint = "= 0.36.2"
 terragrunt_version_constraint = "= 0.36.2"