Feat: Adds base project
This commit is contained in:
9
infra/s3/Pulumi.assistente-matricula.yaml
Normal file
9
infra/s3/Pulumi.assistente-matricula.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
config:
|
||||
aws:region: us-east-1
|
||||
ia-bucket:
|
||||
buckets:
|
||||
- name: assistente-matricula-docs
|
||||
- name: assistente-matricula-transcribe
|
||||
tags:
|
||||
Enviroment: dev
|
||||
Owner: ai
|
||||
3
infra/s3/Pulumi.yaml
Normal file
3
infra/s3/Pulumi.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
name: ia-bucket
|
||||
runtime: python
|
||||
description: S3 bucket for assisten-matricula
|
||||
9
infra/s3/main.py
Normal file
9
infra/s3/main.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import pulumi
|
||||
import pulumi_aws as aws
|
||||
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)
|
||||
pulumi.export("bucket_name",bucket.id)
|
||||
pulumi.export("bucket_arn",bucket.arn)
|
||||
Reference in New Issue
Block a user