|
| 1 | + |
| 2 | +>>> [CLI] external-locations create test-location-[UNIQUE_NAME] s3://test-bucket/path test_storage_credential |
| 3 | +{ |
| 4 | + "name": "test-location-[UNIQUE_NAME]", |
| 5 | + "url": "s3://test-bucket/path", |
| 6 | + "credential_name": "test_storage_credential" |
| 7 | +} |
| 8 | + |
| 9 | +>>> [CLI] bundle deployment bind test_location test-location-[UNIQUE_NAME] --auto-approve |
| 10 | +Updating deployment state... |
| 11 | +Successfully bound external_location with an id 'test-location-[UNIQUE_NAME]' |
| 12 | +Run 'bundle deploy' to deploy changes to your workspace |
| 13 | + |
| 14 | +=== Deploy bundle |
| 15 | +>>> [CLI] bundle deploy --force-lock --auto-approve |
| 16 | +Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... |
| 17 | +Deploying resources... |
| 18 | +Updating deployment state... |
| 19 | +Deployment complete! |
| 20 | + |
| 21 | +>>> [CLI] external-locations get test-location-[UNIQUE_NAME] |
| 22 | +{ |
| 23 | + "name": "test-location-[UNIQUE_NAME]", |
| 24 | + "url": "s3://test-bucket/path-dabs", |
| 25 | + "credential_name": "test_storage_credential" |
| 26 | +} |
| 27 | + |
| 28 | +=== Unbind external location |
| 29 | +>>> [CLI] bundle deployment unbind test_location |
| 30 | +Updating deployment state... |
| 31 | + |
| 32 | +=== Destroy bundle |
| 33 | +>>> [CLI] bundle destroy --auto-approve |
| 34 | +All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default |
| 35 | + |
| 36 | +Deleting files... |
| 37 | +Destroy complete! |
| 38 | + |
| 39 | +=== Read the pre-defined external location again (expecting it still exists): |
| 40 | +>>> [CLI] external-locations get test-location-[UNIQUE_NAME] |
| 41 | +{ |
| 42 | + "name": "test-location-[UNIQUE_NAME]", |
| 43 | + "url": "s3://test-bucket/path-dabs", |
| 44 | + "credential_name": "test_storage_credential" |
| 45 | +} |
| 46 | + |
| 47 | +=== Test cleanup |
| 48 | +>>> [CLI] external-locations delete test-location-[UNIQUE_NAME] |
| 49 | +0 |
0 commit comments