-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Infra for setting S3 bucket for storing datasets
- Loading branch information
1 parent
e63dcb7
commit 81f46a5
Showing
14 changed files
with
1,983 additions
and
2,201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Infra | ||
|
||
Infra about how we do the setup of the infra for the project. | ||
|
||
## Pulumi setup | ||
|
||
Go to pulumi CLI [installation guide](https://www.pulumi.com/docs/install/) if | ||
you didn't install it yet. | ||
|
||
### Set pulumi config values (can be encrypted with --secret) | ||
|
||
Pulumi store screts encrypted in the state files like `Pulumi.core.yaml` or | ||
`Pulumi.web-production.yaml1`. | ||
|
||
```bash | ||
pulumi config set AWS_ACCESS_KEY [your-access-key] --secret | ||
``` | ||
|
||
### Do changes | ||
|
||
Make your changes and run. It will show the changes and ask for permision | ||
|
||
```bash | ||
pulumi up | ||
``` | ||
|
||
It will ask you for Pulumi Passphrase. Is in 1Password. ask for permissions if | ||
you can't find wit "Pulumi Passphrase". |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import * as aws from '@pulumi/aws' | ||
|
||
const regionProvider = new aws.Provider('euCentral1RegionProvider', { | ||
region: 'eu-central-1', | ||
}) | ||
|
||
export const bucket = new aws.s3.BucketV2( | ||
'mainLatitudeBucketResouce', | ||
{ | ||
acl: 'private', // Canned ACL | ||
bucket: 'latitude-llm-bucket-production', | ||
tags: { | ||
Name: 'Latitude LLM bucket', | ||
Environment: 'Production', | ||
}, | ||
}, | ||
{ provider: regionProvider }, | ||
) | ||
|
||
export const bucketName = bucket.bucket |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.