mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 11:53:12 +00:00
Add import-only dev and staging state with least-privilege HCP authentication and plan safety guards.
42 lines
1.6 KiB
HCL
42 lines
1.6 KiB
HCL
locals {
|
|
aws_account_id = "396287094661"
|
|
aws_region = "us-east-1"
|
|
|
|
eb_application_name = "shoc-backend"
|
|
eb_environment_name = "shoc-backend-dev"
|
|
eb_environment_id = "e-hehnrqjjrt"
|
|
eb_platform = "64bit Amazon Linux 2023 v3.11.3 running .NET 8"
|
|
api_domain = "api.dev.seahaven.com"
|
|
}
|
|
|
|
module "inventory" {
|
|
source = "../modules/environment-inventory"
|
|
|
|
aws_account_id = local.aws_account_id
|
|
vpc_id = "vpc-0d16336143f3da25e"
|
|
subnet_ids = ["subnet-09eaf2bfa468d206f", "subnet-02946ccd6735742e9", "subnet-0bedaa6e0c750be4f"]
|
|
rds_identifier = "shoc-sqlserver-shared"
|
|
eb_service_role_name = "shoc-eb-service-role"
|
|
runtime_role_name = "shoc-backend-dev"
|
|
instance_profile_name = "shoc-backend-dev"
|
|
security_group_ids = ["sg-0c8bb7cf2c193de57", "sg-050e5a737e98ba699"]
|
|
certificate_domain = "*.seahaven.com"
|
|
expected_certificate_arn = "arn:aws:acm:us-east-1:396287094661:certificate/2b78e74f-7b65-4b82-a413-7a498b102f00"
|
|
hosted_zone_name = "dev.seahaven.com"
|
|
expected_hosted_zone_id = "Z07671212N75U4YLPWZR8"
|
|
}
|
|
|
|
module "deploy_role" {
|
|
source = "../modules/deploy-role"
|
|
|
|
aws_account_id = local.aws_account_id
|
|
aws_region = local.aws_region
|
|
github_repo = "Sea-Haven-Industries/shoc-backend"
|
|
environment = "dev"
|
|
eb_application_name = local.eb_application_name
|
|
eb_environment_name = local.eb_environment_name
|
|
eb_environment_id = local.eb_environment_id
|
|
github_deploy_role_name = "githubdeploy-shoc-backend-dev"
|
|
adoption_complete = false
|
|
legacy_dev_s3_policy = true
|
|
}
|