8solutions

u/8solutions



r/devops•

I'd like to just build a Docker image for a node.js app. The Dockerfile builds on my computer. I have gone through the Gitlab CI Docker documentation and it feels like it's taking me to the stars and back but I'm having difficulty understanding whether I need to register a runner or where to get started. (https://docs.gitlab.com/ee/ci/docker/using_docker_build.html)

My assumption was that it would be something like the following. The build-node stage is not exactly what I'm using but it is working correctly -- there are also testing and lint stages that are working, too. The docker image build is where I'm tripping up.

//gitlab-ci.yml

build-node:
  stage: build
  befor
27

r/tax•

Hi, I created a delaware C-Corp on October 20, 2019. I created a bank account with an initial deposit of $300 to meet the minimum bank account requirement, however I have not (intended to) purchase the shares. I am the sole owner of the company and used stripe atlas to generate the documents. I will only be distributing shares to myself.

My plan is to add about $4000 to the bank account and sign the purchase shares documents and then do the 83b election immediately. However, I fear that I might have missed the window by not doing it within 30 days of the company formation. Looking for a path forward :). This is a software company but there has been little go no growth during this time so th

38

r/startups•

Hi, I created a delaware c Corp on October 20, 2019. I created a bank account with an initial deposit of $300 to meet the minimum bank account requirement, however I have not (intended to) purchase the shares. I am the sole owner of the company and used stripe atlas to generate the documents.

My plan is to add about $4000 to the bank account and sign the purchase shares documents and then do the 83b election immediately. However, I fear that I might have missed the window by not doing it within 30 days of the company formation. Looking for a path forward :).

Can I sign the share purchase documents now and then immediately submit the 83b election? Should I do this before 2020?

I also wonde

66

r/devops•

I'm most familiar with AWS' cloudformation and assume that other infrastructure automation tools are similar. It feels very uncomfortable to put a database or cognito userpool or s3 bucket in a cloudformation template that will also be used for code.

I know that some resources (eg. Aurora, S3) have flags to prevent accidental deletion -- however, I still feel uncomfortable putting them into cloudformation stacks because it then inhibits us from quickly deleting those stacks!

The alternative that I have come up with is a "state-stack" (bad name maybe) that contains resources that are stateful and hold data. Then, we export arns and values from that stack and grab it in other stacks. Howev

10046

r/docker•

Hi all, I've been struggling with this one for a while and haven't been able to figure it out.

I am adding ci/cd to my aws cloud app and would like to build + deploy some lambda functions + cloudformation stack + some docker containers to fargate.

I have a build script which uses yarn and typescript to compile the lambda functions. Then, it uses AWS sam to deploy them. On my local machine, it's a straightforward bash script. The build and bundle-functions command use typescript + zip:

#!/bin/bash
  
LAMBDA_CODE_DIRECTORY='./services/lambdas/code'

# lambda.1. Build lambda functions
cd $LAMBDA_CODE_DIRECTORY &&
yarn install &&
yarn run build 
128

r/devops•

Hi, I've started working on my first gitlab CI pipeline (coming from AWS Codepipeline) and am struggling a bit.

My pipeline needs to: Build a docker image and push it to a repository (ECR), compile typescript code and deploy it with AWS SAM, and build

To get started, I attempted to modify this code to work with my own repository; however, I realized after a little while that it does not actually work. The Gitlab user is named "gitlab-examples" so I mistakenly took it to be an official repo, but I don't think that it is.

Does anybody know of a public repo with an example of a working Gitlab CI + AWS Cloudformation/SAM deployment?

212

r/aws•

We're in the process of combining many individual stacks into a monorepo with one point of deployment. Some of our stacks were SAM templates. As far as I can tell; SAM can include standard cloudformation code + nested cloudformation stacks, but cloudformation templates can't have SAM code or nested SAM templates.

Is it as simple as using a SAM template at the very top and then you can have cloudformation stacks and SAM as nested stacks? Are there any gotchas?

14

r/aws•

Every time I prepare to use nested stacks, I always check to see whether the deployment process has changed or if it is still has the imbecilic requirement that we upload template files with an s3 url to the child template files, instead of simply uploading a zip file with local references. I guess the benefit is that you can reuse your stupid cloudformation templates across stacks by pointing to them? That's great but could we just have the option to upload a zip archive instead? Or, better yet, upload a zip archive directly to the Cloudformation service so that we don't need to create an s3 bucket? This adds 2 or 3 build steps for deploying infrastructure and its always felt clunky.

Does

319


r/aws•

I've had trouble wrapping my head around how CI/CD should work for cloud apps where infrastructure lives with the code and I haven't found a great refarch or best practices guide.

First, there is the deployment pipeline, itself. Some CI/CD providers have rigid stages (I believe codepipeline has rigid stages in that they can't be created at code build time; correct me if I'm wrong!) in contrast with some other providers that create the stages at build time accorsing to a yml file. So, where to put the Codepipeline is issue number 1. Do you manually put your codepipeline into your production account or do you keep it outside and deploy into production

Then, issue #2 is what order does everyt

3117

r/aws•

While developing our product, we have only used one account. Before we go live with the product, we think it's probably wise to create a new account for our production stack.

Much of our infrastructure is in cloudformation and we're working to get 90-95% of it in in cloudformation before creating the new account. Some things like Domains and Route53 and what not seem difficult to put into cloudformation.

We have two main github repos with codepipelines. I guess the developer account would watch for pushes to "development" or a feature branch while the production account should watch for pushes to master? We're also aware of consolidated billing and can get that setup, too.

Is there a best

157