Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions infrastructure/api/api-gateway.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Import common configurations
module "common" {
source = "git::https://github.com/bcgov/quickstart-aws-helpers.git//terraform/modules/common?ref=v0.0.6"
source = "git::https://github.com/bcgov/quickstart-aws-helpers.git//terraform/modules/common?ref=v0.1.0"

target_env = var.target_env
app_env = var.app_env
Expand All @@ -11,14 +11,14 @@ module "common" {

# Import networking configurations
module "networking" {
source = "git::https://github.com/bcgov/quickstart-aws-helpers.git//terraform/modules/networking?ref=v0.0.6"
source = "git::https://github.com/bcgov/quickstart-aws-helpers.git//terraform/modules/networking?ref=v0.1.0"

target_env = var.target_env
}

# API Gateway with VPC Link using the API Gateway module
module "api_gateway" {
source = "git::https://github.com/bcgov/quickstart-aws-helpers.git//terraform/modules/api-gateway?ref=v0.0.6"
source = "git::https://github.com/bcgov/quickstart-aws-helpers.git//terraform/modules/api-gateway?ref=v0.1.0"

api_name = var.app_name
protocol_type = "HTTP"
Expand Down
6 changes: 3 additions & 3 deletions infrastructure/api/waf.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ provider "aws" {
# WAF for API (if public API)
module "waf_api" {
count = var.is_public_api ? 1 : 0
source = "git::https://github.com/bcgov/quickstart-aws-helpers.git//terraform/modules/waf?ref=v0.0.6"
source = "git::https://github.com/bcgov/quickstart-aws-helpers.git//terraform/modules/waf?ref=v0.1.0"

name = "${var.app_name}-api-cf-waf"
description = "API CloudFront WAF Rules"
Expand All @@ -28,7 +28,7 @@ module "waf_api" {
# CloudFront logs bucket for API (if public API)
module "cloudfront_api_logs" {
count = var.is_public_api ? 1 : 0
source = "git::https://github.com/bcgov/quickstart-aws-helpers.git//terraform/modules/s3-cloudfront-logs?ref=v0.0.6"
source = "git::https://github.com/bcgov/quickstart-aws-helpers.git//terraform/modules/s3-cloudfront-logs?ref=v0.1.0"

bucket_name = "cf-api-logs-${var.app_name}"
log_prefix = "cf/api/"
Expand All @@ -38,7 +38,7 @@ module "cloudfront_api_logs" {
# CloudFront distribution for API (if public API)
module "cloudfront_api" {
count = var.is_public_api ? 1 : 0
source = "git::https://github.com/bcgov/quickstart-aws-helpers.git//terraform/modules/cloudfront?ref=v0.0.6"
source = "git::https://github.com/bcgov/quickstart-aws-helpers.git//terraform/modules/cloudfront?ref=v0.1.0"

app_name = var.app_name
repo_name = var.repo_name
Expand Down
4 changes: 2 additions & 2 deletions infrastructure/database/aurora-v2.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Import common configurations
module "common" {
source = "git::https://github.com/bcgov/quickstart-aws-helpers.git//terraform/modules/common?ref=v0.0.6"
source = "git::https://github.com/bcgov/quickstart-aws-helpers.git//terraform/modules/common?ref=v0.1.0"

target_env = var.target_env
app_env = var.app_env
Expand All @@ -11,7 +11,7 @@ module "common" {

# Import networking configurations
module "networking" {
source = "git::https://github.com/bcgov/quickstart-aws-helpers.git//terraform/modules/networking?ref=v0.0.6"
source = "git::https://github.com/bcgov/quickstart-aws-helpers.git//terraform/modules/networking?ref=v0.1.0"
target_env = var.target_env
}
data "aws_kms_alias" "rds_key" {
Expand Down
10 changes: 5 additions & 5 deletions infrastructure/frontend/cloudfront.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Import common configurations
module "common" {
source = "git::https://github.com/bcgov/quickstart-aws-helpers.git//terraform/modules/common?ref=v0.0.6"
source = "git::https://github.com/bcgov/quickstart-aws-helpers.git//terraform/modules/common?ref=v0.1.0"

target_env = var.target_env
app_env = var.app_env
Expand All @@ -11,7 +11,7 @@ module "common" {

# Create the frontend S3 bucket using the secure bucket module
module "frontend_bucket" {
source = "git::https://github.com/bcgov/quickstart-aws-helpers.git//terraform/modules/s3-secure-bucket?ref=v0.0.6"
source = "git::https://github.com/bcgov/quickstart-aws-helpers.git//terraform/modules/s3-secure-bucket?ref=v0.1.0"

bucket_name = "${var.app_name}-static-assets"
force_destroy = true
Expand All @@ -23,7 +23,7 @@ module "frontend_bucket" {

# Create CloudFront Origin Access Identity
module "cloudfront_oai" {
source = "git::https://github.com/bcgov/quickstart-aws-helpers.git//terraform/modules/cloudfront-oai?ref=v0.0.6"
source = "git::https://github.com/bcgov/quickstart-aws-helpers.git//terraform/modules/cloudfront-oai?ref=v0.1.0"

comment = "OAI for ${var.app_name} site."
s3_bucket_name = module.frontend_bucket.bucket_name
Expand All @@ -32,7 +32,7 @@ module "cloudfront_oai" {

# Create CloudFront logs bucket
module "cloudfront_logs" {
source = "git::https://github.com/bcgov/quickstart-aws-helpers.git//terraform/modules/s3-cloudfront-logs?ref=v0.0.6"
source = "git::https://github.com/bcgov/quickstart-aws-helpers.git//terraform/modules/s3-cloudfront-logs?ref=v0.1.0"

bucket_name = "${var.app_name}-cf-logs"
log_prefix = "${var.app_name}/cloudfront-logs/"
Expand All @@ -41,7 +41,7 @@ module "cloudfront_logs" {

# Create CloudFront distribution using the CloudFront module
module "cloudfront_distribution" {
source = "git::https://github.com/bcgov/quickstart-aws-helpers.git//terraform/modules/cloudfront?ref=v0.0.6"
source = "git::https://github.com/bcgov/quickstart-aws-helpers.git//terraform/modules/cloudfront?ref=v0.1.0"

app_name = var.app_name
repo_name = var.repo_name
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/frontend/waf.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Create WAF for CloudFront using the WAF module
module "waf_cloudfront" {
source = "git::https://github.com/bcgov/quickstart-aws-helpers.git//terraform/modules/waf?ref=v0.0.6"
source = "git::https://github.com/bcgov/quickstart-aws-helpers.git//terraform/modules/waf?ref=v0.1.0"

name = "${var.app_name}-waf-cloudfront"
description = "CloudFront WAF Rules"
Expand Down
Loading