Code Monkey home page Code Monkey logo

acquia-cloud-api-scripts's Introduction

Acquia Cloud CI/CD Scripts

These scripts could be run with something like Jenkins CI to run Acquia Cloud CI/CD tasks for all environments.

This set of scripts is used for deployments and other automation tasks, and requires the Acquia SDK for PHP, which is installed via composer (see setup instructions below).

Setup

  1. cd into this directory and run composer install to install required dependencies.
  2. Make sure the environment variables ACQUIA_CLOUD_USERNAME and ACQUIA_CLOUD_PASSWORD are configured (for testing, please use your own credentials—the password is the 'Cloud API key' available though the Acquia Insight UI, e.g. at https://accounts.acquia.com/account/[your-user-id]/security).
  3. Copy example.config.php to config.php and set your Acquia Cloud Hosting environment-specific configuration.
  4. Run one of the scripts, e.g. php database-cleanup.php to clean out all user-generated database backups in non-production environments.

acquia-cloud-api-scripts's People

Contributors

geerlingguy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

acquia-cloud-api-scripts's Issues

Handle 503 errors from Acquia Cloud API gracefully

During the wait_for_task_to_complete() calls, when we call for a task status every 5 seconds until complete, there are 503 errors from time to time. They happen quite randomly, but never too often. If we can have an internal counter/check to handle up to x number of 503 errors, that will make the deployment complete even if there's a few 503s during the course of a task being run.

Ansible modules?

I'd like to maybe create an Ansible module (or a few modules for various services) so I can use Ansible to manage deployments/backups/etc. This seems like a simple/straightforward-enough project to take on, and would be beneficial for automating the boring tasks of clicking and dragging around the Acquia Cloud UI, plus it would be more formal than a bunch of shell scripts.

We'll see...

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.