GithubHelp home page GithubHelp logo

karanpratapsingh / preview-environments Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 4.0 3.19 MB

Quickly create temporary preview environments

License: MIT License

Dockerfile 2.45% Go 0.96% Shell 0.54% TypeScript 79.94% HCL 16.12%
aws cloudflare docker terraform

preview-environments's People

Stargazers

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

Watchers

 avatar  avatar  avatar

preview-environments's Issues

ResourceInitializationError: unable to pull secrets or registry auth

I kept getting this error and it would no go past the Waiting for task to be in RUNNING state

Screen Shot 2022-02-08 at 11 58 39

After a little research it was because the app was in a private subnet (just like you infrastructure diagram) and once I moved it to a public subnet I was able to get the task running. Here I'm wondering if this is how it is supposed to be? I thought it was all to be in a private subnet. Am I missing something?

Environment Variables

Hey Karan,

I have not test it yet, but awesome job you've done here. I do have a question that I was not able to figure out while looking at the GitHub action workflow or code, is there a way to insert environment variables to the task definition? My application does need many environment variables to work, just one simple example would be the db credentials.

Argo tunnel

I'm going to customize a little bit this solution to my needs. I've completed a full preview deployment of my backend service, but in order for QA and product to test the app, I need a frontend deployed which I want to deploy in S3. The only thing I don't completely grasp yet is how you point the Argo tunnel to the Fargate app? Because I want to change it to point to the s3 bucket, which in turn that frontend will point to the Fargate app within the VPC. If you can give me some pointer, it would be much appreciated.

Cloudflare account details

Hello,

Looking at the config.ts it asks for the following:

 api_key: env.get('CLOUDFLARE_API_KEY').required().asString(),
 token: env.get('CLOUDFLARE_API_TOKEN').required().asString(),
 accountId: env.get('CLOUDFLARE_ACCOUNT_ID').required().asString(),
 zoneId: env.get('CLOUDFLARE_ZONE_ID').required().asString(),
 domain: '<todo-your-cloudflare-domain>',

I've found how to create a API Key and a API Token, but have not found the Account ID and Zone ID. Where do you get them from?

For example for the token are these permissions enough?
Screen Shot 2022-02-07 at 13 23 22

For the cloudfare domain, where you get that from?

Task definition file does not exists

I'm getting this error in the Render Task Definition step. The task-definition.json file exist in the root directory. Any ideas what could it be?

Screen Shot 2022-02-07 at 15 58 16

AWS CLI permissions

I'm going to create a new IAM user with programmatic access for the GitHub Action that create the preview environment

Screen Shot 2022-02-07 at 13 51 19

What are the necessary permissions that it needs to create all the resources?

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.