Giter Site home page Giter Site logo

sethkor / connect-backup Goto Github PK

View Code? Open in Web Editor NEW
20.0 5.0 2.0 100 KB

A tool to backup and restore AWS Connect, with some useful other utilities too

License: MIT License

Makefile 5.27% Go 94.73%
aws connect backup go golang lambda sam tools flows ci cd export import

connect-backup's Issues

backup/restore as part of ci/cd process?

Hi - first, thanks for creating this super useful tool.

I'm curious if it can be extended to support a traditional deployment model. For example, I would like to create Contact Flow(s) in a 'dev' AWS account ('dev' Connect instance), test/qa, and if approved, deploy the update Contact Flow(s) to another AWS account ('prod' Connect instance). I see the json elements use the ARN which includes the AWS account # and the Connect instance ID. Does the tool change these when doing a restore to another account/instance? If not could that be added?

SSO profile failing

Hello. Thanks for making such a useful tool. Does connect-backup currently support SSO for aws profiles? I'm getting an error, but only when I try to use a profile I've signed in as using "aws configure sso":

2021/05/25 14:52:22 NoCredentialProviders: no valid providers in chain
caused by: EnvAccessKeyNotFound: failed to find credentials in the environment.
SharedCredsLoad: failed to load profile, MySSOProfileName.
EC2RoleRequestError: no EC2 instance role found
caused by: RequestError: send request failed

Unpublished contact flows interrupt the rest of the backup

Hi, thanks for making this tool.

I've encountered an issue when there is an unpublished contact flow. In the logs you get
2021/10/01 18:57:38 Failed to describe flow

when I ran to describe the contact flow manually, I found the reason was
An error occurred (ContactFlowNotPublishedException) when calling the DescribeContactFlow operation: Contact flow not published

Now when it hits this roadblock it doesn't backup the rest of the contact flows and continues to backing up users. Is it possible to skip all the unpublished contactflows and backup the other contact flows?

File Output Issues with Special Characters

During the backup of an instance, object names with certain special characters do not write to the file system properly.

Example:

A connect Instance with a Hours of Operation entry called "24/7" results in a failure as it tries to write out a 24/7.json file and the OS interprets it a as a path.

# connect-backup --instance REDACTED backup --file=ConnectBackup
2023/11/14 13:44:07 Backing up Hours
2023/11/14 13:44:07 open ConnectBackup//REDACTED/hours-of-operation/24/7.json: no such file or directory
2023/11/14 13:44:07 Failed to write to the destination

Suggestion: Escape or Quote the files before writing to disk or strip path characters from the file.
Suggestion 2: Change the name of the argument from --file to --directory or --folder

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.