Closed seanaguinaga closed 9 months ago
import { defineBackend } from '@aws-amplify/backend';
import { Duration } from 'aws-cdk-lib';
import * as ec2 from 'aws-cdk-lib/aws-ec2';
import * as rds from 'aws-cdk-lib/aws-rds';
import { auth } from './auth/resource';
import { data } from './data/resource';
const backend = defineBackend({
auth,
data,
});
const customResourceStack = backend.createStack('CustomResourceStack');
// https://docs.amplify.aws/gen2/build-a-backend/add-aws-services/custom-resources/#adding-an-existing-cdk-construct
// Create an Aurora Serverless PostgreSQL database with default VPC
new rds.ServerlessCluster(customResourceStack, 'AuroraServerless', {
engine: rds.DatabaseClusterEngine.AURORA_POSTGRESQL,
vpcSubnets: {
subnetType: ec2.SubnetType.PUBLIC,
},
scaling: { autoPause: Duration.hours(1) }, // Automatically pause after 1 hour of inactivity
defaultDatabaseName: 'Pimary',
});
This is my backend.ts
Under a different account with AmplifyBackendDeployFullAccess I get this
Environment information
Description
I am using the Web UI and this pops up even just using the demo github repo