|
Here are two simple database definitions: Database in Pulumi: const db = new gcp.sql.DatabaseInstance('app-db', {
databaseVersion: 'POSTGRES_11',
region: 'us-central1',
settings: {
tier: 'db-f1-micro',
diskType: 'PD_HDD',
},
});
Database in AWS CDK: const db = new rds.DatabaseInstance(this, 'AppDb', {
engine: rds.DatabaseInstanceEngine.POSTGRES,
engineVersion: '11.5',
instanceClass: ec2.InstanceType.of(
ec2.InstanceClass.STANDARD5,
ec2.InstanceSize.XLARGE
),
storageType: rds.StorageType.GP2
})
Not to mention they have higher level constructs like DatabaseCluster that will handle the underlying details of replicas and create the lower level resources for you. |
Pulumi also does have a number of higher-level constructs, which you can learn about here: https://www.pulumi.com/docs/guides/crosswalk/aws/