Skip to main content

Deployment tools for Strongmind

Project description

StrongMind Deployment

What?

Deployment scripts for StrongMind, using Pulumi.

Development

Write pytest tests for functionality you need. When you need to use this with real AWS resources in a development environment, you'll need to follow these steps.

  • Log your shell into the AWS account you're test deploying to (If you don't already have access keys set up, you can find how to do this in the Amazon SSO portal, under "Programmatic Access")
  • Find the relevant container image you're deploying from ECR. (Choose the relevant project container, then the image tag, and then copy the URI field).
  • Find the Rails Master Key for that project. Usually this is kept in the github actions secrets for that project.
  • Get the cloudflare API token and pulumi state passwords from bitwarden if you have access, or get this from devops otherwise.
  • Use these to construct an environment in your preferred fashion with the following keys
    • CONTAINER_IMAGE
    • RAILS_MASTER_KEY
    • CLOUDFLARE_API_TOKEN
    • PULUMI_CONFIG_PASSPHRASE
  • In the project that you are testing with, in the infrastructure directory, there will be a requirements.txt file. In order to use your development code, rather than the published version of this library, you will need to change the line that says "strongmind_deployment" to -e /path/to/this/directory, using the directory that this README is located in.
  • Reinstall the requirements in your pulumi infrastructure directory. Usually this looks like
source venv/bin/activate
pip install -r requirements.txt

You can now use pulumi commands like pulumi preview and pulumi up to make changes.

We usually use the frozen-desserts application to do simple tests of a non-production application.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

strongmind_deployment-1.1.253-py3-none-any.whl (46.1 kB view details)

Uploaded Python 3

File details

Details for the file strongmind_deployment-1.1.253-py3-none-any.whl.

File metadata

File hashes

Hashes for strongmind_deployment-1.1.253-py3-none-any.whl
Algorithm Hash digest
SHA256 6d2a0c0cf4886776cb9c87e45ffc73603779238d8ba01cd2b8bb9f2a69791fae
MD5 14bcc367c0c0f4897ccb30d45b999e3b
BLAKE2b-256 300623bdf6c4762fd809b7af88cbf3a249ee00685a14a6b44f04e8b0fbb7006d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page