Skip to content

Commit a3b3290

Browse files
committed
rename realm to app services
1 parent 55626ad commit a3b3290

File tree

5 files changed

+20
-23
lines changed

5 files changed

+20
-23
lines changed

cfn-resources/trigger/mongodb-atlas-trigger.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@
251251
"EventProcessors": {
252252
"type": "object",
253253
"$ref": "#/definitions/Event",
254-
"description": "An object where each field name is an event processor ID and\neach value is an object that configures its corresponding\nevent processor. For an example configuration object, see\n[Send Trigger Events to AWS\nEventBridge](https://www.mongodb.com/docs/realm/triggers/examples/send-events-aws-eventbridge#std-label-event_processor_example)."
254+
"description": "An object where each field name is an event processor ID and\neach value is an object that configures its corresponding\nevent processor. For an example configuration object, see\n[Send Trigger Events to AWS\nEventBridge](https://www.mongodb.com/docs/atlas/app-services/triggers/aws-eventbridge/#std-label-event_processor_example)."
255255
},
256256
"AppId": {
257257
"type": "string",

cfn-resources/trigger/test/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ All these resources need to be manually provided. Follow the steps below.
2121

2222
### Prerequisite steps:
2323

24-
This guide will help you set up your MongoDB Realm configuration for testing a trigger resource.
24+
This guide will help you set up your MongoDB App Services configuration for testing a trigger resource.
2525
You'll define properties and create essential components such as a project, application, service, and function.
2626

2727
Required Properties:
@@ -49,7 +49,7 @@ we are going to use the application service provided by atlas, in order to use t
4949
with this CURL:
5050
``` bash
5151
curl --request POST \
52-
--url https://realm.mongodb.com/api/admin/v3.0/auth/providers/mongodb-cloud/login \
52+
--url https://services.cloud.mongodb.com/api/admin/v3.0/auth/providers/mongodb-cloud/loginn \
5353
--header 'Accept: application json' \
5454
--header 'Content-Type: application/json' \
5555
--data '{"username": {your pub key}, "apiKey": {your pvt key}}'
@@ -60,13 +60,13 @@ this will throw an "access_token" we need to save this access token because we w
6060
Before creating a new app we should validate if our project already contains an app:
6161
``` bash
6262
curl --request GET \
63-
--url https://realm.mongodb.com/api/admin/v3.0/groups/64bad960538ae76ec5c70050/apps \
63+
--url https://services.cloud.mongodb.com/api/admin/v3.0/groups/64bad960538ae76ec5c70050/apps \
6464
--header 'Authorization: Bearer {Your Access Token}'
6565
```
6666
if not we can create a new one with this Curl:
6767
``` bash
6868
curl --request POST \
69-
--url https://realm.mongodb.com/api/admin/v3.0/groups/650e24611a33225d7e9b90d5/apps \
69+
--url https://services.cloud.mongodb.com/api/admin/v3.0/groups/650e24611a33225d7e9b90d5/apps \
7070
--header 'Authorization: Bearer {Your access token}' \
7171
--header 'Content-Type: application/json' \
7272
--data '{
@@ -95,7 +95,7 @@ APP_ID: Application Identifier.
9595
to create a service we need to use the next curl:
9696
```
9797
curl --request POST \
98-
--url https://realm.mongodb.com/api/admin/v3.0/groups/64bad960538ae76ec5c70050/apps/64c00d91250e0ebe36dc6bc6/services \
98+
--url https://services.cloud.mongodb.com/api/admin/v3.0/groups/64bad960538ae76ec5c70050/apps/64c00d91250e0ebe36dc6bc6/services \
9999
--header 'Authorization: Bearer HERE_THE_access_token' \
100100
--header 'Content-Type: application/json' \
101101
--data '{
@@ -114,7 +114,7 @@ we can extract the SERVICE_ID from this result
114114
finally we require a Function we can use the next curl call:
115115
```
116116
curl --request POST \
117-
--url https://realm.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appid}/functions \
117+
--url https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appid}/functions \
118118
--header 'Authorization: Bearer HERE_THE_access_token' \
119119
--header 'Content-Type: application/json' \
120120
--data '{
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"Name": "cfn-test-trigger-${RANDOM_INT_100K}",
33
"Type": "DATABASE",
4-
"Profile": "${MONGODB_ATLAS_PROFILE}",
4+
"Profile": "default",
55
"DatabaseTrigger": {
66
"OperationTypes": [
77
"INSERT"
88
],
99
"Database": "store",
1010
"Collection": "sales",
11-
"ServiceId": "${MONGODB_REALM_SERVICE_ID}",
11+
"ServiceId": "",
1212
"FullDocument": "true",
1313
"FullDocumentBeforeChange": "false",
1414
"Unordered": "false",
@@ -20,14 +20,14 @@
2020
"EventProcessors": {
2121
"FUNCTION": {
2222
"FuncConfig": {
23-
"FunctionName": "${MONGODB_REALM_FUNCTION_NAME}",
24-
"FunctionId": "${MONGODB_REALM_FUNCTION_ID}"
23+
"FunctionName": "",
24+
"FunctionId": ""
2525
}
2626
},
2727
"AWSEVENTBRIDGE": {
2828
"AWSConfig": {}
2929
}
3030
},
31-
"AppId": "${MONGODB_REALM_APP_ID}",
32-
"ProjectId": "${MONGODB_ATLAS_PROJECT_ID}"
31+
"AppId": "",
32+
"ProjectId": ""
3333
}
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"Name": "cfn-test-trigger-${RANDOM_INT_100K}",
33
"Type": "DATABASE",
4-
"Profile": "${MONGODB_ATLAS_PROFILE}",
4+
"Profile": "default",
55
"DatabaseTrigger": {
66
"OperationTypes": [
77
"INSERT"
88
],
99
"Database": "store",
1010
"Collection": "sales",
11-
"ServiceId": "${MONGODB_REALM_SERVICE_ID}",
11+
"ServiceId": "",
1212
"FullDocument": "true",
1313
"FullDocumentBeforeChange": "false",
1414
"Unordered": "false",
@@ -20,14 +20,14 @@
2020
"EventProcessors": {
2121
"FUNCTION": {
2222
"FuncConfig": {
23-
"FunctionName": "${MONGODB_REALM_FUNCTION_NAME}",
24-
"FunctionId": "${MONGODB_REALM_FUNCTION_ID}"
23+
"FunctionName": "",
24+
"FunctionId": ""
2525
}
2626
},
2727
"AWSEVENTBRIDGE": {
2828
"AWSConfig": {}
2929
}
3030
},
31-
"AppId": "${MONGODB_REALM_APP_ID}",
32-
"ProjectId": "${MONGODB_ATLAS_PROJECT_ID}"
31+
"AppId": "",
32+
"ProjectId": ""
3333
}

cfn-resources/util/constants/constants.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,7 @@ const (
128128
Serverless = "SERVERLESS"
129129
Duplicate = "DUPLICATE"
130130

131-
AppID = "AppId"
132-
RealmPubKey = "RealmConfig.PublicKey"
133-
RealmPvtKey = "RealmConfig.PrivateKey"
134-
131+
AppID = "AppId"
135132
FederationSettingsID = "FederationSettingsId"
136133

137134
ExportBucketID = "ExportBucketId"

0 commit comments

Comments
 (0)