mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
depploy hubspot etl registry
This commit is contained in:
parent
1abc53f3e3
commit
d6f9b48797
1 changed files with 31 additions and 0 deletions
|
|
@ -574,3 +574,34 @@ output "cdn_certificate_state_bucket" {
|
|||
value = module.cdn_certificate_state_bucket.bucket_name
|
||||
}
|
||||
|
||||
|
||||
################################################
|
||||
# Hubspot ETL Lambda
|
||||
################################################
|
||||
module "hubspot_etl_bucket" {
|
||||
source = "../modules/tf_state_bucket"
|
||||
bucket_name = "hubspot-etl-bucket-terraform-state"
|
||||
|
||||
}
|
||||
|
||||
module "hubspot_etl_registry" {
|
||||
source = "../modules/container_registry"
|
||||
name = "hubspot_etl"
|
||||
stage = var.stage
|
||||
|
||||
}
|
||||
|
||||
# S3 policy for postcode splitter to read from retrofit data bucket
|
||||
module "hubspot_etl_s3_read_and_write" {
|
||||
source = "../modules/s3_iam_policy"
|
||||
|
||||
policy_name = "HubspotETLReadandWriteS3"
|
||||
policy_description = "Allow ordnance Lambda to read and write from retrofit-data bucket"
|
||||
bucket_arns = ["arn:aws:s3:::retrofit-data-${var.stage}"]
|
||||
actions = ["s3:GetObject", "s3:ListBucket", "s3:PutObject"]
|
||||
resource_paths = ["/*"]
|
||||
}
|
||||
|
||||
output "ordnance_s3_read_and_write_arn" {
|
||||
value = module.hubspot_etl_s3_read_and_write.policy_arn
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue