@aws-amplify/cdk-exported-backend
Project description
Amplify CLI cdk-exported-backend
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file aws-amplify.cdk.exported-backend-0.0.6.tar.gz
.
File metadata
- Download URL: aws-amplify.cdk.exported-backend-0.0.6.tar.gz
- Upload date:
- Size: 147.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0414ed75461e790c5a1510c28512fb66e6b93ce5050585c3a28f45768ebe2a0 |
|
MD5 | e82e1696f75d62da2ac12b01fc62c1db |
|
BLAKE2b-256 | 019d15ce23e7e554fe75302558faf8e0b9f1baea164ba850f43f48f16ada3a3e |
File details
Details for the file aws_amplify.cdk.exported_backend-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: aws_amplify.cdk.exported_backend-0.0.6-py3-none-any.whl
- Upload date:
- Size: 146.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 684f62f218ce89d6ac377a1de7f502801ad62a924b0cbb55748392e21dd653ba |
|
MD5 | b36dc28b6a3d5bb6ad6bdac9442ecae0 |
|
BLAKE2b-256 | b5afcdfdf35b5b0d15c39d29c7b79d82c4c8e6054b999f2a979eef976501744b |