@epilot360/icons 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +15 -0
- package/dist/bundle.js +2 -0
- package/dist/bundle.js.map +1 -0
- package/iac/node_modules/@balena/dockerignore/LICENSE.md +206 -0
- package/iac/node_modules/@balena/dockerignore/README.md +261 -0
- package/iac/node_modules/@cspotcode/source-map-support/LICENSE.md +21 -0
- package/iac/node_modules/@cspotcode/source-map-support/README.md +289 -0
- package/iac/node_modules/@jridgewell/resolve-uri/LICENSE +19 -0
- package/iac/node_modules/@jridgewell/resolve-uri/README.md +40 -0
- package/iac/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs.map +1 -0
- package/iac/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js.map +1 -0
- package/iac/node_modules/@jridgewell/sourcemap-codec/LICENSE +21 -0
- package/iac/node_modules/@jridgewell/sourcemap-codec/README.md +200 -0
- package/iac/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +1 -0
- package/iac/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +1 -0
- package/iac/node_modules/@jridgewell/trace-mapping/LICENSE +19 -0
- package/iac/node_modules/@jridgewell/trace-mapping/README.md +193 -0
- package/iac/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs.map +1 -0
- package/iac/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js.map +1 -0
- package/iac/node_modules/@tsconfig/node10/LICENSE +21 -0
- package/iac/node_modules/@tsconfig/node10/README.md +40 -0
- package/iac/node_modules/@tsconfig/node12/LICENSE +21 -0
- package/iac/node_modules/@tsconfig/node12/README.md +40 -0
- package/iac/node_modules/@tsconfig/node14/LICENSE +21 -0
- package/iac/node_modules/@tsconfig/node14/README.md +40 -0
- package/iac/node_modules/@tsconfig/node16/LICENSE +21 -0
- package/iac/node_modules/@tsconfig/node16/README.md +40 -0
- package/iac/node_modules/@types/jest/LICENSE +21 -0
- package/iac/node_modules/@types/jest/README.md +17 -0
- package/iac/node_modules/@types/node/LICENSE +21 -0
- package/iac/node_modules/@types/node/README.md +16 -0
- package/iac/node_modules/@types/prettier/LICENSE +21 -0
- package/iac/node_modules/@types/prettier/README.md +16 -0
- package/iac/node_modules/acorn/LICENSE +21 -0
- package/iac/node_modules/acorn/README.md +273 -0
- package/iac/node_modules/acorn-walk/LICENSE +21 -0
- package/iac/node_modules/acorn-walk/README.md +126 -0
- package/iac/node_modules/ansi-regex/license +9 -0
- package/iac/node_modules/ansi-regex/readme.md +78 -0
- package/iac/node_modules/ansi-styles/license +9 -0
- package/iac/node_modules/ansi-styles/readme.md +144 -0
- package/iac/node_modules/arg/LICENSE.md +21 -0
- package/iac/node_modules/arg/README.md +280 -0
- package/iac/node_modules/at-least-node/LICENSE +6 -0
- package/iac/node_modules/at-least-node/README.md +25 -0
- package/iac/node_modules/aws-cdk/LICENSE +201 -0
- package/iac/node_modules/aws-cdk/README.md +742 -0
- package/iac/node_modules/aws-cdk/lib/init-templates/LICENSE +16 -0
- package/iac/node_modules/aws-cdk/lib/init-templates/app/csharp/README.md +14 -0
- package/iac/node_modules/aws-cdk/lib/init-templates/app/fsharp/README.md +18 -0
- package/iac/node_modules/aws-cdk/lib/init-templates/app/go/README.md +12 -0
- package/iac/node_modules/aws-cdk/lib/init-templates/app/java/README.md +18 -0
- package/iac/node_modules/aws-cdk/lib/init-templates/app/javascript/README.md +12 -0
- package/iac/node_modules/aws-cdk/lib/init-templates/app/python/README.template.md +58 -0
- package/iac/node_modules/aws-cdk/lib/init-templates/app/typescript/README.md +14 -0
- package/iac/node_modules/aws-cdk/lib/init-templates/lib/typescript/README.template.md +12 -0
- package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/csharp/README.template.md +19 -0
- package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/fsharp/README.template.md +20 -0
- package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/go/README.md +12 -0
- package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/java/README.template.md +19 -0
- package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/javascript/README.template.md +13 -0
- package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/python/README.template.md +65 -0
- package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/typescript/README.template.md +15 -0
- package/iac/node_modules/aws-cdk/test/integ/cli/README.md +48 -0
- package/iac/node_modules/aws-cdk/test/integ/cli-regression-patches/README.md +54 -0
- package/iac/node_modules/aws-cdk-lib/LICENSE +201 -0
- package/iac/node_modules/aws-cdk-lib/README.md +1119 -0
- package/iac/node_modules/aws-cdk-lib/alexa-ask/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/assertions/README.md +571 -0
- package/iac/node_modules/aws-cdk-lib/assets/README.md +4 -0
- package/iac/node_modules/aws-cdk-lib/aws-accessanalyzer/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-acmpca/README.md +59 -0
- package/iac/node_modules/aws-cdk-lib/aws-amazonmq/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-amplify/README.md +32 -0
- package/iac/node_modules/aws-cdk-lib/aws-amplifyuibuilder/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-apigateway/README.md +1335 -0
- package/iac/node_modules/aws-cdk-lib/aws-apigatewayv2/README.md +32 -0
- package/iac/node_modules/aws-cdk-lib/aws-appconfig/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-appflow/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-appintegrations/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-applicationautoscaling/README.md +246 -0
- package/iac/node_modules/aws-cdk-lib/aws-applicationinsights/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-appmesh/README.md +883 -0
- package/iac/node_modules/aws-cdk-lib/aws-apprunner/README.md +32 -0
- package/iac/node_modules/aws-cdk-lib/aws-appstream/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-appsync/README.md +32 -0
- package/iac/node_modules/aws-cdk-lib/aws-aps/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-athena/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-auditmanager/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-autoscaling/README.md +540 -0
- package/iac/node_modules/aws-cdk-lib/aws-autoscaling-common/README.md +8 -0
- package/iac/node_modules/aws-cdk-lib/aws-autoscaling-hooktargets/README.md +18 -0
- package/iac/node_modules/aws-cdk-lib/aws-autoscalingplans/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-backup/README.md +210 -0
- package/iac/node_modules/aws-cdk-lib/aws-batch/README.md +32 -0
- package/iac/node_modules/aws-cdk-lib/aws-billingconductor/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-budgets/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-cassandra/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-ce/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-certificatemanager/README.md +166 -0
- package/iac/node_modules/aws-cdk-lib/aws-certificatemanager/lambda-packages/dns_validated_certificate_handler/README.md +2 -0
- package/iac/node_modules/aws-cdk-lib/aws-certificatemanager/suffixes/README.txt +8 -0
- package/iac/node_modules/aws-cdk-lib/aws-chatbot/README.md +44 -0
- package/iac/node_modules/aws-cdk-lib/aws-cloud9/README.md +32 -0
- package/iac/node_modules/aws-cdk-lib/aws-cloudformation/README.md +4 -0
- package/iac/node_modules/aws-cdk-lib/aws-cloudfront/README.md +973 -0
- package/iac/node_modules/aws-cdk-lib/aws-cloudfront-origins/README.md +126 -0
- package/iac/node_modules/aws-cdk-lib/aws-cloudtrail/README.md +189 -0
- package/iac/node_modules/aws-cdk-lib/aws-cloudwatch/README.md +579 -0
- package/iac/node_modules/aws-cdk-lib/aws-cloudwatch-actions/README.md +43 -0
- package/iac/node_modules/aws-cdk-lib/aws-codeartifact/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-codebuild/README.md +759 -0
- package/iac/node_modules/aws-cdk-lib/aws-codecommit/README.md +85 -0
- package/iac/node_modules/aws-cdk-lib/aws-codedeploy/README.md +319 -0
- package/iac/node_modules/aws-cdk-lib/aws-codeguruprofiler/README.md +37 -0
- package/iac/node_modules/aws-cdk-lib/aws-codegurureviewer/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-codepipeline/README.md +481 -0
- package/iac/node_modules/aws-cdk-lib/aws-codepipeline-actions/README.md +1203 -0
- package/iac/node_modules/aws-cdk-lib/aws-codestar/README.md +32 -0
- package/iac/node_modules/aws-cdk-lib/aws-codestarconnections/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-codestarnotifications/README.md +68 -0
- package/iac/node_modules/aws-cdk-lib/aws-cognito/README.md +843 -0
- package/iac/node_modules/aws-cdk-lib/aws-config/README.md +218 -0
- package/iac/node_modules/aws-cdk-lib/aws-connect/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-controltower/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-cur/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-customerprofiles/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-databrew/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-datapipeline/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-datasync/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-dax/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-detective/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-devopsguru/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-directoryservice/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-dlm/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-dms/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-docdb/README.md +153 -0
- package/iac/node_modules/aws-cdk-lib/aws-dynamodb/README.md +200 -0
- package/iac/node_modules/aws-cdk-lib/aws-ec2/README.md +1514 -0
- package/iac/node_modules/aws-cdk-lib/aws-ecr/README.md +110 -0
- package/iac/node_modules/aws-cdk-lib/aws-ecr-assets/README.md +167 -0
- package/iac/node_modules/aws-cdk-lib/aws-ecs/README.md +1225 -0
- package/iac/node_modules/aws-cdk-lib/aws-ecs-patterns/README.md +980 -0
- package/iac/node_modules/aws-cdk-lib/aws-efs/README.md +154 -0
- package/iac/node_modules/aws-cdk-lib/aws-eks/README.md +1450 -0
- package/iac/node_modules/aws-cdk-lib/aws-elasticache/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-elasticbeanstalk/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-elasticloadbalancing/README.md +40 -0
- package/iac/node_modules/aws-cdk-lib/aws-elasticloadbalancingv2/README.md +569 -0
- package/iac/node_modules/aws-cdk-lib/aws-elasticloadbalancingv2-actions/README.md +68 -0
- package/iac/node_modules/aws-cdk-lib/aws-elasticloadbalancingv2-targets/README.md +4 -0
- package/iac/node_modules/aws-cdk-lib/aws-elasticsearch/README.md +441 -0
- package/iac/node_modules/aws-cdk-lib/aws-emr/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-emrcontainers/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-emrserverless/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-events/README.md +249 -0
- package/iac/node_modules/aws-cdk-lib/aws-events-targets/README.md +339 -0
- package/iac/node_modules/aws-cdk-lib/aws-eventschemas/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-evidently/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-finspace/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-fis/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-fms/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-forecast/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-frauddetector/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-fsx/README.md +200 -0
- package/iac/node_modules/aws-cdk-lib/aws-gamelift/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-globalaccelerator/README.md +182 -0
- package/iac/node_modules/aws-cdk-lib/aws-globalaccelerator-endpoints/README.md +10 -0
- package/iac/node_modules/aws-cdk-lib/aws-glue/README.md +32 -0
- package/iac/node_modules/aws-cdk-lib/aws-greengrass/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-greengrassv2/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-groundstation/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-guardduty/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-healthlake/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-iam/README.md +509 -0
- package/iac/node_modules/aws-cdk-lib/aws-imagebuilder/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-inspector/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-inspectorv2/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-iot/README.md +32 -0
- package/iac/node_modules/aws-cdk-lib/aws-iot1click/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-iotanalytics/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-iotcoredeviceadvisor/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-iotevents/README.md +32 -0
- package/iac/node_modules/aws-cdk-lib/aws-iotfleethub/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-iotsitewise/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-iotthingsgraph/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-iottwinmaker/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-iotwireless/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-ivs/README.md +32 -0
- package/iac/node_modules/aws-cdk-lib/aws-kafkaconnect/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-kendra/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-kinesis/README.md +188 -0
- package/iac/node_modules/aws-cdk-lib/aws-kinesisanalytics/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-kinesisanalyticsv2/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-kinesisfirehose/README.md +32 -0
- package/iac/node_modules/aws-cdk-lib/aws-kinesisvideo/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-kms/README.md +209 -0
- package/iac/node_modules/aws-cdk-lib/aws-lakeformation/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-lambda/README.md +985 -0
- package/iac/node_modules/aws-cdk-lib/aws-lambda-destinations/README.md +147 -0
- package/iac/node_modules/aws-cdk-lib/aws-lambda-event-sources/README.md +281 -0
- package/iac/node_modules/aws-cdk-lib/aws-lambda-nodejs/README.md +317 -0
- package/iac/node_modules/aws-cdk-lib/aws-lex/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-licensemanager/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-lightsail/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-location/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-logs/README.md +322 -0
- package/iac/node_modules/aws-cdk-lib/aws-logs-destinations/README.md +7 -0
- package/iac/node_modules/aws-cdk-lib/aws-lookoutequipment/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-lookoutmetrics/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-lookoutvision/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-m2/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-macie/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-managedblockchain/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-mediaconnect/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-mediaconvert/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-medialive/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-mediapackage/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-mediastore/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-mediatailor/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-memorydb/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-msk/README.md +32 -0
- package/iac/node_modules/aws-cdk-lib/aws-mwaa/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-neptune/README.md +32 -0
- package/iac/node_modules/aws-cdk-lib/aws-networkfirewall/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-networkmanager/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-nimblestudio/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-opensearchservice/README.md +378 -0
- package/iac/node_modules/aws-cdk-lib/aws-opsworks/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-opsworkscm/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-panorama/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-personalize/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-pinpoint/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-pinpointemail/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-qldb/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-quicksight/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-ram/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-rds/README.md +704 -0
- package/iac/node_modules/aws-cdk-lib/aws-redshift/README.md +32 -0
- package/iac/node_modules/aws-cdk-lib/aws-redshiftserverless/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-refactorspaces/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-rekognition/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-resiliencehub/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-resourcegroups/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-robomaker/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-route53/README.md +281 -0
- package/iac/node_modules/aws-cdk-lib/aws-route53-patterns/README.md +45 -0
- package/iac/node_modules/aws-cdk-lib/aws-route53-targets/README.md +181 -0
- package/iac/node_modules/aws-cdk-lib/aws-route53recoverycontrol/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-route53recoveryreadiness/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-route53resolver/README.md +32 -0
- package/iac/node_modules/aws-cdk-lib/aws-rum/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-s3/README.md +581 -0
- package/iac/node_modules/aws-cdk-lib/aws-s3-assets/README.md +179 -0
- package/iac/node_modules/aws-cdk-lib/aws-s3-deployment/README.md +349 -0
- package/iac/node_modules/aws-cdk-lib/aws-s3-notifications/README.md +46 -0
- package/iac/node_modules/aws-cdk-lib/aws-s3objectlambda/README.md +32 -0
- package/iac/node_modules/aws-cdk-lib/aws-s3outposts/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-sagemaker/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-sam/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-sdb/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-secretsmanager/README.md +285 -0
- package/iac/node_modules/aws-cdk-lib/aws-securityhub/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-servicecatalog/README.md +491 -0
- package/iac/node_modules/aws-cdk-lib/aws-servicecatalogappregistry/README.md +32 -0
- package/iac/node_modules/aws-cdk-lib/aws-servicediscovery/README.md +45 -0
- package/iac/node_modules/aws-cdk-lib/aws-ses/README.md +194 -0
- package/iac/node_modules/aws-cdk-lib/aws-ses-actions/README.md +16 -0
- package/iac/node_modules/aws-cdk-lib/aws-signer/README.md +41 -0
- package/iac/node_modules/aws-cdk-lib/aws-sns/README.md +184 -0
- package/iac/node_modules/aws-cdk-lib/aws-sns-subscriptions/README.md +120 -0
- package/iac/node_modules/aws-cdk-lib/aws-sqs/README.md +57 -0
- package/iac/node_modules/aws-cdk-lib/aws-ssm/README.md +99 -0
- package/iac/node_modules/aws-cdk-lib/aws-ssmcontacts/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-ssmincidents/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-sso/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-stepfunctions/README.md +884 -0
- package/iac/node_modules/aws-cdk-lib/aws-stepfunctions-tasks/README.md +1288 -0
- package/iac/node_modules/aws-cdk-lib/aws-supportapp/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-synthetics/README.md +32 -0
- package/iac/node_modules/aws-cdk-lib/aws-timestream/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-transfer/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-voiceid/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-waf/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-wafregional/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-wafv2/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-wisdom/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-workspaces/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/aws-xray/README.md +27 -0
- package/iac/node_modules/aws-cdk-lib/cloud-assembly-schema/README.md +55 -0
- package/iac/node_modules/aws-cdk-lib/cloud-assembly-schema/schema/README.md +5 -0
- package/iac/node_modules/aws-cdk-lib/cloudformation-include/README.md +466 -0
- package/iac/node_modules/aws-cdk-lib/core/README.md +1078 -0
- package/iac/node_modules/aws-cdk-lib/custom-resources/README.md +624 -0
- package/iac/node_modules/aws-cdk-lib/cx-api/README.md +98 -0
- package/iac/node_modules/aws-cdk-lib/lambda-layer-awscli/README.md +19 -0
- package/iac/node_modules/aws-cdk-lib/lambda-layer-kubectl/README.md +20 -0
- package/iac/node_modules/aws-cdk-lib/lambda-layer-node-proxy-agent/README.md +18 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/@balena/dockerignore/LICENSE.md +206 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/@balena/dockerignore/README.md +261 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/at-least-node/LICENSE +6 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/at-least-node/README.md +25 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/balanced-match/LICENSE.md +21 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/balanced-match/README.md +97 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/brace-expansion/LICENSE +21 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/brace-expansion/README.md +129 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/case/LICENSE +22 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/case/README.md +139 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/case/dist/Case.min.js.map +1 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/case/dist/Case.plus.min.js.map +1 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/concat-map/LICENSE +18 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/concat-map/README.markdown +62 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/fs-extra/LICENSE +15 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/fs-extra/README.md +264 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/graceful-fs/LICENSE +15 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/graceful-fs/README.md +143 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/ignore/README.md +412 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/jsonfile/LICENSE +15 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/jsonfile/README.md +230 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/jsonschema/LICENSE +21 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/jsonschema/README.md +421 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/lru-cache/LICENSE +15 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/lru-cache/README.md +166 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/minimatch/LICENSE +15 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/minimatch/README.md +230 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/punycode/README.md +122 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/semver/LICENSE +15 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/semver/README.md +568 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/universalify/LICENSE +20 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/universalify/README.md +76 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/yallist/LICENSE +15 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/yallist/README.md +204 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/yaml/LICENSE +13 -0
- package/iac/node_modules/aws-cdk-lib/node_modules/yaml/README.md +127 -0
- package/iac/node_modules/aws-cdk-lib/pipelines/README.md +1573 -0
- package/iac/node_modules/aws-cdk-lib/region-info/README.md +84 -0
- package/iac/node_modules/aws-cdk-lib/triggers/README.md +86 -0
- package/iac/node_modules/balanced-match/LICENSE.md +21 -0
- package/iac/node_modules/balanced-match/README.md +97 -0
- package/iac/node_modules/brace-expansion/LICENSE +21 -0
- package/iac/node_modules/brace-expansion/README.md +129 -0
- package/iac/node_modules/buffer-from/LICENSE +21 -0
- package/iac/node_modules/buffer-from/readme.md +69 -0
- package/iac/node_modules/case/LICENSE +22 -0
- package/iac/node_modules/case/README.md +139 -0
- package/iac/node_modules/case/dist/Case.min.js.map +1 -0
- package/iac/node_modules/case/dist/Case.plus.min.js.map +1 -0
- package/iac/node_modules/chalk/license +9 -0
- package/iac/node_modules/chalk/node_modules/ansi-styles/license +9 -0
- package/iac/node_modules/chalk/node_modules/ansi-styles/readme.md +152 -0
- package/iac/node_modules/chalk/readme.md +341 -0
- package/iac/node_modules/color-convert/LICENSE +21 -0
- package/iac/node_modules/color-convert/README.md +68 -0
- package/iac/node_modules/color-name/LICENSE +8 -0
- package/iac/node_modules/color-name/README.md +11 -0
- package/iac/node_modules/concat-map/LICENSE +18 -0
- package/iac/node_modules/concat-map/README.markdown +62 -0
- package/iac/node_modules/constructs/LICENSE +202 -0
- package/iac/node_modules/constructs/README.md +28 -0
- package/iac/node_modules/create-require/LICENSE +25 -0
- package/iac/node_modules/create-require/README.md +46 -0
- package/iac/node_modules/diff/LICENSE +31 -0
- package/iac/node_modules/diff/README.md +207 -0
- package/iac/node_modules/diff-sequences/LICENSE +21 -0
- package/iac/node_modules/diff-sequences/README.md +404 -0
- package/iac/node_modules/fs-extra/LICENSE +15 -0
- package/iac/node_modules/fs-extra/README.md +264 -0
- package/iac/node_modules/fsevents/LICENSE +22 -0
- package/iac/node_modules/fsevents/README.md +83 -0
- package/iac/node_modules/graceful-fs/LICENSE +15 -0
- package/iac/node_modules/graceful-fs/README.md +143 -0
- package/iac/node_modules/has-flag/license +9 -0
- package/iac/node_modules/has-flag/readme.md +89 -0
- package/iac/node_modules/ignore/README.md +412 -0
- package/iac/node_modules/jest-diff/LICENSE +21 -0
- package/iac/node_modules/jest-diff/README.md +671 -0
- package/iac/node_modules/jest-get-type/LICENSE +21 -0
- package/iac/node_modules/jest-matcher-utils/LICENSE +21 -0
- package/iac/node_modules/jest-matcher-utils/README.md +24 -0
- package/iac/node_modules/jsonfile/LICENSE +15 -0
- package/iac/node_modules/jsonfile/README.md +230 -0
- package/iac/node_modules/jsonschema/LICENSE +21 -0
- package/iac/node_modules/jsonschema/README.md +421 -0
- package/iac/node_modules/lru-cache/LICENSE +15 -0
- package/iac/node_modules/lru-cache/README.md +166 -0
- package/iac/node_modules/make-error/LICENSE +5 -0
- package/iac/node_modules/make-error/README.md +112 -0
- package/iac/node_modules/minimatch/LICENSE +15 -0
- package/iac/node_modules/minimatch/README.md +230 -0
- package/iac/node_modules/pretty-format/LICENSE +21 -0
- package/iac/node_modules/pretty-format/README.md +458 -0
- package/iac/node_modules/punycode/README.md +122 -0
- package/iac/node_modules/react-is/LICENSE +21 -0
- package/iac/node_modules/react-is/README.md +104 -0
- package/iac/node_modules/semver/LICENSE +15 -0
- package/iac/node_modules/semver/README.md +568 -0
- package/iac/node_modules/source-map/LICENSE +28 -0
- package/iac/node_modules/source-map/README.md +742 -0
- package/iac/node_modules/source-map/dist/source-map.min.js.map +1 -0
- package/iac/node_modules/source-map-support/LICENSE.md +21 -0
- package/iac/node_modules/source-map-support/README.md +284 -0
- package/iac/node_modules/supports-color/license +9 -0
- package/iac/node_modules/supports-color/readme.md +76 -0
- package/iac/node_modules/ts-node/LICENSE +21 -0
- package/iac/node_modules/ts-node/README.md +1442 -0
- package/iac/node_modules/ts-node/dist/bin-cwd.js.map +1 -0
- package/iac/node_modules/ts-node/dist/bin-esm.js.map +1 -0
- package/iac/node_modules/ts-node/dist/bin-script-deprecated.js.map +1 -0
- package/iac/node_modules/ts-node/dist/bin-script.js.map +1 -0
- package/iac/node_modules/ts-node/dist/bin-transpile.js.map +1 -0
- package/iac/node_modules/ts-node/dist/bin.js.map +1 -0
- package/iac/node_modules/ts-node/dist/child/argv-payload.js.map +1 -0
- package/iac/node_modules/ts-node/dist/child/child-entrypoint.js.map +1 -0
- package/iac/node_modules/ts-node/dist/child/child-loader.js.map +1 -0
- package/iac/node_modules/ts-node/dist/child/child-require.js.map +1 -0
- package/iac/node_modules/ts-node/dist/child/spawn-child.js.map +1 -0
- package/iac/node_modules/ts-node/dist/cjs-resolve-hooks.js.map +1 -0
- package/iac/node_modules/ts-node/dist/configuration.js.map +1 -0
- package/iac/node_modules/ts-node/dist/esm.js.map +1 -0
- package/iac/node_modules/ts-node/dist/file-extensions.js.map +1 -0
- package/iac/node_modules/ts-node/dist/index.js.map +1 -0
- package/iac/node_modules/ts-node/dist/module-type-classifier.js.map +1 -0
- package/iac/node_modules/ts-node/dist/node-module-type-classifier.js.map +1 -0
- package/iac/node_modules/ts-node/dist/repl.js.map +1 -0
- package/iac/node_modules/ts-node/dist/resolver-functions.js.map +1 -0
- package/iac/node_modules/ts-node/dist/transpilers/swc.js.map +1 -0
- package/iac/node_modules/ts-node/dist/transpilers/types.js.map +1 -0
- package/iac/node_modules/ts-node/dist/ts-compiler-types.js.map +1 -0
- package/iac/node_modules/ts-node/dist/ts-internals.js.map +1 -0
- package/iac/node_modules/ts-node/dist/ts-transpile-module.js.map +1 -0
- package/iac/node_modules/ts-node/dist/tsconfig-schema.js.map +1 -0
- package/iac/node_modules/ts-node/dist/tsconfigs.js.map +1 -0
- package/iac/node_modules/ts-node/dist/util.js.map +1 -0
- package/iac/node_modules/ts-node/dist-raw/README.md +36 -0
- package/iac/node_modules/typescript/LICENSE.txt +55 -0
- package/iac/node_modules/typescript/README.md +104 -0
- package/iac/node_modules/typescript/lib/README.md +5 -0
- package/iac/node_modules/universalify/LICENSE +20 -0
- package/iac/node_modules/universalify/README.md +76 -0
- package/iac/node_modules/v8-compile-cache-lib/LICENSE +21 -0
- package/iac/node_modules/v8-compile-cache-lib/README.md +60 -0
- package/iac/node_modules/yallist/LICENSE +15 -0
- package/iac/node_modules/yallist/README.md +204 -0
- package/iac/node_modules/yaml/LICENSE +13 -0
- package/iac/node_modules/yaml/README.md +127 -0
- package/iac/node_modules/yn/license +9 -0
- package/iac/node_modules/yn/readme.md +83 -0
- package/index.d.ts +1 -0
- package/index.js +18 -0
- package/index.js.map +1 -0
- package/package.json +26 -5
- package/react/Edit.d.ts +3 -0
- package/react/Edit.js +10 -0
- package/react/Edit.js.map +1 -0
- package/react/index.d.ts +1 -0
- package/react/index.js +18 -0
- package/react/index.js.map +1 -0
- package/src/material-symbols.d.ts +4 -0
|
@@ -0,0 +1,704 @@
|
|
|
1
|
+
# Amazon Relational Database Service Construct Library
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
```ts nofixture
|
|
6
|
+
import * as rds from 'aws-cdk-lib/aws-rds';
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Starting a clustered database
|
|
10
|
+
|
|
11
|
+
To set up a clustered database (like Aurora), define a `DatabaseCluster`. You must
|
|
12
|
+
always launch a database in a VPC. Use the `vpcSubnets` attribute to control whether
|
|
13
|
+
your instances will be launched privately or publicly:
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
declare const vpc: ec2.Vpc;
|
|
17
|
+
const cluster = new rds.DatabaseCluster(this, 'Database', {
|
|
18
|
+
engine: rds.DatabaseClusterEngine.auroraMysql({ version: rds.AuroraMysqlEngineVersion.VER_2_08_1 }),
|
|
19
|
+
credentials: rds.Credentials.fromGeneratedSecret('clusteradmin'), // Optional - will default to 'admin' username and generated password
|
|
20
|
+
instanceProps: {
|
|
21
|
+
// optional , defaults to t3.medium
|
|
22
|
+
instanceType: ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE2, ec2.InstanceSize.SMALL),
|
|
23
|
+
vpcSubnets: {
|
|
24
|
+
subnetType: ec2.SubnetType.PRIVATE_WITH_EGRESS,
|
|
25
|
+
},
|
|
26
|
+
vpc,
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
If there isn't a constant for the exact version you want to use,
|
|
32
|
+
all of the `Version` classes have a static `of` method that can be used to create an arbitrary version.
|
|
33
|
+
|
|
34
|
+
```ts
|
|
35
|
+
const customEngineVersion = rds.AuroraMysqlEngineVersion.of('5.7.mysql_aurora.2.08.1');
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
By default, the master password will be generated and stored in AWS Secrets Manager with auto-generated description.
|
|
39
|
+
|
|
40
|
+
Your cluster will be empty by default. To add a default database upon construction, specify the
|
|
41
|
+
`defaultDatabaseName` attribute.
|
|
42
|
+
|
|
43
|
+
Use `DatabaseClusterFromSnapshot` to create a cluster from a snapshot:
|
|
44
|
+
|
|
45
|
+
```ts
|
|
46
|
+
declare const vpc: ec2.Vpc;
|
|
47
|
+
new rds.DatabaseClusterFromSnapshot(this, 'Database', {
|
|
48
|
+
engine: rds.DatabaseClusterEngine.aurora({ version: rds.AuroraEngineVersion.VER_1_22_2 }),
|
|
49
|
+
instanceProps: {
|
|
50
|
+
vpc,
|
|
51
|
+
},
|
|
52
|
+
snapshotIdentifier: 'mySnapshot',
|
|
53
|
+
});
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Updating the database instances in a cluster
|
|
57
|
+
|
|
58
|
+
Database cluster instances may be updated in bulk or on a rolling basis.
|
|
59
|
+
|
|
60
|
+
An update to all instances in a cluster may cause significant downtime. To reduce the downtime, set the `instanceUpdateBehavior` property in `DatabaseClusterBaseProps` to `InstanceUpdateBehavior.ROLLING`. This adds a dependency between each instance so the update is performed on only one instance at a time.
|
|
61
|
+
|
|
62
|
+
Use `InstanceUpdateBehavior.BULK` to update all instances at once.
|
|
63
|
+
|
|
64
|
+
```ts
|
|
65
|
+
declare const vpc: ec2.Vpc;
|
|
66
|
+
const cluster = new rds.DatabaseCluster(this, 'Database', {
|
|
67
|
+
engine: rds.DatabaseClusterEngine.auroraMysql({ version: rds.AuroraMysqlEngineVersion.VER_3_01_0 }),
|
|
68
|
+
instances: 2,
|
|
69
|
+
instanceProps: {
|
|
70
|
+
instanceType: ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE3, ec2.InstanceSize.SMALL),
|
|
71
|
+
vpc,
|
|
72
|
+
},
|
|
73
|
+
instanceUpdateBehaviour: rds.InstanceUpdateBehaviour.ROLLING, // Optional - defaults to rds.InstanceUpdateBehaviour.BULK
|
|
74
|
+
});
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## Starting an instance database
|
|
78
|
+
|
|
79
|
+
To set up an instance database, define a `DatabaseInstance`. You must
|
|
80
|
+
always launch a database in a VPC. Use the `vpcSubnets` attribute to control whether
|
|
81
|
+
your instances will be launched privately or publicly:
|
|
82
|
+
|
|
83
|
+
```ts
|
|
84
|
+
declare const vpc: ec2.Vpc;
|
|
85
|
+
const instance = new rds.DatabaseInstance(this, 'Instance', {
|
|
86
|
+
engine: rds.DatabaseInstanceEngine.oracleSe2({ version: rds.OracleEngineVersion.VER_19_0_0_0_2020_04_R1 }),
|
|
87
|
+
// optional, defaults to m5.large
|
|
88
|
+
instanceType: ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE3, ec2.InstanceSize.SMALL),
|
|
89
|
+
credentials: rds.Credentials.fromGeneratedSecret('syscdk'), // Optional - will default to 'admin' username and generated password
|
|
90
|
+
vpc,
|
|
91
|
+
vpcSubnets: {
|
|
92
|
+
subnetType: ec2.SubnetType.PRIVATE_WITH_EGRESS,
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
If there isn't a constant for the exact engine version you want to use,
|
|
98
|
+
all of the `Version` classes have a static `of` method that can be used to create an arbitrary version.
|
|
99
|
+
|
|
100
|
+
```ts
|
|
101
|
+
const customEngineVersion = rds.OracleEngineVersion.of('19.0.0.0.ru-2020-04.rur-2020-04.r1', '19');
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
By default, the master password will be generated and stored in AWS Secrets Manager.
|
|
105
|
+
|
|
106
|
+
To use the storage auto scaling option of RDS you can specify the maximum allocated storage.
|
|
107
|
+
This is the upper limit to which RDS can automatically scale the storage. More info can be found
|
|
108
|
+
[here](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIOPS.StorageTypes.html#USER_PIOPS.Autoscaling)
|
|
109
|
+
Example for max storage configuration:
|
|
110
|
+
|
|
111
|
+
```ts
|
|
112
|
+
declare const vpc: ec2.Vpc;
|
|
113
|
+
const instance = new rds.DatabaseInstance(this, 'Instance', {
|
|
114
|
+
engine: rds.DatabaseInstanceEngine.postgres({ version: rds.PostgresEngineVersion.VER_12_3 }),
|
|
115
|
+
// optional, defaults to m5.large
|
|
116
|
+
instanceType: ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE2, ec2.InstanceSize.SMALL),
|
|
117
|
+
vpc,
|
|
118
|
+
maxAllocatedStorage: 200,
|
|
119
|
+
});
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
Use `DatabaseInstanceFromSnapshot` and `DatabaseInstanceReadReplica` to create an instance from snapshot or
|
|
123
|
+
a source database respectively:
|
|
124
|
+
|
|
125
|
+
```ts
|
|
126
|
+
declare const vpc: ec2.Vpc;
|
|
127
|
+
new rds.DatabaseInstanceFromSnapshot(this, 'Instance', {
|
|
128
|
+
snapshotIdentifier: 'my-snapshot',
|
|
129
|
+
engine: rds.DatabaseInstanceEngine.postgres({ version: rds.PostgresEngineVersion.VER_12_3 }),
|
|
130
|
+
// optional, defaults to m5.large
|
|
131
|
+
instanceType: ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE2, ec2.InstanceSize.LARGE),
|
|
132
|
+
vpc,
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
declare const sourceInstance: rds.DatabaseInstance;
|
|
136
|
+
new rds.DatabaseInstanceReadReplica(this, 'ReadReplica', {
|
|
137
|
+
sourceDatabaseInstance: sourceInstance,
|
|
138
|
+
instanceType: ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE2, ec2.InstanceSize.LARGE),
|
|
139
|
+
vpc,
|
|
140
|
+
});
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
Automatic backups of read replica instances are only supported for MySQL and MariaDB. By default,
|
|
144
|
+
automatic backups are disabled for read replicas and can only be enabled (using `backupRetention`)
|
|
145
|
+
if also enabled on the source instance.
|
|
146
|
+
|
|
147
|
+
Creating a "production" Oracle database instance with option and parameter groups:
|
|
148
|
+
|
|
149
|
+
[example of setting up a production oracle instance](test/integ.instance.lit.ts)
|
|
150
|
+
|
|
151
|
+
## Setting Public Accessibility
|
|
152
|
+
|
|
153
|
+
You can set public accessibility for the database instance or cluster using the `publiclyAccessible` property.
|
|
154
|
+
If you specify `true`, it creates an instance with a publicly resolvable DNS name, which resolves to a public IP address.
|
|
155
|
+
If you specify `false`, it creates an internal instance with a DNS name that resolves to a private IP address.
|
|
156
|
+
The default value depends on `vpcSubnets`.
|
|
157
|
+
It will be `true` if `vpcSubnets` is `subnetType: SubnetType.PUBLIC`, `false` otherwise.
|
|
158
|
+
|
|
159
|
+
```ts
|
|
160
|
+
declare const vpc: ec2.Vpc;
|
|
161
|
+
// Setting public accessibility for DB instance
|
|
162
|
+
new rds.DatabaseInstance(this, 'Instance', {
|
|
163
|
+
engine: rds.DatabaseInstanceEngine.mysql({
|
|
164
|
+
version: rds.MysqlEngineVersion.VER_8_0_19,
|
|
165
|
+
}),
|
|
166
|
+
vpc,
|
|
167
|
+
vpcSubnets: {
|
|
168
|
+
subnetType: ec2.SubnetType.PRIVATE_WITH_EGRESS,
|
|
169
|
+
},
|
|
170
|
+
publiclyAccessible: true,
|
|
171
|
+
});
|
|
172
|
+
|
|
173
|
+
// Setting public accessibility for DB cluster
|
|
174
|
+
new rds.DatabaseCluster(this, 'DatabaseCluster', {
|
|
175
|
+
engine: rds.DatabaseClusterEngine.AURORA,
|
|
176
|
+
instanceProps: {
|
|
177
|
+
vpc,
|
|
178
|
+
vpcSubnets: {
|
|
179
|
+
subnetType: ec2.SubnetType.PRIVATE_WITH_EGRESS,
|
|
180
|
+
},
|
|
181
|
+
publiclyAccessible: true,
|
|
182
|
+
},
|
|
183
|
+
});
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
## Instance events
|
|
187
|
+
|
|
188
|
+
To define Amazon CloudWatch event rules for database instances, use the `onEvent`
|
|
189
|
+
method:
|
|
190
|
+
|
|
191
|
+
```ts
|
|
192
|
+
declare const instance: rds.DatabaseInstance;
|
|
193
|
+
declare const fn: lambda.Function;
|
|
194
|
+
const rule = instance.onEvent('InstanceEvent', { target: new targets.LambdaFunction(fn) });
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
## Login credentials
|
|
198
|
+
|
|
199
|
+
By default, database instances and clusters (with the exception of `DatabaseInstanceFromSnapshot` and `ServerlessClusterFromSnapshot`) will have `admin` user with an auto-generated password.
|
|
200
|
+
An alternative username (and password) may be specified for the admin user instead of the default.
|
|
201
|
+
|
|
202
|
+
The following examples use a `DatabaseInstance`, but the same usage is applicable to `DatabaseCluster`.
|
|
203
|
+
|
|
204
|
+
```ts
|
|
205
|
+
declare const vpc: ec2.Vpc;
|
|
206
|
+
const engine = rds.DatabaseInstanceEngine.postgres({ version: rds.PostgresEngineVersion.VER_12_3 });
|
|
207
|
+
new rds.DatabaseInstance(this, 'InstanceWithUsername', {
|
|
208
|
+
engine,
|
|
209
|
+
vpc,
|
|
210
|
+
credentials: rds.Credentials.fromGeneratedSecret('postgres'), // Creates an admin user of postgres with a generated password
|
|
211
|
+
});
|
|
212
|
+
|
|
213
|
+
new rds.DatabaseInstance(this, 'InstanceWithUsernameAndPassword', {
|
|
214
|
+
engine,
|
|
215
|
+
vpc,
|
|
216
|
+
credentials: rds.Credentials.fromPassword('postgres', SecretValue.ssmSecure('/dbPassword', '1')), // Use password from SSM
|
|
217
|
+
});
|
|
218
|
+
|
|
219
|
+
const mySecret = secretsmanager.Secret.fromSecretName(this, 'DBSecret', 'myDBLoginInfo');
|
|
220
|
+
new rds.DatabaseInstance(this, 'InstanceWithSecretLogin', {
|
|
221
|
+
engine,
|
|
222
|
+
vpc,
|
|
223
|
+
credentials: rds.Credentials.fromSecret(mySecret), // Get both username and password from existing secret
|
|
224
|
+
});
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
Secrets generated by `fromGeneratedSecret()` can be customized:
|
|
228
|
+
|
|
229
|
+
```ts
|
|
230
|
+
declare const vpc: ec2.Vpc;
|
|
231
|
+
const engine = rds.DatabaseInstanceEngine.postgres({ version: rds.PostgresEngineVersion.VER_12_3 });
|
|
232
|
+
const myKey = new kms.Key(this, 'MyKey');
|
|
233
|
+
|
|
234
|
+
new rds.DatabaseInstance(this, 'InstanceWithCustomizedSecret', {
|
|
235
|
+
engine,
|
|
236
|
+
vpc,
|
|
237
|
+
credentials: rds.Credentials.fromGeneratedSecret('postgres', {
|
|
238
|
+
secretName: 'my-cool-name',
|
|
239
|
+
encryptionKey: myKey,
|
|
240
|
+
excludeCharacters: '!&*^#@()',
|
|
241
|
+
replicaRegions: [{ region: 'eu-west-1' }, { region: 'eu-west-2' }],
|
|
242
|
+
}),
|
|
243
|
+
});
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
### Snapshot credentials
|
|
247
|
+
|
|
248
|
+
As noted above, Databases created with `DatabaseInstanceFromSnapshot` or `ServerlessClusterFromSnapshot` will not create user and auto-generated password by default because it's not possible to change the master username for a snapshot. Instead, they will use the existing username and password from the snapshot. You can still generate a new password - to generate a secret similarly to the other constructs, pass in credentials with `fromGeneratedSecret()` or `fromGeneratedPassword()`.
|
|
249
|
+
|
|
250
|
+
```ts
|
|
251
|
+
declare const vpc: ec2.Vpc;
|
|
252
|
+
const engine = rds.DatabaseInstanceEngine.postgres({ version: rds.PostgresEngineVersion.VER_12_3 });
|
|
253
|
+
const myKey = new kms.Key(this, 'MyKey');
|
|
254
|
+
|
|
255
|
+
new rds.DatabaseInstanceFromSnapshot(this, 'InstanceFromSnapshotWithCustomizedSecret', {
|
|
256
|
+
engine,
|
|
257
|
+
vpc,
|
|
258
|
+
snapshotIdentifier: 'mySnapshot',
|
|
259
|
+
credentials: rds.SnapshotCredentials.fromGeneratedSecret('username', {
|
|
260
|
+
encryptionKey: myKey,
|
|
261
|
+
excludeCharacters: '!&*^#@()',
|
|
262
|
+
replicaRegions: [{ region: 'eu-west-1' }, { region: 'eu-west-2' }],
|
|
263
|
+
}),
|
|
264
|
+
});
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
## Connecting
|
|
268
|
+
|
|
269
|
+
To control who can access the cluster or instance, use the `.connections` attribute. RDS databases have
|
|
270
|
+
a default port, so you don't need to specify the port:
|
|
271
|
+
|
|
272
|
+
```ts
|
|
273
|
+
declare const cluster: rds.DatabaseCluster;
|
|
274
|
+
cluster.connections.allowFromAnyIpv4(ec2.Port.allTraffic(), 'Open to the world');
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
The endpoints to access your database cluster will be available as the `.clusterEndpoint` and `.readerEndpoint`
|
|
278
|
+
attributes:
|
|
279
|
+
|
|
280
|
+
```ts
|
|
281
|
+
declare const cluster: rds.DatabaseCluster;
|
|
282
|
+
const writeAddress = cluster.clusterEndpoint.socketAddress; // "HOSTNAME:PORT"
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
For an instance database:
|
|
286
|
+
|
|
287
|
+
```ts
|
|
288
|
+
declare const instance: rds.DatabaseInstance;
|
|
289
|
+
const address = instance.instanceEndpoint.socketAddress; // "HOSTNAME:PORT"
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
## Rotating credentials
|
|
293
|
+
|
|
294
|
+
When the master password is generated and stored in AWS Secrets Manager, it can be rotated automatically:
|
|
295
|
+
|
|
296
|
+
```ts
|
|
297
|
+
import * as cdk from 'aws-cdk-lib';
|
|
298
|
+
|
|
299
|
+
declare const instance: rds.DatabaseInstance;
|
|
300
|
+
instance.addRotationSingleUser({
|
|
301
|
+
automaticallyAfter: cdk.Duration.days(7), // defaults to 30 days
|
|
302
|
+
excludeCharacters: '!@#$%^&*', // defaults to the set " %+~`#$&*()|[]{}:;<>?!'/@\"\\"
|
|
303
|
+
});
|
|
304
|
+
```
|
|
305
|
+
|
|
306
|
+
[example of setting up master password rotation for a cluster](test/integ.cluster-rotation.lit.ts)
|
|
307
|
+
|
|
308
|
+
The multi user rotation scheme is also available:
|
|
309
|
+
|
|
310
|
+
```ts
|
|
311
|
+
declare const instance: rds.DatabaseInstance;
|
|
312
|
+
declare const myImportedSecret: rds.DatabaseSecret;
|
|
313
|
+
instance.addRotationMultiUser('MyUser', {
|
|
314
|
+
secret: myImportedSecret, // This secret must have the `masterarn` key
|
|
315
|
+
});
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
It's also possible to create user credentials together with the instance/cluster and add rotation:
|
|
319
|
+
|
|
320
|
+
```ts
|
|
321
|
+
declare const instance: rds.DatabaseInstance;
|
|
322
|
+
const myUserSecret = new rds.DatabaseSecret(this, 'MyUserSecret', {
|
|
323
|
+
username: 'myuser',
|
|
324
|
+
secretName: 'my-user-secret', // optional, defaults to a CloudFormation-generated name
|
|
325
|
+
masterSecret: instance.secret,
|
|
326
|
+
excludeCharacters: '{}[]()\'"/\\', // defaults to the set " %+~`#$&*()|[]{}:;<>?!'/@\"\\"
|
|
327
|
+
});
|
|
328
|
+
const myUserSecretAttached = myUserSecret.attach(instance); // Adds DB connections information in the secret
|
|
329
|
+
|
|
330
|
+
instance.addRotationMultiUser('MyUser', { // Add rotation using the multi user scheme
|
|
331
|
+
secret: myUserSecretAttached,
|
|
332
|
+
});
|
|
333
|
+
```
|
|
334
|
+
|
|
335
|
+
**Note**: This user must be created manually in the database using the master credentials.
|
|
336
|
+
The rotation will start as soon as this user exists.
|
|
337
|
+
|
|
338
|
+
Access to the Secrets Manager API is required for the secret rotation. This can be achieved either with
|
|
339
|
+
internet connectivity (through NAT) or with a VPC interface endpoint. By default, the rotation Lambda function
|
|
340
|
+
is deployed in the same subnets as the instance/cluster. If access to the Secrets Manager API is not possible from
|
|
341
|
+
those subnets or using the default API endpoint, use the `vpcSubnets` and/or `endpoint` options:
|
|
342
|
+
|
|
343
|
+
```ts
|
|
344
|
+
declare const instance: rds.DatabaseInstance;
|
|
345
|
+
declare const myEndpoint: ec2.InterfaceVpcEndpoint;
|
|
346
|
+
|
|
347
|
+
instance.addRotationSingleUser({
|
|
348
|
+
vpcSubnets: { subnetType: ec2.SubnetType.PRIVATE_WITH_EGRESS }, // Place rotation Lambda in private subnets
|
|
349
|
+
endpoint: myEndpoint, // Use VPC interface endpoint
|
|
350
|
+
});
|
|
351
|
+
```
|
|
352
|
+
|
|
353
|
+
See also [@aws-cdk/aws-secretsmanager](https://github.com/aws/aws-cdk/blob/main/packages/%40aws-cdk/aws-secretsmanager/README.md) for credentials rotation of existing clusters/instances.
|
|
354
|
+
|
|
355
|
+
## IAM Authentication
|
|
356
|
+
|
|
357
|
+
You can also authenticate to a database instance using AWS Identity and Access Management (IAM) database authentication;
|
|
358
|
+
See <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html> for more information
|
|
359
|
+
and a list of supported versions and limitations.
|
|
360
|
+
|
|
361
|
+
**Note**: `grantConnect()` does not currently work - see [this GitHub issue](https://github.com/aws/aws-cdk/issues/11851).
|
|
362
|
+
|
|
363
|
+
The following example shows enabling IAM authentication for a database instance and granting connection access to an IAM role.
|
|
364
|
+
|
|
365
|
+
```ts
|
|
366
|
+
declare const vpc: ec2.Vpc;
|
|
367
|
+
const instance = new rds.DatabaseInstance(this, 'Instance', {
|
|
368
|
+
engine: rds.DatabaseInstanceEngine.mysql({ version: rds.MysqlEngineVersion.VER_8_0_19 }),
|
|
369
|
+
vpc,
|
|
370
|
+
iamAuthentication: true, // Optional - will be automatically set if you call grantConnect().
|
|
371
|
+
});
|
|
372
|
+
const role = new iam.Role(this, 'DBRole', { assumedBy: new iam.AccountPrincipal(this.account) });
|
|
373
|
+
instance.grantConnect(role); // Grant the role connection access to the DB.
|
|
374
|
+
```
|
|
375
|
+
|
|
376
|
+
The following example shows granting connection access for RDS Proxy to an IAM role.
|
|
377
|
+
|
|
378
|
+
```ts
|
|
379
|
+
declare const vpc: ec2.Vpc;
|
|
380
|
+
const cluster = new rds.DatabaseCluster(this, 'Database', {
|
|
381
|
+
engine: rds.DatabaseClusterEngine.AURORA,
|
|
382
|
+
instanceProps: { vpc },
|
|
383
|
+
});
|
|
384
|
+
|
|
385
|
+
const proxy = new rds.DatabaseProxy(this, 'Proxy', {
|
|
386
|
+
proxyTarget: rds.ProxyTarget.fromCluster(cluster),
|
|
387
|
+
secrets: [cluster.secret!],
|
|
388
|
+
vpc,
|
|
389
|
+
});
|
|
390
|
+
|
|
391
|
+
const role = new iam.Role(this, 'DBProxyRole', { assumedBy: new iam.AccountPrincipal(this.account) });
|
|
392
|
+
proxy.grantConnect(role, 'admin'); // Grant the role connection access to the DB Proxy for database user 'admin'.
|
|
393
|
+
```
|
|
394
|
+
|
|
395
|
+
**Note**: In addition to the setup above, a database user will need to be created to support IAM auth.
|
|
396
|
+
See <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.DBAccounts.html> for setup instructions.
|
|
397
|
+
|
|
398
|
+
## Kerberos Authentication
|
|
399
|
+
|
|
400
|
+
You can also authenticate using Kerberos to a database instance using AWS Managed Microsoft AD for authentication;
|
|
401
|
+
See <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/kerberos-authentication.html> for more information
|
|
402
|
+
and a list of supported versions and limitations.
|
|
403
|
+
|
|
404
|
+
The following example shows enabling domain support for a database instance and creating an IAM role to access
|
|
405
|
+
Directory Services.
|
|
406
|
+
|
|
407
|
+
```ts
|
|
408
|
+
declare const vpc: ec2.Vpc;
|
|
409
|
+
const role = new iam.Role(this, 'RDSDirectoryServicesRole', {
|
|
410
|
+
assumedBy: new iam.ServicePrincipal('rds.amazonaws.com'),
|
|
411
|
+
managedPolicies: [
|
|
412
|
+
iam.ManagedPolicy.fromAwsManagedPolicyName('service-role/AmazonRDSDirectoryServiceAccess'),
|
|
413
|
+
],
|
|
414
|
+
});
|
|
415
|
+
const instance = new rds.DatabaseInstance(this, 'Instance', {
|
|
416
|
+
engine: rds.DatabaseInstanceEngine.mysql({ version: rds.MysqlEngineVersion.VER_8_0_19 }),
|
|
417
|
+
vpc,
|
|
418
|
+
domain: 'd-????????', // The ID of the domain for the instance to join.
|
|
419
|
+
domainRole: role, // Optional - will be create automatically if not provided.
|
|
420
|
+
});
|
|
421
|
+
```
|
|
422
|
+
|
|
423
|
+
**Note**: In addition to the setup above, you need to make sure that the database instance has network connectivity
|
|
424
|
+
to the domain controllers. This includes enabling cross-VPC traffic if in a different VPC and setting up the
|
|
425
|
+
appropriate security groups/network ACL to allow traffic between the database instance and domain controllers.
|
|
426
|
+
Once configured, see <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/kerberos-authentication.html> for details
|
|
427
|
+
on configuring users for each available database engine.
|
|
428
|
+
|
|
429
|
+
## Metrics
|
|
430
|
+
|
|
431
|
+
Database instances and clusters both expose metrics (`cloudwatch.Metric`):
|
|
432
|
+
|
|
433
|
+
```ts
|
|
434
|
+
// The number of database connections in use (average over 5 minutes)
|
|
435
|
+
declare const instance: rds.DatabaseInstance;
|
|
436
|
+
const dbConnections = instance.metricDatabaseConnections();
|
|
437
|
+
|
|
438
|
+
// Average CPU utilization over 5 minutes
|
|
439
|
+
declare const cluster: rds.DatabaseCluster;
|
|
440
|
+
const cpuUtilization = cluster.metricCPUUtilization();
|
|
441
|
+
|
|
442
|
+
// The average amount of time taken per disk I/O operation (average over 1 minute)
|
|
443
|
+
const readLatency = instance.metric('ReadLatency', { statistic: 'Average', period: Duration.seconds(60) });
|
|
444
|
+
```
|
|
445
|
+
|
|
446
|
+
## Enabling S3 integration
|
|
447
|
+
|
|
448
|
+
Data in S3 buckets can be imported to and exported from certain database engines using SQL queries. To enable this
|
|
449
|
+
functionality, set the `s3ImportBuckets` and `s3ExportBuckets` properties for import and export respectively. When
|
|
450
|
+
configured, the CDK automatically creates and configures IAM roles as required.
|
|
451
|
+
Additionally, the `s3ImportRole` and `s3ExportRole` properties can be used to set this role directly.
|
|
452
|
+
|
|
453
|
+
You can read more about loading data to (or from) S3 here:
|
|
454
|
+
|
|
455
|
+
* Aurora MySQL - [import](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Integrating.LoadFromS3.html)
|
|
456
|
+
and [export](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Integrating.SaveIntoS3.html).
|
|
457
|
+
* Aurora PostgreSQL - [import](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraPostgreSQL.Migrating.html#USER_PostgreSQL.S3Import)
|
|
458
|
+
and [export](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/postgresql-s3-export.html).
|
|
459
|
+
* Microsoft SQL Server - [import and export](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/SQLServer.Procedural.Importing.html)
|
|
460
|
+
* PostgreSQL - [import](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/PostgreSQL.Procedural.Importing.html)
|
|
461
|
+
and [export](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/postgresql-s3-export.html)
|
|
462
|
+
* Oracle - [import and export](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/oracle-s3-integration.html)
|
|
463
|
+
|
|
464
|
+
The following snippet sets up a database cluster with different S3 buckets where the data is imported and exported -
|
|
465
|
+
|
|
466
|
+
```ts
|
|
467
|
+
import * as s3 from 'aws-cdk-lib/aws-s3';
|
|
468
|
+
|
|
469
|
+
declare const vpc: ec2.Vpc;
|
|
470
|
+
const importBucket = new s3.Bucket(this, 'importbucket');
|
|
471
|
+
const exportBucket = new s3.Bucket(this, 'exportbucket');
|
|
472
|
+
new rds.DatabaseCluster(this, 'dbcluster', {
|
|
473
|
+
engine: rds.DatabaseClusterEngine.AURORA,
|
|
474
|
+
instanceProps: {
|
|
475
|
+
vpc,
|
|
476
|
+
},
|
|
477
|
+
s3ImportBuckets: [importBucket],
|
|
478
|
+
s3ExportBuckets: [exportBucket],
|
|
479
|
+
});
|
|
480
|
+
```
|
|
481
|
+
|
|
482
|
+
## Creating a Database Proxy
|
|
483
|
+
|
|
484
|
+
Amazon RDS Proxy sits between your application and your relational database to efficiently manage
|
|
485
|
+
connections to the database and improve scalability of the application. Learn more about at [Amazon RDS Proxy](https://aws.amazon.com/rds/proxy/)
|
|
486
|
+
|
|
487
|
+
The following code configures an RDS Proxy for a `DatabaseInstance`.
|
|
488
|
+
|
|
489
|
+
```ts
|
|
490
|
+
declare const vpc: ec2.Vpc;
|
|
491
|
+
declare const securityGroup: ec2.SecurityGroup;
|
|
492
|
+
declare const secrets: secretsmanager.Secret[];
|
|
493
|
+
declare const dbInstance: rds.DatabaseInstance;
|
|
494
|
+
|
|
495
|
+
const proxy = dbInstance.addProxy('proxy', {
|
|
496
|
+
borrowTimeout: Duration.seconds(30),
|
|
497
|
+
maxConnectionsPercent: 50,
|
|
498
|
+
secrets,
|
|
499
|
+
vpc,
|
|
500
|
+
});
|
|
501
|
+
```
|
|
502
|
+
|
|
503
|
+
## Exporting Logs
|
|
504
|
+
|
|
505
|
+
You can publish database logs to Amazon CloudWatch Logs. With CloudWatch Logs, you can perform real-time analysis of the log data,
|
|
506
|
+
store the data in highly durable storage, and manage the data with the CloudWatch Logs Agent. This is available for both database
|
|
507
|
+
instances and clusters; the types of logs available depend on the database type and engine being used.
|
|
508
|
+
|
|
509
|
+
```ts
|
|
510
|
+
import * as logs from 'aws-cdk-lib/aws-logs';
|
|
511
|
+
declare const myLogsPublishingRole: iam.Role;
|
|
512
|
+
declare const vpc: ec2.Vpc;
|
|
513
|
+
|
|
514
|
+
// Exporting logs from a cluster
|
|
515
|
+
const cluster = new rds.DatabaseCluster(this, 'Database', {
|
|
516
|
+
engine: rds.DatabaseClusterEngine.aurora({
|
|
517
|
+
version: rds.AuroraEngineVersion.VER_1_17_9, // different version class for each engine type
|
|
518
|
+
}),
|
|
519
|
+
instanceProps: {
|
|
520
|
+
vpc,
|
|
521
|
+
},
|
|
522
|
+
cloudwatchLogsExports: ['error', 'general', 'slowquery', 'audit'], // Export all available MySQL-based logs
|
|
523
|
+
cloudwatchLogsRetention: logs.RetentionDays.THREE_MONTHS, // Optional - default is to never expire logs
|
|
524
|
+
cloudwatchLogsRetentionRole: myLogsPublishingRole, // Optional - a role will be created if not provided
|
|
525
|
+
// ...
|
|
526
|
+
});
|
|
527
|
+
|
|
528
|
+
// Exporting logs from an instance
|
|
529
|
+
const instance = new rds.DatabaseInstance(this, 'Instance', {
|
|
530
|
+
engine: rds.DatabaseInstanceEngine.postgres({
|
|
531
|
+
version: rds.PostgresEngineVersion.VER_12_3,
|
|
532
|
+
}),
|
|
533
|
+
vpc,
|
|
534
|
+
cloudwatchLogsExports: ['postgresql'], // Export the PostgreSQL logs
|
|
535
|
+
// ...
|
|
536
|
+
});
|
|
537
|
+
```
|
|
538
|
+
|
|
539
|
+
## Option Groups
|
|
540
|
+
|
|
541
|
+
Some DB engines offer additional features that make it easier to manage data and databases, and to provide additional security for your database.
|
|
542
|
+
Amazon RDS uses option groups to enable and configure these features. An option group can specify features, called options,
|
|
543
|
+
that are available for a particular Amazon RDS DB instance.
|
|
544
|
+
|
|
545
|
+
```ts
|
|
546
|
+
declare const vpc: ec2.Vpc;
|
|
547
|
+
declare const securityGroup: ec2.SecurityGroup;
|
|
548
|
+
|
|
549
|
+
new rds.OptionGroup(this, 'Options', {
|
|
550
|
+
engine: rds.DatabaseInstanceEngine.oracleSe2({
|
|
551
|
+
version: rds.OracleEngineVersion.VER_19,
|
|
552
|
+
}),
|
|
553
|
+
configurations: [
|
|
554
|
+
{
|
|
555
|
+
name: 'OEM',
|
|
556
|
+
port: 5500,
|
|
557
|
+
vpc,
|
|
558
|
+
securityGroups: [securityGroup], // Optional - a default group will be created if not provided.
|
|
559
|
+
},
|
|
560
|
+
],
|
|
561
|
+
});
|
|
562
|
+
```
|
|
563
|
+
|
|
564
|
+
## Parameter Groups
|
|
565
|
+
|
|
566
|
+
Database parameters specify how the database is configured.
|
|
567
|
+
For example, database parameters can specify the amount of resources, such as memory, to allocate to a database.
|
|
568
|
+
You manage your database configuration by associating your DB instances with parameter groups.
|
|
569
|
+
Amazon RDS defines parameter groups with default settings.
|
|
570
|
+
|
|
571
|
+
You can create your own parameter group for your cluster or instance and associate it with your database:
|
|
572
|
+
|
|
573
|
+
```ts
|
|
574
|
+
declare const vpc: ec2.Vpc;
|
|
575
|
+
|
|
576
|
+
const parameterGroup = new rds.ParameterGroup(this, 'ParameterGroup', {
|
|
577
|
+
engine: rds.DatabaseInstanceEngine.sqlServerEe({
|
|
578
|
+
version: rds.SqlServerEngineVersion.VER_11,
|
|
579
|
+
}),
|
|
580
|
+
parameters: {
|
|
581
|
+
locks: '100',
|
|
582
|
+
},
|
|
583
|
+
});
|
|
584
|
+
|
|
585
|
+
new rds.DatabaseInstance(this, 'Database', {
|
|
586
|
+
engine: rds.DatabaseInstanceEngine.SQL_SERVER_EE,
|
|
587
|
+
vpc,
|
|
588
|
+
parameterGroup,
|
|
589
|
+
});
|
|
590
|
+
```
|
|
591
|
+
|
|
592
|
+
Another way to specify parameters is to use the inline field `parameters` that creates an RDS parameter group for you.
|
|
593
|
+
You can use this if you do not want to reuse the parameter group instance for different instances:
|
|
594
|
+
|
|
595
|
+
```ts
|
|
596
|
+
declare const vpc: ec2.Vpc;
|
|
597
|
+
|
|
598
|
+
new rds.DatabaseInstance(this, 'Database', {
|
|
599
|
+
engine: rds.DatabaseInstanceEngine.sqlServerEe({ version: rds.SqlServerEngineVersion.VER_11 }),
|
|
600
|
+
vpc,
|
|
601
|
+
parameters: {
|
|
602
|
+
locks: '100',
|
|
603
|
+
},
|
|
604
|
+
});
|
|
605
|
+
```
|
|
606
|
+
|
|
607
|
+
You cannot specify a parameter map and a parameter group at the same time.
|
|
608
|
+
|
|
609
|
+
## Serverless
|
|
610
|
+
|
|
611
|
+
[Amazon Aurora Serverless](https://aws.amazon.com/rds/aurora/serverless/) is an on-demand, auto-scaling configuration for Amazon
|
|
612
|
+
Aurora. The database will automatically start up, shut down, and scale capacity
|
|
613
|
+
up or down based on your application's needs. It enables you to run your database
|
|
614
|
+
in the cloud without managing any database instances.
|
|
615
|
+
|
|
616
|
+
The following example initializes an Aurora Serverless PostgreSql cluster.
|
|
617
|
+
Aurora Serverless clusters can specify scaling properties which will be used to
|
|
618
|
+
automatically scale the database cluster seamlessly based on the workload.
|
|
619
|
+
|
|
620
|
+
```ts
|
|
621
|
+
declare const vpc: ec2.Vpc;
|
|
622
|
+
|
|
623
|
+
const cluster = new rds.ServerlessCluster(this, 'AnotherCluster', {
|
|
624
|
+
engine: rds.DatabaseClusterEngine.AURORA_POSTGRESQL,
|
|
625
|
+
copyTagsToSnapshot: true, // whether to save the cluster tags when creating the snapshot. Default is 'true'
|
|
626
|
+
parameterGroup: rds.ParameterGroup.fromParameterGroupName(this, 'ParameterGroup', 'default.aurora-postgresql10'),
|
|
627
|
+
vpc,
|
|
628
|
+
scaling: {
|
|
629
|
+
autoPause: Duration.minutes(10), // default is to pause after 5 minutes of idle time
|
|
630
|
+
minCapacity: rds.AuroraCapacityUnit.ACU_8, // default is 2 Aurora capacity units (ACUs)
|
|
631
|
+
maxCapacity: rds.AuroraCapacityUnit.ACU_32, // default is 16 Aurora capacity units (ACUs)
|
|
632
|
+
}
|
|
633
|
+
});
|
|
634
|
+
```
|
|
635
|
+
|
|
636
|
+
Aurora Serverless Clusters do not support the following features:
|
|
637
|
+
|
|
638
|
+
* Loading data from an Amazon S3 bucket
|
|
639
|
+
* Saving data to an Amazon S3 bucket
|
|
640
|
+
* Invoking an AWS Lambda function with an Aurora MySQL native function
|
|
641
|
+
* Aurora replicas
|
|
642
|
+
* Backtracking
|
|
643
|
+
* Multi-master clusters
|
|
644
|
+
* Database cloning
|
|
645
|
+
* IAM database cloning
|
|
646
|
+
* IAM database authentication
|
|
647
|
+
* Restoring a snapshot from MySQL DB instance
|
|
648
|
+
* Performance Insights
|
|
649
|
+
* RDS Proxy
|
|
650
|
+
|
|
651
|
+
Read more about the [limitations of Aurora Serverless](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.html#aurora-serverless.limitations)
|
|
652
|
+
|
|
653
|
+
Learn more about using Amazon Aurora Serverless by reading the [documentation](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.html)
|
|
654
|
+
|
|
655
|
+
Use `ServerlessClusterFromSnapshot` to create a serverless cluster from a snapshot:
|
|
656
|
+
|
|
657
|
+
```ts
|
|
658
|
+
declare const vpc: ec2.Vpc;
|
|
659
|
+
new rds.ServerlessClusterFromSnapshot(this, 'Cluster', {
|
|
660
|
+
engine: rds.DatabaseClusterEngine.AURORA_MYSQL,
|
|
661
|
+
vpc,
|
|
662
|
+
snapshotIdentifier: 'mySnapshot',
|
|
663
|
+
});
|
|
664
|
+
```
|
|
665
|
+
|
|
666
|
+
### Data API
|
|
667
|
+
|
|
668
|
+
You can access your Aurora Serverless DB cluster using the built-in Data API. The Data API doesn't require a persistent connection to the DB cluster. Instead, it provides a secure HTTP endpoint and integration with AWS SDKs.
|
|
669
|
+
|
|
670
|
+
The following example shows granting Data API access to a Lamba function.
|
|
671
|
+
|
|
672
|
+
```ts
|
|
673
|
+
declare const vpc: ec2.Vpc;
|
|
674
|
+
|
|
675
|
+
const cluster = new rds.ServerlessCluster(this, 'AnotherCluster', {
|
|
676
|
+
engine: rds.DatabaseClusterEngine.AURORA_MYSQL,
|
|
677
|
+
vpc, // this parameter is optional for serverless Clusters
|
|
678
|
+
enableDataApi: true, // Optional - will be automatically set if you call grantDataApiAccess()
|
|
679
|
+
});
|
|
680
|
+
|
|
681
|
+
declare const code: lambda.Code;
|
|
682
|
+
const fn = new lambda.Function(this, 'MyFunction', {
|
|
683
|
+
runtime: lambda.Runtime.NODEJS_14_X,
|
|
684
|
+
handler: 'index.handler',
|
|
685
|
+
code,
|
|
686
|
+
environment: {
|
|
687
|
+
CLUSTER_ARN: cluster.clusterArn,
|
|
688
|
+
SECRET_ARN: cluster.secret!.secretArn,
|
|
689
|
+
},
|
|
690
|
+
});
|
|
691
|
+
cluster.grantDataApiAccess(fn);
|
|
692
|
+
```
|
|
693
|
+
|
|
694
|
+
**Note**: To invoke the Data API, the resource will need to read the secret associated with the cluster.
|
|
695
|
+
|
|
696
|
+
To learn more about using the Data API, see the [documentation](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html).
|
|
697
|
+
|
|
698
|
+
### Default VPC
|
|
699
|
+
|
|
700
|
+
The `vpc` parameter is optional.
|
|
701
|
+
|
|
702
|
+
If not provided, the cluster will be created in the default VPC of the account and region.
|
|
703
|
+
As this VPC is not deployed with AWS CDK, you can't configure the `vpcSubnets`, `subnetGroup` or `securityGroups` of the Aurora Serverless Cluster.
|
|
704
|
+
If you want to provide one of `vpcSubnets`, `subnetGroup` or `securityGroups` parameter, please provide a `vpc`.
|