Editing a project’s configuration using Cyberduck

Prerequisites

Setup

In Cyberduck’s preferences, you’ll need to enable encryption for communicating with S3. Choose “SSE-S3 (AES-256)” from the “Encryption” dropdown in the S3 section.

Choose the SSE-S3 (AES-256) encryption for S3

Steps

1. Open Cyberduck, and click the “Open Connection” button.

2. Select “Amazon S3” in the dropdown, and then enter your AWS CLI Access Key ID and Secret Access Key.

3. Double-click on either cob-digital-apps-prod-config or cob-digital-apps-staging-config, depending on whether you want to edit prod or staging.

4. Double click on the service whose configuration you’d like to change. Some staging services have “variants” (for example, Access Boston has both “dev” and “test” configurations to match the IAM team’s integration environments). Click into a variant if appropriate.

5. Choose “Show Hidden Files” from the “View” menu so that files starting with a . (such as .env) are visible. Note that this will also show previous versions of files.

Choose “Show Hidden Files” from the ”View” menu

6. Press the Refresh button. This is incredibly important. Otherwise you may end up editing an older version of a file and overwrite newer changes.

7. Right-click on the most recent version of .env and edit it. When you save in your editor, Cyberduck will update the S3 bucket automatically.

If you’re adding a secret to the config file, see the Encrypting service configuration for S3 guide.

8. Once you’ve updated the configuration, you’ll need to restart the ECS tasks for the service, since they only get the latest configuration on startup. See the Restarting an ECS service guide.

Last updated

Was this helpful?