Giter Club home page Giter Club logo

badges's People

Contributors

archetypalsxe avatar badges-ci avatar dependabot[bot] avatar exogen avatar jpdriver avatar kevinmstephens avatar mattjw79 avatar npmcdn-to-unpkg-bot avatar ryan-roemer avatar tptee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

forkkit

badges's Issues

Logs: Switch to JSON-formatted logs.

We have text logs which are not machine parseable / easily analyzable.

Task:

  • Switch everything over to JSON
  • Consider using a real logger like bunyan
  • Review what data we are logging for additional tickets.

Add CD with CodeBuild

  • deploy to production by tagging the branch
  • merge after verification (github flow)

Infra: Clean up leftover per-pr resources

We have lots of left over resources like:

  • s3:tf-badges-nonprod-pr25-remote-state
  • lambda:sls-badges-nonprod-pr36-app

We should:

  • Scour and identify everything that's lingering around
  • Identify why those resources aren't getting cleaned up
  • Create a tool / document how to manually clean up easily.
  • Fix / automate cleaning going forward.

Deprecate Project and Sunset Platform

The "badges" project will be archived and all runtime assets will be sunset. Based on our availability and traffic, the site receives very minimal usage and we expect little impact,

Investigate Inferno/Sauce Issue

The example link that we post during deployment: travis/infernojs/inferno/sauce/Havunen?name=InfernoJS is currently showing as browsers unknown. It seems that there may be an application issue with consuming Sauce

Infra/Bug: 2+ commits building at same time can fail for TF lock.

Issue

When building #39 two commits were pushed together than the CodeBuild pipeline for the second failed with:

[terragrunt] 2019/12/06 19:48:51 Running command: terraform apply -auto-approve 
 
Error: Error locking state: Error acquiring the state lock: ConditionalCheckFailedException: The conditional request failed 
    status code: 400, request id: RDALDDI7D8L8GP6N1O223N5I9BVV4KQNSO5AEMVJF66Q9ASUAAJG 
Lock Info: 
  ID:        749c2850-b113-76b5-3920-3753bf120ed1 
  Path:      tf-badges-nonprod-pr39cd-remote-state/terraform-cd.tfstate 
  Operation: OperationTypeApply 
  Who:       root@7c6a0ebec808 
  Version:   0.12.10 
  Created:   2019-12-06 19:48:49.086482789 +0000 UTC 
  Info:       
 
 
Terraform acquires a state lock to protect the state from being written 
by multiple users at the same time. Please resolve the issue above and try 
again. For most commands, you can disable locking with the "-lock=false" 
flag, but this is not recommended. 

presumably because the previous build hadn't finished.

Task

  • Review and research approaches to mitigate this (delay and backoff for state lock or something in TF / terragrunt, ... ?)
  • Implement and test fix with multiple near-in-time commits.

Infra: Allow localdev to not need any AWS.

Currently we rely on an actively running cloud infrastructure to get secrets.

  • Create a localdev alternative, maybe with environment variables.
  • Optional: consider disabling AWS cloud secrets usage.

GitHub Actions: Remove CodePipline

Removed the legacy CodePipeline that was used previously with CodeBuild. Was in place to allow for manual approvals and to run CodeBuild. This is now being done through GitHub Actions on pushes to master

Setup Serverless

  • use regional endpoint to avoid double CDN (we want Fastly instead of CloudFront)
  • use custom domain to have a stable hostname to point to in Fastly

Lander: Nice landing page.

Can be either based on README markdown or a bespoke one, but we should have a very nice landing page for https://badges.formidable.com instead of the current redirect to this repository.

/cc @formidableamy

Setup Terragrunt and IAM/app module

  • IAM module updates manually, allows Serverless and Terraform "app" module to run in CI
  • App module runs in CI, will provide support resources for Serverless (e.g. Fastly)

Update LICENSE

Add Formidable (C) underneath Brian Beck one (and preserve Brian's line).

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.