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
>In the command below, replace the `your-lambda-artifacts-bucket-name` with the name of a bucket that you manage and that already exists, and replace `custom-prefix` with some prefix that is globally unique, like your org name or username. Then, run:
The command will exit when the stack creation is successful. If you'd like to watch it create in real-time, you can log into the cloudformation console.
45
58
46
59
To get the URL for the newly created developer portal instance, find the websiteURL field in the cloudformation console's outputs or run this command:
You can override any of the parameters in the template using the `--parameter-overrides key="value"` format. This will be necessary if you intend to deploy several instances of the developer portal or customize some of the features. You can see a full list of overridable parameters in `cloudformation/template.yaml` under the `Parameters` section.
Copy file name to clipboardExpand all lines: cloudformation/template.yaml
+20-8Lines changed: 20 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -72,8 +72,12 @@ Parameters:
72
72
73
73
StaticAssetRebuildMode:
74
74
Type: String
75
-
Description: By default, a static asset rebuild doesn't overwrite custom-content. Provide the value `overwrite_content` to replace the custom-content with your local version. Don't do this unless you know what you're doing -- all custom changes in your s3 bucket will be lost.
75
+
Description: By default, a static asset rebuild doesn't overwrite custom-content. Provide the value `overwrite-content` to replace the custom-content with your local version. Don't do this unless you know what you're doing -- all custom changes in your s3 bucket will be lost.
76
76
Default: ''
77
+
AllowedValues:
78
+
- 'overwrite-content'
79
+
- ''
80
+
ConstraintDescription: Malformed input - Parameter StaticAssetRebuildMode value must be either 'overwrite-content' or left blank.
77
81
78
82
MarketplaceSubscriptionTopicProductCode:
79
83
Type: String
@@ -108,11 +112,19 @@ Parameters:
108
112
Type: String
109
113
Description: Only applicable if creating a custom domain name for your dev portal. Defaults to false, and you'll need to provide your own nameserver hosting. If set to true, a Route53 HostedZone and RecordSet are created for you.
110
114
Default: 'false'
115
+
AllowedValues:
116
+
- 'false'
117
+
- 'true'
118
+
ConstraintDescription: Malformed input - Parameter UseRoute53Nameservers value must be either 'true' or 'false'
111
119
112
120
DevelopmentMode:
113
121
Type: String
114
-
Description: Enabling this weakens security features (OAI, SSL, site S3 bucket with public read ACLs, Cognito callback verification, CORS, etc.) for easier development. Do not enable this in production! Additionally, do not update a stack that was previously in development mode to be a production stack; instead, make a new stack that has never been in development mode.
122
+
Description: Enabling this weakens security features (OAI, SSL, site S3 bucket with public read ACLs, Cognito callback verification, CORS, etc.) for easier development. It also breaks frontend routing (except to /index.html), including deep linking and page refresh. Do not enable this in production! Additionally, do not update a stack that was previously in development mode to be a production stack; instead, make a new stack that has never been in development mode.
115
123
Default: 'false'
124
+
AllowedValues:
125
+
- 'false'
126
+
- 'true'
127
+
ConstraintDescription: Malformed input - Parameter DevelopmentMode value must be either 'true' or 'false'
Copy file name to clipboardExpand all lines: dev-portal/README.md
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,9 @@ module.exports = {
30
30
31
31
// Set this to overwrite-content if you want to reset your custom content back to the defaults. Defaults to ``
32
32
// staticAssetRebuildMode: `overwrite-content` // ONLY SET
33
+
34
+
// AWS SAM CLI profile option: optional specific profile from your AWS credential file. Not used by default
35
+
//awsSamCliProfile: "my-profile"
33
36
}
34
37
```
35
38
4. Run `npm run release`. This will build the static assets, deploy them, and generate the `dev-portal/public/config.js` file needed for local development. Take note of the bucket names you use
0 commit comments