operations: Complete migration to AWS ECS.
This commit is contained in:
@@ -7,23 +7,12 @@ resource "aws_s3_bucket" "personal_measure" {
|
||||
acl = "log-delivery-write"
|
||||
}
|
||||
|
||||
|
||||
resource "aws_ecr_repository" "personal_measure_api" {
|
||||
name = "personal_measure_api"
|
||||
image_tag_mutability = "IMMUTABLE"
|
||||
|
||||
image_scanning_configuration {
|
||||
scan_on_push = true
|
||||
}
|
||||
}
|
||||
|
||||
module "dev_env" {
|
||||
source = "./deployed_env"
|
||||
|
||||
environment = "dev"
|
||||
artifact_bucket = aws_s3_bucket.personal_measure
|
||||
route53_zone = data.terraform_remote_state.jdbsoft.outputs.aws_route53_zone_jdbsoft
|
||||
domain_cert = data.terraform_remote_state.jdbsoft.outputs.aws_acm_certificate_jdbsoft_us_east_1
|
||||
ecr_repo = aws_ecr_repository.personal_measure_api
|
||||
}
|
||||
|
||||
module "prod_env" {
|
||||
@@ -31,8 +20,7 @@ module "prod_env" {
|
||||
|
||||
environment = "prod"
|
||||
artifact_bucket = aws_s3_bucket.personal_measure
|
||||
route53_zone = data.terraform_remote_state.jdbsoft.outputs.aws_route53_zone_jdbsoft
|
||||
domain_cert = data.terraform_remote_state.jdbsoft.outputs.aws_acm_certificate_jdbsoft_us_east_1
|
||||
ecr_repo = aws_ecr_repository.personal_measure_api
|
||||
}
|
||||
|
||||
data "aws_iam_policy_document" "cloudfront_access_policy" {
|
||||
|
||||
Reference in New Issue
Block a user