Skip to content

Commit

Permalink
Add import module to root
Browse files Browse the repository at this point in the history
  • Loading branch information
devsjc committed Nov 13, 2023
1 parent 834d9ef commit 5a5e461
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 0 additions & 5 deletions terraform/modules/storage/s3-private/bucket.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ resource "aws_s3_bucket" "bucket" {
}
}

import {
to = aws_s3_bucket.bucket
id = "${var.domain}-${var.service_name}-${var.environment}"
}

# Block all public access
# https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_public_access_block
resource "aws_s3_bucket_public_access_block" "access_block" {
Expand Down
5 changes: 5 additions & 0 deletions terraform/nowcasting/development/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ module "forecasting_models_bucket" {
lifecycled_prefixes = []
}

import {
to = module.forecasting_models_bucket.aws_s3_bucket.bucket
id = "uk-national-forecaster-models-development"
}

# 1.1
module "api" {
source = "../../modules/services/api"
Expand Down

0 comments on commit 5a5e461

Please sign in to comment.