You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add option to associate exported backend with amplify app
- if given an amplifyAppId and amplifyEnvironment, then created the associated backend environment
- ensure amplify environment name is valid
- ensure exception tests are properly accounted for
- add more details for AmplifyExportedBackendProps
- make AmplifyCategoryNotFoundError a little more clear
- emulate root stack cfn parameters that cli uses
@@ -45,10 +44,12 @@ const amplifyExport = new AmplifyExportedBackend(app, 'AmplifyExportedBackend',
45
44
46
45
The construct props extend [stack props](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_core.StackProps.html) and can be used to override the root stack properties.
47
46
48
-
|Name |Type |Description |Required |Default |
49
-
|--- |--- |--- |--- |--- |
50
-
|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 |
51
-
|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 |
47
+
| 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 |
50
+
| amplifyEnvironment | String | The construct emulates Amplify CLI's environment name convention to integrate Amplify exported resources into the CDK app. | No | dev |
51
+
| amplifyAppId | String | Create an Amplify backend environment for the specified Amplify App Id. Do not provide an amplifyAppId if the environment was already added by the Amplify CLI. | No | undefined |
Copy file name to clipboardExpand all lines: src/base-exported-backend.ts
+17-9
Original file line number
Diff line number
Diff line change
@@ -14,9 +14,18 @@ const {
14
14
AMPLIFY_EXPORT_TAG_FILE,
15
15
AMPLIFY_CATEGORY_MAPPING_FILE,
16
16
}=Constants;
17
+
18
+
// conform to Amplify conventions: https://github.com/aws-amplify/amplify-cli/blob/v12.0.3/packages/amplify-cli/src/init-steps/s0-analyzeProject.ts#L206-L208
0 commit comments