@aws-amplify/cdk-exported-backend
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

Amplify CLI cdk-exported-backend

Integration Tests

This CDK construct is used to include the CloudFormation resources generated by Amplify CLI Export command. The construct handles assets and CloudFormation files. It offers abstractions over the Amplify CLI generated cloud resources.

The library is published under the following

Language Repository
Typescript/Javascript @aws-amplify/cdk-exported-backend
Python aws-amplify.cdk.exported-backend
Java com.amplifyframework:exported-backend

Usage

Install via NPM:

npm i @aws-amplify/cdk-exported-backend@latest

Add to your CDK app:

import { AmplifyExportedBackend }  from '@aws-amplify/cdk-exported-backend';
...
const amplifyExport = new AmplifyExportedBackend(app, 'AmplifyExportedBackend', {
  path: './amplify-export-myAmplifyApp',
  amplifyEnvironment: 'dev', 
});

Construct Props

The construct props extend stack props and can be used to override the root stack properties.

Name Type Description Required Default
path String You can use the absolute or the relative path to the location of the folder. When using relative paths it's important to note that the path is relative to the root of your CDK application Yes undefined
stage String This works similar to Amplify CLI's environment names. The construct makes modification to be able to integrate into the CDK app. Yes undefined

Deploy this to your account

cdk deploy 

Contributing

We welcome community contributions and pull requests.

Security

See CONTRIBUTING for more information.

License

This project is licensed under the Apache-2.0 License.

Package Sidebar

Install

npm i @aws-amplify/cdk-exported-backend

Weekly Downloads

210

Version

0.0.6

License

Apache-2.0

Unpacked Size

621 kB

Total Files

176

Last publish

Collaborators

  • amplify-data-dev-npm
  • amplify-studio-uibuilder
  • amplify-codegen
  • amzn-oss
  • undefobj
  • aws-amplify-ops
  • manuel.iglesias
  • thaddmt
  • mattsb42-aws