@neutrino-io/platform v0.1.21
Usage Examples
RDS Postgres
const infraDbBaas = new RdsPostgres(`${stackName}`, {
vpcId: vpc.vpcId,
subnetIds: vpc.privateSubnetIds,
dbName: infraDbName,
dbUser: infraDbUser,
dbPassword: infraDbPassword,
});Deploying Directus to ECS Cluster
const ecsCluster = new aws.ecs.Cluster(`${stackName}-ecs`, {});
const systemBaas = new Neutrino(`${stackName}-baas`, {
clusterArn: ecsCluster.arn,
vpcId: vpc.vpcId,
subnetIds: vpc.privateSubnetIds,
securityGroupIds: vpc.appSecGrpIds,
dbHost: infraDbBaas.dbAddress,
dbPort: "5432",
dbName: infraDbBaas.dbName,
dbUser: infraDbBaas.dbUser,
dbPassword: infraDbBaas.dbPassword.apply((p) => p || ""),
s3BucketId: infraBucketFiles.id,
s3Key: infraS3Key,
s3Secret: infraS3Secret,
});CF S3 Auth info
ID : 213016cbe4657a7dff10f7ef174c63df
Key : d6079213ce60fa0c6048fee8ea776a73e4b87820a26e3aa75776ce65960b46e2Add following AWS profile credential
[cf-neutrino]
aws_access_key_id=213016cbe4657a7dff10f7ef174c63df
aws_secret_access_key=d6079213ce60fa0c6048fee8ea776a73e4b87820a26e3aa75776ce65960b46e2CF API Token
SdN6QI4OWtUoGBTTcivzzCYnm8Mma4dhY1WItsOxLogin to Neutrino
export ORG_NAME=neutrino
export WORKSPACE=neutrino-infra
export STATE_ENDPOINT=endpoint=203a605533f37eb35da80dcf03a7bed6.r2.cloudflarestorage.com
pulumi login "s3://neutrino-states/$ORG_NAME/$WORKSPACE?$STATE_ENDPOINT?s3ForcePathStyle=true®ion=auto&profile=cf-neutrino"export PULUMI_CONFIG_PASSPHRASE=n3utr1n0
pulumi previewCreating a new stack for current org
pulumi stack init organization/foundry360-infra/stagingARC Design
Terminologies
Organization is top level organization of the stack represent the registered account.
Workspace is a logical grouping of the stack that can be a project name or application name.
Stack is a collection of infra or platform resources that are deployed together. A stack consist of its logical 'name' and 'environment' which will hold the state of the deployed stack.
Stack Name is a logical grouping that can be a project name or a group infra resource as 'hello-infra' or 'project-app'.
Stack Environment is a final state information of the deployed stack. Typically it can be 'dev', 'staging', 'prod' or 'test'.
State backend management
//.pulumi/stacks//.json
6 months ago