Feat: Pulumi S3

This commit is contained in:
2026-03-16 10:59:51 -03:00
parent 624f5dc7e6
commit a4d9583821
11 changed files with 74 additions and 157 deletions

View File

@@ -1,32 +1,32 @@
config:
aws:region: us-east-1
app-ecs:account_id: "305427701314" # dnxbrasil-nonprod
app-ecs:project_name: assistente-analitico
app-ecs:project_name: assistente-matricula
app-ecs:environment: dev
# app-ecs:bedrock_api_key:
# secure: you-can-put-your-pulumi-encrypted-secure-string-here
app-ecs:tags:
project: assistente-analitico-db-dev
project: assistente-matricula-dev
env: dev # dev, test, stage, prod
account: nonprod # prod, nonprod, dataScience
costCenter: AI # AWSGeneral, AI, data, productName
owner: AI # team or a preson responsible
app-ecs:network:
vpc_id: vpc-17ceb96c
vpc_id: vpc-08b91683af59eab85
alb_internal: false
alb_subnet_ids: # 2+ private subnets if alb_internal else public subnets in the same region and vpc
- subnet-0de9f056635629827
- subnet-09cda74f27c543521
- subnet-07886057270d8c0f3
- subnet-0b40078e0a65d2a0c
alb_allow_ingress_cidr:
- 3.14.44.224/32
ecs_subnet_ids:
- subnet-0f50f25a2fbb054d4
- subnet-043a427630309c2f4
- subnet-07ccfbdb115f03d5e
- subnet-0e05d1de8407fb798
app-ecs:ecs:
- task_name: assisnte-analitico-db-dev
ecr_repo_name: assistente-analitico-db-dev
- task_name: assistente-matricula-dev
ecr_repo_name: assistente-matricula-dev
ecr_image_tag: latest
ecr_image_digest: sha256:0bd3a927df4367ba29dbd173e0414d884e973c37599a3f6241341e8d190e827b
ecr_image_digest: sha256:a4ff97f1bbc3ba14d40b32e68f6fc431dd5f05c70aff2f8b914f503e62bc7230
cpu: 256
memory: 512
desired_count: 1
@@ -46,14 +46,14 @@ config:
target_port: 8000
container_port: 8000
env_variables:
LANGFUSE_HOST: http://172.31.252.176:3000
TABLE: poc_dnx_monthly_summary
LANGFUSE_HOST: http://0.0.0.0/0
REGION: us-east-1
AWS_ACCOUNT: "305427701314"
SECRET_NAME: assistente-db-secrets-manager
KNOWLEDGE_BASE_ID: LBH9H6QTAK
#SECRET_NAME: assistente-db-secrets-manager
# SECRET_NAME: dev/ai-pge-doc-classification
# BEDROCK_REGION: us-east-1
# LANGCHAIN_TRACING_V2: "true"
# LANGCHAIN_PROJECT: pge-doc-classification-dev
app-ecs:cloudwatch:
log_group_name: assistente-analitico-db-dev
log_group_name: assistente-matricula-dev

View File

@@ -1,9 +0,0 @@
config:
aws:region: us-east-1
ia-bucket:
buckets:
- name: assistente-matricula-docs
- name: assistente-matricula-transcribe
tags:
Enviroment: dev
Owner: ai

View File

@@ -0,0 +1,21 @@
config:
aws:region: us-east-1
ia-bucket:buckets:
- name: br-edu-ifsp-capivari-s3-docs-matricula-dev
- name: br-edu-ifsp-capivari-s3-transcribe-matricula-dev
ia-bucket:tags:
Nome: Bucket Knowledge Base
Ambiente: dev
projeto: Assistente matricula
responsavel: infra@ifsp.edu.br
centro-de-custo: ti-geral-2026
criticidade: alta
data-de-criacao: 13/03/2026
backup: não
servico: Armazenamento
setor: ti
campus: capivari
area: infraestrutura
prospeccao: sim
poc: sim

View File

@@ -4,6 +4,6 @@ config=pulumi.Config()
buckets_config=config.require_object("buckets")
tags=config.require_object("tags")
for b in buckets_config:
bucket=aws.s3.BucketV2(b["name"],tags=tags)
bucket=aws.s3.Bucket(b["name"],tags=tags)
pulumi.export("bucket_name",bucket.id)
pulumi.export("bucket_arn",bucket.arn)